We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f57d2 commit 99fc11bCopy full SHA for 99fc11b
tools/lib/perf/tests/test-evlist.c
@@ -334,7 +334,8 @@ static int test_mmap_cpus(void)
334
};
335
cpu_set_t saved_mask;
336
char path[PATH_MAX];
337
- int id, err, cpu, tmp;
+ int id, err, tmp;
338
+ struct perf_cpu cpu;
339
union perf_event *event;
340
int count = 0;
341
@@ -377,7 +378,7 @@ static int test_mmap_cpus(void)
377
378
cpu_set_t mask;
379
380
CPU_ZERO(&mask);
- CPU_SET(cpu, &mask);
381
+ CPU_SET(cpu.cpu, &mask);
382
383
err = sched_setaffinity(0, sizeof(mask), &mask);
384
__T("sched_setaffinity failed", err == 0);
0 commit comments