perf tools: Introduce perf_mem__lvl_scnprintf function
authorJiri Olsa <jolsa@kernel.org>
Wed, 24 Feb 2016 08:46:47 +0000 (09:46 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 24 Feb 2016 13:20:28 +0000 (10:20 -0300)
commit071e9a1e12dceaec6f9d3ffe6e77ee68364166d6
treeffb30685af7fb259be96aec0b664d400c7974105
parent0c877d759d3a62a01d75dc6de4a923a686bb285a
perf tools: Introduce perf_mem__lvl_scnprintf function

Move meminfo's lvl display function into mem-events.c object, so it
could be reused later from script code.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1456303616-26926-7-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/mem-events.c
tools/perf/util/mem-events.h
tools/perf/util/sort.c