summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/x86/util/intel-bts.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-08-22 13:11:39 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-22 11:17:03 -0300
commit315c0a1f0ccdd44c65f80ccbc62202fed8a23050 (patch)
tree7a4ba0191b49d5ec462d2d7c8a9fb472475c47ee /tools/perf/arch/x86/util/intel-bts.c
parent6549cd8f2cc2cdf7e107fbbc3a68ecefb774bb2f (diff)
libperf: Move perf's cpu_map__empty() to perf_cpu_map__empty()
So it's part of the libperf library as one of basic functions operating on the perf_cpu_map class. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@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/20190822111141.25823-4-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/x86/util/intel-bts.c')
-rw-r--r--tools/perf/arch/x86/util/intel-bts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c
index 7b23318ebd7b..2d5d8a12dd1f 100644
--- a/tools/perf/arch/x86/util/intel-bts.c
+++ b/tools/perf/arch/x86/util/intel-bts.c
@@ -133,7 +133,7 @@ static int intel_bts_recording_options(struct auxtrace_record *itr,
if (!opts->full_auxtrace)
return 0;
- if (opts->full_auxtrace && !cpu_map__empty(cpus)) {
+ if (opts->full_auxtrace && !perf_cpu_map__empty(cpus)) {
pr_err(INTEL_BTS_PMU_NAME " does not support per-cpu recording\n");
return -EINVAL;
}
@@ -214,7 +214,7 @@ static int intel_bts_recording_options(struct auxtrace_record *itr,
* In the case of per-cpu mmaps, we need the CPU on the
* AUX event.
*/
- if (!cpu_map__empty(cpus))
+ if (!perf_cpu_map__empty(cpus))
perf_evsel__set_sample_bit(intel_bts_evsel, CPU);
}