[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <858b4c6f-99dd-c0d8-d8ec-67f905b3287c@linux.intel.com>
Date: Wed, 30 Jun 2021 20:35:23 +0800
From: "Jin, Yao" <yao.jin@...ux.intel.com>
To: acme@...nel.org, jolsa@...nel.org, peterz@...radead.org,
mingo@...hat.com, alexander.shishkin@...ux.intel.com
Cc: Linux-kernel@...r.kernel.org, ak@...ux.intel.com,
kan.liang@...el.com, yao.jin@...el.com
Subject: Re: [PATCH v2 1/3] libperf: Add perf_cpu_map__default_new()
Hi Arnaldo,
Any comments for v2 series of cpulist hybrid support? :)
Thanks
Jin Yao
On 6/21/2021 10:33 PM, Jin Yao wrote:
> The libperf already has a static function 'cpu_map__default_new()'.
> Add a new API perf_cpu_map__default_new() to export the function.
>
> Signed-off-by: Jin Yao <yao.jin@...ux.intel.com>
> ---
> tools/lib/perf/cpumap.c | 5 +++++
> tools/lib/perf/include/perf/cpumap.h | 1 +
> 2 files changed, 6 insertions(+)
>
> diff --git a/tools/lib/perf/cpumap.c b/tools/lib/perf/cpumap.c
> index ca0215047c32..51b6553912e0 100644
> --- a/tools/lib/perf/cpumap.c
> +++ b/tools/lib/perf/cpumap.c
> @@ -68,6 +68,11 @@ static struct perf_cpu_map *cpu_map__default_new(void)
> return cpus;
> }
>
> +struct perf_cpu_map *perf_cpu_map__default_new(void)
> +{
> + return cpu_map__default_new();
> +}
> +
> static int cmp_int(const void *a, const void *b)
> {
> return *(const int *)a - *(const int*)b;
> 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);
>
Powered by blists - more mailing lists