diff options
author | Jiri Olsa <jolsa@kernel.org> | 2016-02-24 09:46:46 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-02-24 14:20:08 +0100 |
commit | 0c877d759d3a62a01d75dc6de4a923a686bb285a (patch) | |
tree | 3bda106da2feea8dd3f727cd5b6ec4eb7c24ef0c /tools/perf/util/mem-events.h | |
parent | perf mem: Introduce perf_mem_events__name function (diff) | |
download | linux-0c877d759d3a62a01d75dc6de4a923a686bb285a.tar.xz linux-0c877d759d3a62a01d75dc6de4a923a686bb285a.zip |
perf tools: Introduce perf_mem__tlb_scnprintf function
Move meminfo's tlb 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-6-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/mem-events.h b/tools/perf/util/mem-events.h index 2a91b959de62..d8fb8e18418c 100644 --- a/tools/perf/util/mem-events.h +++ b/tools/perf/util/mem-events.h @@ -23,4 +23,7 @@ int perf_mem_events__parse(const char *str); int perf_mem_events__init(void); 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); #endif /* __PERF_MEM_EVENTS_H */ |