~ubuntu-branches/ubuntu/trusty/linux-lts-vivid/trusty-proposed

« back to all changes in this revision

Viewing changes to tools/perf/builtin-stat.c

  • Committer: Package Import Robot
  • Author(s): Luis Henriques, Kamal Mostafa, K. Y. Srinivasan
  • Date: 2015-11-23 13:24:32 UTC
  • Revision ID: package-import@ubuntu.com-20151123132432-903xk653el60bfun
[ Kamal Mostafa ]

* Release Tracking Bug
  - LP: #1518519

[ K. Y. Srinivasan ]

* SAUCE: Drivers: hv: vmbus: Fix a Host signaling bug
  - LP: #1508706

Show diffs side-by-side

added added

removed removed

Lines of Context:
1204
1204
static void print_aggr(char *prefix)
1205
1205
{
1206
1206
        struct perf_evsel *counter;
1207
 
        int cpu, cpu2, s, s2, id, nr;
 
1207
        int cpu, s, s2, id, nr;
1208
1208
        double uval;
1209
1209
        u64 ena, run, val;
1210
1210
 
1217
1217
                        val = ena = run = 0;
1218
1218
                        nr = 0;
1219
1219
                        for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
1220
 
                                cpu2 = perf_evsel__cpus(counter)->map[cpu];
1221
 
                                s2 = aggr_get_id(evsel_list->cpus, cpu2);
 
1220
                                s2 = aggr_get_id(perf_evsel__cpus(counter), cpu);
1222
1221
                                if (s2 != id)
1223
1222
                                        continue;
1224
1223
                                val += counter->counts->cpu[cpu].val;