diff options
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 6b9146cd1ea9..02b2d8013a61 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) | |||
166 | PERF_FORMAT_TOTAL_TIME_RUNNING; | 166 | PERF_FORMAT_TOTAL_TIME_RUNNING; |
167 | 167 | ||
168 | if (system_wide) | 168 | if (system_wide) |
169 | return perf_evsel__open_per_cpu(evsel, cpus->nr, cpus->map); | 169 | return perf_evsel__open_per_cpu(evsel, cpus); |
170 | 170 | ||
171 | attr->inherit = !no_inherit; | 171 | attr->inherit = !no_inherit; |
172 | if (target_pid == -1 && target_tid == -1) { | 172 | if (target_pid == -1 && target_tid == -1) { |
@@ -174,7 +174,7 @@ static int create_perf_stat_counter(struct perf_evsel *evsel) | |||
174 | attr->enable_on_exec = 1; | 174 | attr->enable_on_exec = 1; |
175 | } | 175 | } |
176 | 176 | ||
177 | return perf_evsel__open_per_thread(evsel, threads->nr, threads->map); | 177 | return perf_evsel__open_per_thread(evsel, threads); |
178 | } | 178 | } |
179 | 179 | ||
180 | /* | 180 | /* |