perf stat: Uniquify hybrid event name
It would be useful to let user know the pmu which the event belongs to. perf-stat has supported '--no-merge' option and it can print the pmu name after the event name, such as: "cycles [cpu_core]" Now this option is enabled by default for hybrid platform but change the format to: "cpu_core/cycles/" If user configs the name, we still use the user specified name. Signed-off-by:Jin Yao <yao.jin@linux.intel.com> Reviewed-by:
Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Kan Liang <kan.liang@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> ink: https://lore.kernel.org/r/20210427070139.25256-8-yao.jin@linux.intel.com Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-stat.c 4 additions, 0 deletionstools/perf/builtin-stat.c
- tools/perf/util/evsel.h 1 addition, 0 deletionstools/perf/util/evsel.h
- tools/perf/util/parse-events.c 3 additions, 0 deletionstools/perf/util/parse-events.c
- tools/perf/util/stat-display.c 13 additions, 2 deletionstools/perf/util/stat-display.c
Loading
Please register or sign in to comment