Skip to content

Commit b7ddd38

Browse files
Ravi Bangoriaacmel
authored andcommitted
tools headers UAPI: Sync include/uapi/linux/perf_event.h header with the kernel
Two new fields for mem_lvl_num has been introduced: PERF_MEM_LVLNUM_IO and PERF_MEM_LVLNUM_CXL which are required to support perf mem/c2c on AMD platform. Signed-off-by: Ravi Bangoria <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ali Saidi <[email protected]> Cc: Ananth Narayan <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Joe Mario <[email protected]> Cc: Kan Liang <[email protected]> Cc: Kim Phillips <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sandipan Das <[email protected]> Cc: Santosh Shukla <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent cad3b68 commit b7ddd38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/include/uapi/linux/perf_event.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,9 @@ union perf_mem_data_src {
13271327
#define PERF_MEM_LVLNUM_L2 0x02 /* L2 */
13281328
#define PERF_MEM_LVLNUM_L3 0x03 /* L3 */
13291329
#define PERF_MEM_LVLNUM_L4 0x04 /* L4 */
1330-
/* 5-0xa available */
1330+
/* 5-0x8 available */
1331+
#define PERF_MEM_LVLNUM_CXL 0x09 /* CXL */
1332+
#define PERF_MEM_LVLNUM_IO 0x0a /* I/O */
13311333
#define PERF_MEM_LVLNUM_ANY_CACHE 0x0b /* Any cache */
13321334
#define PERF_MEM_LVLNUM_LFB 0x0c /* LFB */
13331335
#define PERF_MEM_LVLNUM_RAM 0x0d /* RAM */

0 commit comments

Comments
 (0)