From: Andi Kleen Date: Wed, 19 Apr 2017 17:49:40 +0000 (-0700) Subject: perf mem: Fix display of data source snoop indication X-Git-Tag: v4.12-rc1~152^2^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=166ebdd2442660e7f942d657fc5e629000e58ec3;p=platform%2Fkernel%2Flinux-exynos.git perf mem: Fix display of data source snoop indication 'perf mem report' doesn't display the data source snoop indication correctly. In the kernel API the definition is: #define PERF_MEM_SNOOP_NONE 0x02 /* no snoop */ #define PERF_MEM_SNOOP_HIT 0x04 /* snoop hit */ #define PERF_MEM_SNOOP_MISS 0x08 /* snoop miss */ but the table used by the perf tools exchanged "Hit" and "Miss": "None", "Miss", "Hit", Fix the table in perf. Signed-off-by: Andi Kleen Cc: Jiri Olsa Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20170419174940.13641-1-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/mem-events.c b/tools/perf/util/mem-events.c index c56d52f..06f5a3a 100644 --- a/tools/perf/util/mem-events.c +++ b/tools/perf/util/mem-events.c @@ -206,8 +206,8 @@ int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info) static const char * const snoop_access[] = { "N/A", "None", - "Miss", "Hit", + "Miss", "HitM", };