perf: Fix comments in PERF_MEM_LVL bitmask
authorStephane Eranian <eranian@google.com>
Fri, 5 Apr 2013 14:49:41 +0000 (16:49 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 8 Apr 2013 11:54:24 +0000 (13:54 +0200)
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.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: peterz@infradead.org
Cc: jolsa@redhat.com
Link: http://lkml.kernel.org/r/20130405144941.GA30503@quad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/uapi/linux/perf_event.h

index 964a450a6e2cda668b52bfbf64b14ecfe7414e7b..fb104e51496ed0779159541865d42933b1a5e7a2 100644 (file)
@@ -645,8 +645,8 @@ union perf_mem_data_src {
 #define PERF_MEM_LVL_MISS      0x04  /* miss level  */
 #define PERF_MEM_LVL_L1                0x08  /* L1 */
 #define PERF_MEM_LVL_LFB       0x10  /* Line Fill Buffer */
-#define PERF_MEM_LVL_L2                0x20  /* L2 hit */
-#define PERF_MEM_LVL_L3                0x40  /* L3 hit */
+#define PERF_MEM_LVL_L2                0x20  /* L2 */
+#define PERF_MEM_LVL_L3                0x40  /* L3 */
 #define PERF_MEM_LVL_LOC_RAM   0x80  /* Local DRAM */
 #define PERF_MEM_LVL_REM_RAM1  0x100 /* Remote DRAM (1 hop) */
 #define PERF_MEM_LVL_REM_RAM2  0x200 /* Remote DRAM (2 hops) */