aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-stat.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-11 20:42:19 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-22 16:56:28 -0500
commitf08199d314458610d4ca52f8e86e0a4ec7a7bc54 (patch)
tree80078cf09949aab97d9470f8126dc2b0ecc9656c /tools/perf/builtin-stat.c
parent5c581041cf97aa7980b442de81ddea8273d6dcde (diff)
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>
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r--tools/perf/builtin-stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index da9090245934..b5fe522f11dc 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -169,7 +169,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel)
169 PERF_FORMAT_TOTAL_TIME_RUNNING; 169 PERF_FORMAT_TOTAL_TIME_RUNNING;
170 170
171 if (system_wide) 171 if (system_wide)
172 return perf_evsel__open_per_cpu(evsel, cpus); 172 return perf_evsel__open_per_cpu(evsel, cpus, false);
173 173
174 attr->inherit = !no_inherit; 174 attr->inherit = !no_inherit;
175 if (target_pid == -1 && target_tid == -1) { 175 if (target_pid == -1 && target_tid == -1) {
@@ -177,7 +177,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel)
177 attr->enable_on_exec = 1; 177 attr->enable_on_exec = 1;
178 } 178 }
179 179
180 return perf_evsel__open_per_thread(evsel, threads); 180 return perf_evsel__open_per_thread(evsel, threads, false);
181} 181}
182 182
183/* 183/*