diff options
author | Namhyung Kim <namhyung@kernel.org> | 2023-07-25 18:02:06 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-07-26 13:28:45 +0300 |
commit | 8bfc20baa9355d2ce6b031ff8bdb62c9456923f7 (patch) | |
tree | 9c0e0d6662fd3beed5badbf91f42330c7c3d694a /arch/x86/events/intel | |
parent | 5c6e623f1b8ebca39eeefba4b18d574eb5acf0bd (diff) | |
download | linux-8bfc20baa9355d2ce6b031ff8bdb62c9456923f7.tar.xz |
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
Diffstat (limited to 'arch/x86/events/intel')
0 files changed, 0 insertions, 0 deletions