OpenCloudOS-Kernel/arch/x86/events/amd
Namhyung Kim 8bfc20baa9 perf/x86/ibs: Set mem_lvl_num, mem_remote and mem_hops for data_src
Kernel IBS driver wasn't using new PERF_MEM_* APIs due to some of its
limitations. Mainly:

1. mem_lvl_num doesn't allow setting multiple sources whereas old API
   allows it. Setting multiple data sources is useful because IBS on
   pre-zen4 uarch doesn't provide fine granular DataSrc details (there
   is only one such DataSrc(2h) though).
2. perf mem sorting logic (sort__lvl_cmp()) ignores mem_lvl_num. perf
   c2c (c2c_decode_stats()) does not use mem_lvl_num at all.

1st one can be handled using ANY_CACHE with HOPS_0. 2nd is purely perf
tool specific issue and should be fixed separately.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230725150206.184-4-ravi.bangoria@amd.com
2023-07-26 12:28:45 +02:00
..
Makefile perf/x86/amd/lbr: Detect LbrExtV2 support 2022-08-27 00:05:43 +02:00
brs.c x86/perf/amd: Remove tracing from perf_lopwr_cb() 2023-01-13 11:03:21 +01:00
core.c perf/ibs: Fix interface via core pmu events 2023-05-08 10:58:30 +02:00
ibs.c perf/x86/ibs: Set mem_lvl_num, mem_remote and mem_hops for data_src 2023-07-26 12:28:45 +02:00
iommu.c x86/events/amd/iommu: Remove redundant assignment to variable shift 2021-12-28 21:30:05 +01:00
iommu.h IOMMU Updates for Linux v5.13 2021-05-01 09:33:00 -07:00
lbr.c perf: Rewrite core context handling 2022-10-27 20:12:16 +02:00
power.c perf/x86/amd/power: Assign pmu.module 2021-08-26 09:12:57 +02:00
uncore.c perf/x86/amd/uncore: Fix memory leak for events array 2022-11-09 12:38:01 +01:00