perf stat: Replace aggregation ID with a struct
[linux-2.6-microblaze.git] / tools / perf / util / stat.c
index 1e125e3..1d5c9f9 100644 (file)
@@ -313,7 +313,7 @@ static int check_per_pkg(struct evsel *counter,
        if (!(vals->run && vals->ena))
                return 0;
 
-       s = cpu_map__get_socket(cpus, cpu, NULL);
+       s = cpu_map__get_socket(cpus, cpu, NULL).id;
        if (s < 0)
                return -1;