Lines Matching refs:cpus
52 struct cpu_map_entries *cpus; in process_event_cpus() local
60 cpus = (struct cpu_map_entries *)data->data; in process_event_cpus()
62 TEST_ASSERT_VAL("wrong nr", cpus->nr == 2); in process_event_cpus()
63 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[0] == 1); in process_event_cpus()
64 TEST_ASSERT_VAL("wrong cpu", cpus->cpu[1] == 256); in process_event_cpus()
78 struct cpu_map *cpus; in test__cpu_map_synthesize() local
81 cpus = cpu_map__new("0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19"); in test__cpu_map_synthesize()
84 !perf_event__synthesize_cpu_map(NULL, cpus, process_event_mask, NULL)); in test__cpu_map_synthesize()
86 cpu_map__put(cpus); in test__cpu_map_synthesize()
89 cpus = cpu_map__new("1,256"); in test__cpu_map_synthesize()
92 !perf_event__synthesize_cpu_map(NULL, cpus, process_event_cpus, NULL)); in test__cpu_map_synthesize()
94 cpu_map__put(cpus); in test__cpu_map_synthesize()