History

perf: Fix comments in PERF_MEM_LVL bitmask

This small patch fixes a mistake in the comments for the PERF_MEM_LVL_* events. The L2, L3 bits simply represent cache levels, not hits or misses. That is encoded in PERF_MEM_LVL_MISS/PERF_MEM_LVL_HIT.

Stephane Eranian committed 13 years ago

Commit cc2f5a81 parent 52980181 file · +2 −2Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/perf_event.h+2−2
@@ -645,8 +645,8 @@ union perf_mem_data_src { · 644 unmodified lines
645645 #define PERF_MEM_LVL_MISS 0x04 /* miss level */
646646 #define PERF_MEM_LVL_L1 0x08 /* L1 */
647647 #define PERF_MEM_LVL_LFB 0x10 /* Line Fill Buffer */
648−#define PERF_MEM_LVL_L2 0x20 /* L2 hit */
649−#define PERF_MEM_LVL_L3 0x40 /* L3 hit */
648+#define PERF_MEM_LVL_L2 0x20 /* L2 */
649+#define PERF_MEM_LVL_L3 0x40 /* L3 */
650650 #define PERF_MEM_LVL_LOC_RAM 0x80 /* Local DRAM */
651651 #define PERF_MEM_LVL_REM_RAM1 0x100 /* Remote DRAM (1 hop) */
652652 #define PERF_MEM_LVL_REM_RAM2 0x200 /* Remote DRAM (2 hops) */