diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-03 23:09:46 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-04 00:24:36 -0200 |
commit | 86bd5e8603b00b06189328c6d7034d2dc434d6bb (patch) | |
tree | 7d6c4fa6c55b367d0ab970835fa2fad4634ae8e4 /tools/perf/builtin-stat.c | |
parent | 5c98d466e49267a9221f30958d45cd06f794269a (diff) | |
download | kernel_samsung_tuna-86bd5e8603b00b06189328c6d7034d2dc434d6bb.zip kernel_samsung_tuna-86bd5e8603b00b06189328c6d7034d2dc434d6bb.tar.gz kernel_samsung_tuna-86bd5e8603b00b06189328c6d7034d2dc434d6bb.tar.bz2 |
perf evsel: Use {cpu,thread}_map to shorten list of parameters
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 6b9146c..02b2d80 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -166,7 +166,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel) PERF_FORMAT_TOTAL_TIME_RUNNING; if (system_wide) - return perf_evsel__open_per_cpu(evsel, cpus->nr, cpus->map); + return perf_evsel__open_per_cpu(evsel, cpus); attr->inherit = !no_inherit; if (target_pid == -1 && target_tid == -1) { @@ -174,7 +174,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel) attr->enable_on_exec = 1; } - return perf_evsel__open_per_thread(evsel, threads->nr, threads->map); + return perf_evsel__open_per_thread(evsel, threads); } /* |