hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/perf/tests/bitmap.c
....@@ -1,15 +1,16 @@
11 // SPDX-License-Identifier: GPL-2.0
22 #include <linux/compiler.h>
33 #include <linux/bitmap.h>
4
+#include <perf/cpumap.h>
5
+#include <internal/cpumap.h>
46 #include "tests.h"
5
-#include "cpumap.h"
67 #include "debug.h"
78
89 #define NBITS 100
910
1011 static unsigned long *get_bitmap(const char *str, int nbits)
1112 {
12
- struct cpu_map *map = cpu_map__new(str);
13
+ struct perf_cpu_map *map = perf_cpu_map__new(str);
1314 unsigned long *bm = NULL;
1415 int i;
1516
....@@ -21,7 +22,7 @@
2122 }
2223
2324 if (map)
24
- cpu_map__put(map);
25
+ perf_cpu_map__put(map);
2526 return bm;
2627 }
2728