aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2022-03-28 20:01:12 +0000
committerPeter Zijlstra <[email protected]>2022-04-05 07:59:44 +0000
commite3265a4386428d3d157d9565bb520aabff8b4bf0 (patch)
tree16571db614fc109c9f9bfa7b0bda5168637b66c3 /tools/perf/util/scripting-engines/trace-event-python.c
parentperf/x86/uncore: Add Raptor Lake uncore support (diff)
downloadkernel-e3265a4386428d3d157d9565bb520aabff8b4bf0.tar.gz
kernel-e3265a4386428d3d157d9565bb520aabff8b4bf0.zip
perf/core: Inherit event_caps
It was reported that some perf event setup can make fork failed on ARM64. It was the case of a group of mixed hw and sw events and it failed in perf_event_init_task() due to armpmu_event_init(). The ARM PMU code checks if all the events in a group belong to the same PMU except for software events. But it didn't set the event_caps of inherited events and no longer identify them as software events. Therefore the test failed in a child process. A simple reproducer is: $ perf stat -e '{cycles,cs,instructions}' perf bench sched messaging # Running 'sched/messaging' benchmark: perf: fork(): Invalid argument The perf stat was fine but the perf bench failed in fork(). Let's inherit the event caps from the parent. Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions