aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/cpumap.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2015-10-25 15:51:25 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-12-17 14:38:18 -0300
commitf77b57ad4fc42a074eae564bbb6660f0a3ff5503 (patch)
tree9c33eec565c48c35e34dc95ae53921244611cca6 /tools/perf/util/cpumap.h
parentperf cpu_map: Add cpu_map event synthesize function (diff)
downloadwireguard-linux-f77b57ad4fc42a074eae564bbb6660f0a3ff5503.tar.xz
wireguard-linux-f77b57ad4fc42a074eae564bbb6660f0a3ff5503.zip
perf cpu_map: Add cpu_map__new_event function
Introducing the cpu_map__new_event function to create a struct cpu_map object from a cpu_map event. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Kan Liang <kan.liang@intel.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/1445784728-21732-10-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 85f7772457fa..71c41b9efabb 100644
--- a/tools/perf/util/cpumap.h
+++ b/tools/perf/util/cpumap.h
@@ -17,6 +17,7 @@ struct cpu_map {
struct cpu_map *cpu_map__new(const char *cpu_list);
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__fprintf(struct cpu_map *map, FILE *fp);
int cpu_map__get_socket_id(int cpu);