diff options
Diffstat (limited to 'tools/perf/bench/futex-requeue.c')
| -rw-r--r-- | tools/perf/bench/futex-requeue.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/perf/bench/futex-requeue.c b/tools/perf/bench/futex-requeue.c index fc692efa0c05..a00a6891447a 100644 --- a/tools/perf/bench/futex-requeue.c +++ b/tools/perf/bench/futex-requeue.c @@ -20,9 +20,10 @@  #include <linux/kernel.h>  #include <linux/time64.h>  #include <errno.h> +#include <internal/cpumap.h> +#include <perf/cpumap.h>  #include "bench.h"  #include "futex.h" -#include "cpumap.h"  #include <err.h>  #include <stdlib.h> @@ -84,7 +85,7 @@ static void *workerfn(void *arg __maybe_unused)  }  static void block_threads(pthread_t *w, -			  pthread_attr_t thread_attr, struct cpu_map *cpu) +			  pthread_attr_t thread_attr, struct perf_cpu_map *cpu)  {  	cpu_set_t cpuset;  	unsigned int i; @@ -117,13 +118,13 @@ int bench_futex_requeue(int argc, const char **argv)  	unsigned int i, j;  	struct sigaction act;  	pthread_attr_t thread_attr; -	struct cpu_map *cpu; +	struct perf_cpu_map *cpu;  	argc = parse_options(argc, argv, options, bench_futex_requeue_usage, 0);  	if (argc)  		goto err; -	cpu = cpu_map__new(NULL); +	cpu = perf_cpu_map__new(NULL);  	if (!cpu)  		err(EXIT_FAILURE, "cpu_map__new");  |