perf tools: Introduce perf_mem__snp_scnprintf function
authorJiri Olsa <jolsa@kernel.org>
Wed, 24 Feb 2016 08:46:48 +0000 (09:46 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 24 Feb 2016 13:20:45 +0000 (10:20 -0300)
commit2c07af13dcd4d971578041b50598f1269b33e68a
tree738fae5d702c8f9ccbd647ae95b9cd5bcbc77348
parent071e9a1e12dceaec6f9d3ffe6e77ee68364166d6
perf tools: Introduce perf_mem__snp_scnprintf function

Move meminfo's snp 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-8-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