Revert "perf stat: Rename "aggregate-number" to "cpu-count" in JSON"
authorNamhyung Kim <namhyung@kernel.org>
Wed, 30 Nov 2022 19:36:13 +0000 (11:36 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Dec 2022 12:29:28 +0000 (09:29 -0300)
This reverts commit c4b41b83c25073c09bfcc4e5ec496c9dd316656b.

As Ian said, the "cpu-count" is not appropriate for uncore events, also it
caused a perf test failure.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221130193613.1046804-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat-display.c

index 847acdb..f1ee4b0 100644 (file)
@@ -281,19 +281,19 @@ static void print_aggr_id_json(struct perf_stat_config *config,
 
        switch (config->aggr_mode) {
        case AGGR_CORE:
-               fprintf(output, "\"core\" : \"S%d-D%d-C%d\", \"cpu-count\" : %d, ",
+               fprintf(output, "\"core\" : \"S%d-D%d-C%d\", \"aggregate-number\" : %d, ",
                        id.socket, id.die, id.core, nr);
                break;
        case AGGR_DIE:
-               fprintf(output, "\"die\" : \"S%d-D%d\", \"cpu-count\" : %d, ",
+               fprintf(output, "\"die\" : \"S%d-D%d\", \"aggregate-number\" : %d, ",
                        id.socket, id.die, nr);
                break;
        case AGGR_SOCKET:
-               fprintf(output, "\"socket\" : \"S%d\", \"cpu-count\" : %d, ",
+               fprintf(output, "\"socket\" : \"S%d\", \"aggregate-number\" : %d, ",
                        id.socket, nr);
                break;
        case AGGR_NODE:
-               fprintf(output, "\"node\" : \"N%d\", \"cpu-count\" : %d, ",
+               fprintf(output, "\"node\" : \"N%d\", \"aggregate-number\" : %d, ",
                        id.node, nr);
                break;
        case AGGR_NONE: