aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-03-05 00:53:26 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-15 12:06:05 -0400
commit759ff497e0e6749437b6723f8d26de0b1833c199 (patch)
treee8105fb758da21ac4a796ee669d21efa12b1aabf /tools/perf/builtin-report.c
parentb1dd443296b4f8c6869eba790eec950f80392aea (diff)
perf evsel: Introduce perf_evsel__is_group_event() helper
The perf_evsel__is_group_event function is for checking whether given evsel needs event group view support or not. Please note that it's different to the existing perf_evsel__is_group_leader() which checks only the given evsel is a leader or a standalone (i.e. non-group) event regardless of event group feature. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Pekka Enberg <penberg@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1362462812-30885-7-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 96b5a7fee4bb..3f4a79ba5ada 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -314,7 +314,7 @@ static size_t hists__fprintf_nr_sample_events(struct hists *self,
314 char buf[512]; 314 char buf[512];
315 size_t size = sizeof(buf); 315 size_t size = sizeof(buf);
316 316
317 if (symbol_conf.event_group && evsel->nr_members > 1) { 317 if (perf_evsel__is_group_event(evsel)) {
318 struct perf_evsel *pos; 318 struct perf_evsel *pos;
319 319
320 perf_evsel__group_desc(evsel, buf, size); 320 perf_evsel__group_desc(evsel, buf, size);