perf evsel: Support event groups
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Jan 2011 01:42:19 +0000 (23:42 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 22 Jan 2011 21:56:28 +0000 (19:56 -0200)
commitf08199d314458610d4ca52f8e86e0a4ec7a7bc54
tree80078cf09949aab97d9470f8126dc2b0ecc9656c
parent5c581041cf97aa7980b442de81ddea8273d6dcde
perf evsel: Support event groups

The perf_evsel__open now have an extra boolean argument specifying if
event grouping is desired.

The first file descriptor created on a CPU becomes the group leader.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/builtin-test.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h