perf tools: Do not disable members of group event
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 16 Mar 2012 08:42:20 +0000 (17:42 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Mar 2012 19:29:33 +0000 (16:29 -0300)
commit5090c6aea84dcc474d0aabf9f66f1eab68a143eb
treed8272837b2983c278a8ad2c778512909d23d7fec
parent4c19ea453d81cf8bd9bd446e6b129998f79997e7
perf tools: Do not disable members of group event

When event group is enabled for forked task (i.e. no target task/cpu
was specified) all events were disabled and marked ->enable_on_exec.
However they wouldn't be counted at all since only group leader will
be enabled on exec actually.

In contrast to perf stat, perf record doesn't have a real problem
as it enables all the event before proceeding. But it needs to be
fixed anyway IMHO.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1331887340-32448-2-git-send-email-namhyung.kim@lge.com
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h