perf mem: Print "LFB/MAB" for PERF_MEM_LVLNUM_LFB
authorRavi Bangoria <ravi.bangoria@amd.com>
Thu, 6 Oct 2022 15:39:45 +0000 (21:09 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Oct 2022 19:32:05 +0000 (16:32 -0300)
A hw component to track outstanding L1 Data Cache misses is called LFB
(Line Fill Buffer) on Intel and Arm. However similar component exists on
other arch with different names, for ex, it's called MAB (Miss Address
Buffer) on AMD. Use 'LFB/MAB' instead of just 'LFB'.

Signed-off-by: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ali Saidi <alisaidi@amazon.com>
Cc: Ananth Narayan <ananth.narayan@amd.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Joe Mario <jmario@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Kim Phillips <kim.phillips@amd.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sandipan Das <sandipan.das@amd.com>
Cc: Santosh Shukla <santosh.shukla@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86@kernel.org
Link: https://lore.kernel.org/r/20221006153946.7816-8-ravi.bangoria@amd.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/mem-events.c

index 6c7feecd2e049d29c13e413d35b72e9195273da5..b3a91093069a57154437173897141e32f6e173d2 100644 (file)
@@ -282,7 +282,7 @@ static const char * const mem_lvl[] = {
        "HIT",
        "MISS",
        "L1",
-       "LFB",
+       "LFB/MAB",
        "L2",
        "L3",
        "Local RAM",
@@ -298,7 +298,7 @@ static const char * const mem_lvlnum[] = {
        [PERF_MEM_LVLNUM_CXL] = "CXL",
        [PERF_MEM_LVLNUM_IO] = "I/O",
        [PERF_MEM_LVLNUM_ANY_CACHE] = "Any cache",
-       [PERF_MEM_LVLNUM_LFB] = "LFB",
+       [PERF_MEM_LVLNUM_LFB] = "LFB/MAB",
        [PERF_MEM_LVLNUM_RAM] = "RAM",
        [PERF_MEM_LVLNUM_PMEM] = "PMEM",
        [PERF_MEM_LVLNUM_NA] = "N/A",