summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/mem-events.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-02-24 09:46:47 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-02-24 10:20:28 -0300
commit071e9a1e12dceaec6f9d3ffe6e77ee68364166d6 (patch)
treeffb30685af7fb259be96aec0b664d400c7974105 /tools/perf/util/mem-events.h
parent0c877d759d3a62a01d75dc6de4a923a686bb285a (diff)
downloadlinux-stable-071e9a1e12dceaec6f9d3ffe6e77ee68364166d6.tar.gz
linux-stable-071e9a1e12dceaec6f9d3ffe6e77ee68364166d6.tar.bz2
linux-stable-071e9a1e12dceaec6f9d3ffe6e77ee68364166d6.zip
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>
Diffstat (limited to 'tools/perf/util/mem-events.h')
-rw-r--r--tools/perf/util/mem-events.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/mem-events.h b/tools/perf/util/mem-events.h
index d8fb8e18418c..bd0d7f7ae113 100644
--- a/tools/perf/util/mem-events.h
+++ b/tools/perf/util/mem-events.h
@@ -26,4 +26,5 @@ char *perf_mem_events__name(int i);
struct mem_info;
void perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
+void perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
#endif /* __PERF_MEM_EVENTS_H */