summaryrefslogtreecommitdiff
path: root/tools/perf/tests/openat-syscall-all-cpus.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-09-10 18:29:02 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-20 15:19:21 +0300
commit87ffb6c6407023419ae6b2770142b0754d9cbaa1 (patch)
treee9cddbe1223bfdeb3f01da1f878e316f52bc872b /tools/perf/tests/openat-syscall-all-cpus.c
parent09aa3b002c8cfcea65b2925ec4ff5a6ccdc44d87 (diff)
downloadlinux-87ffb6c6407023419ae6b2770142b0754d9cbaa1.tar.xz
perf env: Remove needless cpumap.h header
Only a 'struct perf_cmp_map' forward allocation is necessary, fix the places that need the header but were getting it indirectly, by luck, from env.h. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-3sj3n534zghxhk7ygzeaqlx9@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/openat-syscall-all-cpus.c')
-rw-r--r--tools/perf/tests/openat-syscall-all-cpus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/tests/openat-syscall-all-cpus.c b/tools/perf/tests/openat-syscall-all-cpus.c
index 9171f77cd9cd..93c176523e38 100644
--- a/tools/perf/tests/openat-syscall-all-cpus.c
+++ b/tools/perf/tests/openat-syscall-all-cpus.c
@@ -14,7 +14,8 @@
#include "evsel.h"
#include "tests.h"
#include "thread_map.h"
-#include "cpumap.h"
+#include <perf/cpumap.h>
+#include <internal/cpumap.h>
#include "debug.h"
#include "stat.h"
#include "util/counts.h"
@@ -37,7 +38,7 @@ int test__openat_syscall_event_on_all_cpus(struct test *test __maybe_unused, int
cpus = perf_cpu_map__new(NULL);
if (cpus == NULL) {
- pr_debug("cpu_map__new\n");
+ pr_debug("perf_cpu_map__new\n");
goto out_thread_map_delete;
}