diff options
author | Peter Zijlstra <[email protected]> | 2014-07-15 17:27:27 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-07-16 13:18:39 +0200 |
commit | 1903d50cba54261a6562a476c05085f3d7a54097 (patch) | |
tree | d40302cb9e98f490d6426c3e0c02c5a13f097f6f /tools/perf/util/trace-event-scripting.c | |
parent | 1f9a7268c67f0290837aada443d28fd953ddca90 (diff) |
perf: Revert ("perf: Always destroy groups on exit")
Vince reported that commit 15a2d4de0eab5 ("perf: Always destroy groups
on exit") causes a regression with grouped events. In particular his
read_group_attached.c test fails.
https://github.com/deater/perf_event_tests/blob/master/tests/bugs/read_group_attached.c
Because of the context switch optimization in
perf_event_context_sched_out() the 'original' event may end up in the
child process and when that exits the change in the patch in question
destroys the actual grouping.
Therefore revert that change and only destroy inherited groups.
Reported-by: Vince Weaver <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions