libperf: Add perf_cpu_map__default_new()
authorJin Yao <yao.jin@linux.intel.com>
Fri, 23 Jul 2021 06:34:31 +0000 (14:34 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Aug 2021 19:03:36 +0000 (16:03 -0300)
commit2696d6e59c00b13a0b27cfc39a509577f937b44e
tree53df55807a4ec2120b87c4b0f3a4e30f4cd723ad
parentebdf90a4a1c6d7f4a8a820d1f41bc7fcad95b823
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>
tools/lib/perf/cpumap.c
tools/lib/perf/include/perf/cpumap.h