]> git.baikalelectronics.ru Git - kernel.git/commit
perf mem: Fix display of data source snoop indication
authorAndi Kleen <ak@linux.intel.com>
Wed, 19 Apr 2017 17:49:40 +0000 (10:49 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Apr 2017 15:33:32 +0000 (12:33 -0300)
commit8995fd3a9564fa6d783fed0cc7796b3cfea0f104
tree566e6548905768ed5065640064097b91266af53d
parent1635f10426d17d5aa0aa221536a147de9bb4867c
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 <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20170419174940.13641-1-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/mem-events.c