diff options
| author | Kan Liang <[email protected]> | 2023-12-14 14:46:12 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-12-14 22:13:10 +0000 |
| commit | a61f89bf76ef6f87ec48dd90dbc73a6cf9952edc (patch) | |
| tree | 869203277460eb5aaa82f6531902c7b84da9892a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | perf top: Use evsel's cpus to replace user_requested_cpus (diff) | |
| download | kernel-a61f89bf76ef6f87ec48dd90dbc73a6cf9952edc.tar.gz kernel-a61f89bf76ef6f87ec48dd90dbc73a6cf9952edc.zip | |
perf top: Uniform the event name for the hybrid machine
It's hard to distinguish the default cycles events among hybrid PMUs.
For example,
$ perf top
Available samples
385 cycles:P
903 cycles:P
The other tool, e.g., perf record, uniforms the event name and adds the
hybrid PMU name before opening the event. So the events can be easily
distinguished. Apply the same methodology for the perf top as well.
The evlist__uniquify_name() will be invoked by both record and top.
Move it to util/evlist.c
With the patch:
$ perf top
Available samples
148 cpu_atom/cycles:P/
1K cpu_core/cycles:P/
Reviewed-by: Ian Rogers <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Hector Martin <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
