aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/perf/include/perf
diff options
context:
space:
mode:
authorJin Yao <yao.jin@linux.intel.com>2021-07-23 14:34:31 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-08-11 16:03:36 -0300
commit2696d6e59c00b13a0b27cfc39a509577f937b44e (patch)
tree53df55807a4ec2120b87c4b0f3a4e30f4cd723ad /tools/lib/perf/include/perf
parentperf test: Make --skip work on shell tests (diff)
downloadlinux-dev-2696d6e59c00b13a0b27cfc39a509577f937b44e.tar.xz
linux-dev-2696d6e59c00b13a0b27cfc39a509577f937b44e.zip
libperf: Add perf_cpu_map__default_new()
libperf already has a static function called 'cpu_map__default_new()'. Add a new API perf_cpu_map__default_new() to export the function. Signed-off-by: Jin Yao <yao.jin@linux.intel.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jin Yao <yao.jin@intel.com> Cc: Kan Liang <kan.liang@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https //lore.kernel.org/r/20210723063433.7318-2-yao.jin@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/perf/include/perf')
-rw-r--r--tools/lib/perf/include/perf/cpumap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/perf/include/perf/cpumap.h b/tools/lib/perf/include/perf/cpumap.h
index 6a17ad730cbc..7c27766ea0bf 100644
--- a/tools/lib/perf/include/perf/cpumap.h
+++ b/tools/lib/perf/include/perf/cpumap.h
@@ -9,6 +9,7 @@
struct perf_cpu_map;
LIBPERF_API struct perf_cpu_map *perf_cpu_map__dummy_new(void);
+LIBPERF_API struct perf_cpu_map *perf_cpu_map__default_new(void);
LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);
LIBPERF_API struct perf_cpu_map *perf_cpu_map__read(FILE *file);
LIBPERF_API struct perf_cpu_map *perf_cpu_map__get(struct perf_cpu_map *map);