diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-07-21 07:24:30 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-29 17:34:45 -0400 |
commit | 9c3516d1b850ea938b074df33e4c86d721c77720 (patch) | |
tree | cb937368ee6d8048f465bcbe27d62709f871212c /tools/perf/builtin-sched.c | |
parent | 1fc632cef4ea137bc45fd0fc4cb902e374064163 (diff) |
libperf: Add perf_cpu_map__new()/perf_cpu_map__read() functions
Moving the following functions from tools/perf:
cpu_map__new()
cpu_map__read()
to libperf with the following names:
perf_cpu_map__new()
perf_cpu_map__read()
Committer notes:
Fixed up this one:
tools/perf/arch/arm/util/cs-etm.c
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190721112506.12306-44-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-sched.c')
-rw-r--r-- | tools/perf/builtin-sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 897d11c8ca2e..0d6b4c3b1a51 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -3183,7 +3183,7 @@ static int setup_map_cpus(struct perf_sched *sched) | |||
3183 | if (!sched->map.cpus_str) | 3183 | if (!sched->map.cpus_str) |
3184 | return 0; | 3184 | return 0; |
3185 | 3185 | ||
3186 | map = cpu_map__new(sched->map.cpus_str); | 3186 | map = perf_cpu_map__new(sched->map.cpus_str); |
3187 | if (!map) { | 3187 | if (!map) { |
3188 | pr_err("failed to get cpus map from %s\n", sched->map.cpus_str); | 3188 | pr_err("failed to get cpus map from %s\n", sched->map.cpus_str); |
3189 | return -1; | 3189 | return -1; |
@@ -3217,7 +3217,7 @@ static int setup_color_cpus(struct perf_sched *sched) | |||
3217 | if (!sched->map.color_cpus_str) | 3217 | if (!sched->map.color_cpus_str) |
3218 | return 0; | 3218 | return 0; |
3219 | 3219 | ||
3220 | map = cpu_map__new(sched->map.color_cpus_str); | 3220 | map = perf_cpu_map__new(sched->map.color_cpus_str); |
3221 | if (!map) { | 3221 | if (!map) { |
3222 | pr_err("failed to get thread map from %s\n", sched->map.color_cpus_str); | 3222 | pr_err("failed to get thread map from %s\n", sched->map.color_cpus_str); |
3223 | return -1; | 3223 | return -1; |