]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/builtin-stat.c
Merge branch 'perf/urgent' into perf/core, to pick up fixes
[karo-tx-linux.git] / tools / perf / builtin-stat.c
index 7aa039bd379a42e3d10cdd4e76115fccbc6bb881..d46dbb1bc65d95980b13ec7f473f793c8262a05b 100644 (file)
@@ -565,7 +565,7 @@ static void print_aggr(char *prefix)
 {
        FILE *output = stat_config.output;
        struct perf_evsel *counter;
-       int cpu, cpu2, s, s2, id, nr;
+       int cpu, s, s2, id, nr;
        double uval;
        u64 ena, run, val;
 
@@ -578,8 +578,7 @@ static void print_aggr(char *prefix)
                        val = ena = run = 0;
                        nr = 0;
                        for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
-                               cpu2 = perf_evsel__cpus(counter)->map[cpu];
-                               s2 = aggr_get_id(evsel_list->cpus, cpu2);
+                               s2 = aggr_get_id(perf_evsel__cpus(counter), cpu);
                                if (s2 != id)
                                        continue;
                                val += perf_counts(counter->counts, cpu, 0)->val;