Ian Rogers
ed0e49c685
perf/core: fix parent pid/tid in task exit events
commit f3bed55e850926614b9898fe982f66d2541a36a5 upstream.
Current logic yields the child task as the parent.
Before:
$ perf record bash -c "perf list > /dev/null"
$ perf script -D |grep 'FORK\|EXIT'
4387036190981094 0x5a70 [0x30]: PERF_RECORD_FORK(10472:10472):(10470:10470)
4387036606207580 0xf050 [0x30]: PERF_RECORD_EXIT(10472:10472):(10472:10472)
4387036607103839 0x17150 [0x30]: PERF_RECORD_EXIT(10470:10470):(10470:10470)
^
Note the repeated values here -------------------/
After:
383281514043 0x9d8 [0x30]: PERF_RECORD_FORK(2268:2268):(2266:2266)
383442003996 0x2180 [0x30]: PERF_RECORD_EXIT(2268:2268):(2266:2266)
383451297778 0xb70 [0x30]: PERF_RECORD_EXIT(2266:2266):(2265:2265)
Fixes: 94d5d1b2d8 ("perf_counter: Report the cloning task as parent on perf_counter_fork()")
Reported-by: KP Singh <kpsingh@google.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200417182842.12522-1-irogers@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
2020-05-02 17:23:16 +02:00 |
| .. |
|
callchain.c
|
perf: Remove superfluous allocation error check
|
2018-05-16 10:08:41 +02:00 |
|
core.c
|
perf/core: fix parent pid/tid in task exit events
|
2020-05-02 17:23:16 +02:00 |
|
hw_breakpoint.c
|
perf/hwbp: Simplify the perf-hwbp code, fix documentation
|
2018-04-08 12:12:41 +02:00 |
|
internal.h
|
bpf, events: fix offset in skb copy handler
|
2016-07-25 10:34:11 -07:00 |
|
Makefile
|
ftrace: allow architectures to specify ftrace compile options
|
2015-01-29 09:19:19 +01:00 |
|
ring_buffer.c
|
perf/ring_buffer: Add ordering to rb->nest increment
|
2019-06-22 08:17:23 +02:00 |
|
uprobes.c
|
signal: Properly deliver SIGILL from uprobes
|
2019-11-25 09:52:12 +01:00 |