diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-08-31 04:25:26 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-31 04:25:26 -0400 |
commit | 02b643b643254ec79b5f9aaa143e10be68eabdab (patch) | |
tree | 57ec83eebab74324465199a3f52f4f7862177ee6 /tools/perf | |
parent | d1ee8bc195ffedbf91af0245a2406d6ebd2578f8 (diff) | |
parent | 4c09e0d6ba65507a0ee0ca9abc5335e4f7bd7404 (diff) |
Merge branch 'perf/urgent' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/builtin-stat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 7aa039bd379a..d46dbb1bc65d 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -565,7 +565,7 @@ static void print_aggr(char *prefix) | |||
565 | { | 565 | { |
566 | FILE *output = stat_config.output; | 566 | FILE *output = stat_config.output; |
567 | struct perf_evsel *counter; | 567 | struct perf_evsel *counter; |
568 | int cpu, cpu2, s, s2, id, nr; | 568 | int cpu, s, s2, id, nr; |
569 | double uval; | 569 | double uval; |
570 | u64 ena, run, val; | 570 | u64 ena, run, val; |
571 | 571 | ||
@@ -578,8 +578,7 @@ static void print_aggr(char *prefix) | |||
578 | val = ena = run = 0; | 578 | val = ena = run = 0; |
579 | nr = 0; | 579 | nr = 0; |
580 | for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { | 580 | for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { |
581 | cpu2 = perf_evsel__cpus(counter)->map[cpu]; | 581 | s2 = aggr_get_id(perf_evsel__cpus(counter), cpu); |
582 | s2 = aggr_get_id(evsel_list->cpus, cpu2); | ||
583 | if (s2 != id) | 582 | if (s2 != id) |
584 | continue; | 583 | continue; |
585 | val += perf_counts(counter->counts, cpu, 0)->val; | 584 | val += perf_counts(counter->counts, cpu, 0)->val; |