| .. | .. |
|---|
| 1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | 2 | #include <linux/compiler.h> |
|---|
| 3 | 3 | #include <linux/bitmap.h> |
|---|
| 4 | +#include <perf/cpumap.h> |
|---|
| 5 | +#include <internal/cpumap.h> |
|---|
| 4 | 6 | #include "tests.h" |
|---|
| 5 | | -#include "cpumap.h" |
|---|
| 6 | 7 | #include "debug.h" |
|---|
| 7 | 8 | |
|---|
| 8 | 9 | #define NBITS 100 |
|---|
| 9 | 10 | |
|---|
| 10 | 11 | static unsigned long *get_bitmap(const char *str, int nbits) |
|---|
| 11 | 12 | { |
|---|
| 12 | | - struct cpu_map *map = cpu_map__new(str); |
|---|
| 13 | + struct perf_cpu_map *map = perf_cpu_map__new(str); |
|---|
| 13 | 14 | unsigned long *bm = NULL; |
|---|
| 14 | 15 | int i; |
|---|
| 15 | 16 | |
|---|
| .. | .. |
|---|
| 21 | 22 | } |
|---|
| 22 | 23 | |
|---|
| 23 | 24 | if (map) |
|---|
| 24 | | - cpu_map__put(map); |
|---|
| 25 | + perf_cpu_map__put(map); |
|---|
| 25 | 26 | return bm; |
|---|
| 26 | 27 | } |
|---|
| 27 | 28 | |
|---|