Skip to content

Commit cb6c18b

Browse files
Ravi BangoriaPeter Zijlstra
authored andcommitted
perf/mem: Rename PERF_MEM_LVLNUM_EXTN_MEM to PERF_MEM_LVLNUM_CXL
PERF_MEM_LVLNUM_EXTN_MEM was introduced to cover CXL devices but it's bit ambiguous name and also not generic enough to cover cxl.cache and cxl.io devices. Rename it to PERF_MEM_LVLNUM_CXL to be more specific. Signed-off-by: Ravi Bangoria <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent eff98a7 commit cb6c18b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/events/amd/ibs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static void perf_ibs_get_mem_lvl(union ibs_op_data2 *op_data2,
801801
/* Extension Memory */
802802
if (ibs_caps & IBS_CAPS_ZEN4 &&
803803
ibs_data_src == IBS_DATA_SRC_EXT_EXT_MEM) {
804-
data_src->mem_lvl_num = PERF_MEM_LVLNUM_EXTN_MEM;
804+
data_src->mem_lvl_num = PERF_MEM_LVLNUM_CXL;
805805
if (op_data2->rmt_node) {
806806
data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
807807
/* IBS doesn't provide Remote socket detail */

include/uapi/linux/perf_event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ union perf_mem_data_src {
13371337
#define PERF_MEM_LVLNUM_L3 0x03 /* L3 */
13381338
#define PERF_MEM_LVLNUM_L4 0x04 /* L4 */
13391339
/* 5-0x8 available */
1340-
#define PERF_MEM_LVLNUM_EXTN_MEM 0x09 /* Extension memory */
1340+
#define PERF_MEM_LVLNUM_CXL 0x09 /* CXL */
13411341
#define PERF_MEM_LVLNUM_IO 0x0a /* I/O */
13421342
#define PERF_MEM_LVLNUM_ANY_CACHE 0x0b /* Any cache */
13431343
#define PERF_MEM_LVLNUM_LFB 0x0c /* LFB */

0 commit comments

Comments
 (0)