perf: Ensure consistent inherit state in groups
authorPeter Zijlstra <peterz@infradead.org>
Tue, 6 May 2014 07:59:34 +0000 (09:59 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 7 May 2014 11:44:17 +0000 (13:44 +0200)
commit1f4ee5038f0c1ef95f8e6d47ad6623e006b5bce1
treebaeeb3164bca54b629b1b41a6ee93234749c9ea5
parent37b16beaa92860c378273ccdcc2ccb22c6cee047
perf: Ensure consistent inherit state in groups

Make sure all events in a group have the same inherit state. It was
possible for group leaders to have inherit set while sibling events
would not have inherit set.

In this case we'd still inherit the siblings, leading to some
non-fatal weirdness.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-r32tt8yldvic3jlcghd3g35u@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/events/core.c