diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-11 21:08:18 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-22 16:56:29 -0500 |
commit | 9d04f1781772e11bd58806391555fc23ebb54377 (patch) | |
tree | 9b91c767bed360fcfd2ab6b90794cca784db279f /tools/perf/builtin-stat.c | |
parent | f08199d314458610d4ca52f8e86e0a4ec7a7bc54 (diff) |
perf evsel: Allow specifying if the inherit bit should be set
As this is a per-cpu attribute, we can't set it up in advance and use it
for all the calls.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index b5fe522f11dc..e2a2d02c5c43 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, false); | 172 | return perf_evsel__open_per_cpu(evsel, cpus, false, 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, false); | 180 | return perf_evsel__open_per_thread(evsel, threads, false, false); |
181 | } | 181 | } |
182 | 182 | ||
183 | /* | 183 | /* |