aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/cpumap.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-06-28 13:29:04 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-06-30 18:27:45 -0300
commita24020e6b7cf6eb8b75d8bca6b89870b1cee6ba7 (patch)
tree16e36c1b28e054b765b8f104ca9debbcf10de99e /tools/perf/util/cpumap.h
parentperf test: Add -F/--dont-fork option (diff)
downloadwireguard-linux-a24020e6b7cf6eb8b75d8bca6b89870b1cee6ba7.tar.xz
wireguard-linux-a24020e6b7cf6eb8b75d8bca6b89870b1cee6ba7.zip
perf tools: Change cpu_map__fprintf output
Display cpu map in standard list form. (perf report -D output on perf stat data). before: 0x590 [0x18]: PERF_RECORD_CPU_MAP nr: 4 cpus: 0, 1, 2, 3 after: 0x590 [0x18]: PERF_RECORD_CPU_MAP: 0-3 Adding automated testcase. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1467113345-12669-4-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/cpumap.h')
-rw-r--r--tools/perf/util/cpumap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/cpumap.h b/tools/perf/util/cpumap.h
index 1a0a35073ce1..206dc550354a 100644
--- a/tools/perf/util/cpumap.h
+++ b/tools/perf/util/cpumap.h
@@ -19,6 +19,7 @@ struct cpu_map *cpu_map__empty_new(int nr);
struct cpu_map *cpu_map__dummy_new(void);
struct cpu_map *cpu_map__new_data(struct cpu_map_data *data);
struct cpu_map *cpu_map__read(FILE *file);
+size_t cpu_map__snprint(struct cpu_map *map, char *buf, size_t size);
size_t cpu_map__fprintf(struct cpu_map *map, FILE *fp);
int cpu_map__get_socket_id(int cpu);
int cpu_map__get_socket(struct cpu_map *map, int idx, void *data);