Lines Matching refs:size
58 size_t size = CPU_ALLOC_SIZE (num_cpus); in find_set_size() local
65 if (getaffinity (size, set) == 0) in find_set_size()
83 find_last_cpu (const cpu_set_t *set, size_t size) in find_last_cpu() argument
90 size_t total_cpus = CPU_COUNT_S (size, set); in find_last_cpu()
95 if (CPU_ISSET_S (cpu, size, set)) in find_last_cpu()
133 test_size (const struct conf *conf, size_t size) in test_size() argument
135 if (size < conf->set_size) in test_size()
137 printf ("info: Test not run for CPU set size %zu\n", size); in test_size()
141 cpu_set_t *initial_set = CPU_ALLOC (size); in test_size()
142 cpu_set_t *set2 = CPU_ALLOC (size); in test_size()
143 cpu_set_t *active_cpu_set = CPU_ALLOC (size); in test_size()
147 printf ("error: size %zu: CPU_ALLOC failed\n", size); in test_size()
150 size_t kernel_size = CPU_ALLOC_SIZE (size); in test_size()
154 printf ("error: size %zu: getaffinity: %m\n", size); in test_size()
159 printf ("error: size %zu: setaffinity: %m\n", size); in test_size()
183 printf ("error: size %zu: setaffinity (%d): %m\n", size, cpu); in test_size()
206 printf ("error: size %zu: getaffinity (2): %m\n", size); in test_size()
211 printf ("error: size %zu: CPU sets do not match\n", size); in test_size()
217 for (int cpu = 0; cpu < size; ++cpu) in test_size()
221 printf ("error: size %zu: setaffinity (3): %m\n", size); in test_size()
227 printf ("error: size %zu: setaffinity (4): %m\n", size); in test_size()
232 printf ("error: size %zu: getaffinity (3): %m\n", size); in test_size()
237 printf ("error: size %zu: CPU sets do not match (2)\n", size); in test_size()