perf tools: Add support for printing new mem_info encodings
authorAndi Kleen <ak@linux.intel.com>
Wed, 16 Aug 2017 22:21:55 +0000 (15:21 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 Aug 2017 15:30:25 +0000 (12:30 -0300)
commit52839e653b5629bd237ad2ecdd8fdd897fcd5712
tree60751abf140f76d14d15cd86b155ea296150d4a3
parent41d3d6db1767326dd7daf7c6df48e42020647c15
perf tools: Add support for printing new mem_info encodings

Add decoding for the new "lvlx" and "snoopx" meminfo fields added
earlier to the kernel so that "perf mem report" and other tools can
print it properly.

v2: Merge with persistent memory patch.
Switch to new bit encoding for each combination.

v3: Switch to generic lvlnum field.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20170816222156.19953-4-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/uapi/linux/perf_event.h
tools/perf/util/mem-events.c