perf list: Display hybrid PMU events with cpu type
Add a new option '--cputype' to 'perf list' to display core-only PMU events or atom-only PMU events. Each hybrid PMU event has been assigned with a PMU name, this patch compares the PMU name before listing the result. For example: perf list --cputype atom ... cache: core_reject_l2q.any [Counts the number of request that were not accepted into the L2Q because the L2Q is FULL. Unit: cpu_atom] ... The "Unit: cpu_atom" is displayed in the brief description section to indicate this is an atom event. Signed-off-by:Jin Yao <yao.jin@linux.intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jin Yao <yao.jin@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20210903025239.22754-1-yao.jin@linux.intel.com Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/Documentation/perf-list.txt 4 additions, 0 deletionstools/perf/Documentation/perf-list.txt
- tools/perf/builtin-list.c 30 additions, 12 deletionstools/perf/builtin-list.c
- tools/perf/util/metricgroup.c 6 additions, 1 deletiontools/perf/util/metricgroup.c
- tools/perf/util/metricgroup.h 1 addition, 1 deletiontools/perf/util/metricgroup.h
- tools/perf/util/parse-events.c 5 additions, 3 deletionstools/perf/util/parse-events.c
- tools/perf/util/parse-events.h 2 additions, 1 deletiontools/perf/util/parse-events.h
- tools/perf/util/pmu.c 24 additions, 5 deletionstools/perf/util/pmu.c
- tools/perf/util/pmu.h 1 addition, 1 deletiontools/perf/util/pmu.h
Loading
Please register or sign in to comment