perf evsel: Introduce is_group_member method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 13 Nov 2012 20:27:28 +0000 (17:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Nov 2012 19:53:45 +0000 (16:53 -0300)
commit07ac002f2fcc74c5be47b656d9201d5de84dc53d
tree6f43107a76ed87f2b817594d2d62246ab82cfba6
parent1483c2ae90738e7453bfe446a3bbcdd0ba9abf36
perf evsel: Introduce is_group_member method

To clarify what is being tested, instead of assuming that evsel->leader
== NULL means either an 'isolated' evsel or a 'group leader'.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-lvdbvimaxw9nc5een5vmem0c@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c
tools/perf/tests/parse-events.c
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h