summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorThomas Falcon <thomas.falcon@intel.com>2024-09-26 09:40:40 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:02:18 +0100
commit554b47a920ce9f193ff02cbddea04cd258b91b0a (patch)
treea6fa657e31da438b81687b0c33b80b155da2482f /Documentation
parent6752b6cc10a4d05f47e93e435f76ab934ec37537 (diff)
downloadlinux-554b47a920ce9f193ff02cbddea04cd258b91b0a.tar.gz
linux-554b47a920ce9f193ff02cbddea04cd258b91b0a.tar.bz2
linux-554b47a920ce9f193ff02cbddea04cd258b91b0a.zip
perf mem: Fix printing PERF_MEM_LVLNUM_{L2_MHB|MSC}
[ Upstream commit 4f23fc34cc68812c68c3a3dec15e26e87565f430 ] With commit 8ec9497d3ef34 ("tools/include: Sync uapi/linux/perf.h with the kernel sources"), 'perf mem report' gives an incorrect memory access string. ... 0.02% 1 3644 L5 hit [.] 0x0000000000009b0e mlc [.] 0x00007fce43f59480 ... This occurs because, if no entry exists in mem_lvlnum, perf_mem__lvl_scnprintf will default to 'L%d, lvl', which in this case for PERF_MEM_LVLNUM_L2_MHB is 0x05. Add entries for PERF_MEM_LVLNUM_L2_MHB and PERF_MEM_LVLNUM_MSC to mem_lvlnum, so that the correct strings are printed. ... 0.02% 1 3644 L2 MHB hit [.] 0x0000000000009b0e mlc [.] 0x00007fce43f59480 ... Fixes: 8ec9497d3ef34 ("tools/include: Sync uapi/linux/perf.h with the kernel sources") Suggested-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Thomas Falcon <thomas.falcon@intel.com> Reviewed-by: Leo Yan <leo.yan@arm.com> Link: https://lore.kernel.org/r/20240926144040.77897-1-thomas.falcon@intel.com Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions