https://github.com/torvalds/linux
Revision e0257a01d6689c273a019756ed5e13911cc1bfed authored by John Garry on 21 December 2021, 16:11:30 UTC, committed by Arnaldo Carvalho de Melo on 02 January 2022, 14:29:05 UTC
Commit 0e0ae8742207c3b4 ("perf list: Display hybrid PMU events with cpu type") changes the event list for uncore PMUs or arm64 heterogeneous CPU systems, such that duplicate aliases are incorrectly listed per PMU (which they should not be), like: # perf list ... unc_cbo_cache_lookup.any_es [Unit: uncore_cbox L3 Lookup any request that access cache and found line in E or S-state] unc_cbo_cache_lookup.any_es [Unit: uncore_cbox L3 Lookup any request that access cache and found line in E or S-state] unc_cbo_cache_lookup.any_i [Unit: uncore_cbox L3 Lookup any request that access cache and found line in I-state] unc_cbo_cache_lookup.any_i [Unit: uncore_cbox L3 Lookup any request that access cache and found line in I-state] ... Notice how the events are listed twice. The named commit changed how we remove duplicate events, in that events for different PMUs are not treated as duplicates. I suppose this is to handle how "Each hybrid pmu event has been assigned with a pmu name". Fix PMU alias listing by restoring behaviour to remove duplicates for non-hybrid PMUs. Fixes: 0e0ae8742207c3b4 ("perf list: Display hybrid PMU events with cpu type") Signed-off-by: John Garry <john.garry@huawei.com> Tested-by: Zhengjun Xing <zhengjun.xing@linux.intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/1640103090-140490-1-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0f80bfb
Tip revision: e0257a01d6689c273a019756ed5e13911cc1bfed authored by John Garry on 21 December 2021, 16:11:30 UTC
perf pmu: Fix alias events list
perf pmu: Fix alias events list
Tip revision: e0257a0
File | Mode | Size |
---|---|---|
bpftool | ||
resolve_btfids | ||
runqslower | ||
.gitignore | -rw-r--r-- | 111 bytes |
Makefile | -rw-r--r-- | 3.4 KB |
bpf_asm.c | -rw-r--r-- | 1.2 KB |
bpf_dbg.c | -rw-r--r-- | 28.2 KB |
bpf_exp.l | -rw-r--r-- | 4.0 KB |
bpf_exp.y | -rw-r--r-- | 15.7 KB |
bpf_jit_disasm.c | -rw-r--r-- | 6.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...