Lines Matching refs:conf

43 struct conf  struct
105 setup_conf (struct conf *conf) in setup_conf() argument
107 *conf = (struct conf) {-1, -1}; in setup_conf()
108 conf->set_size = find_set_size (); in setup_conf()
109 if (conf->set_size > 0) in setup_conf()
111 cpu_set_t *set = CPU_ALLOC (conf->set_size); in setup_conf()
115 printf ("error: CPU_ALLOC (%d) failed\n", conf->set_size); in setup_conf()
119 if (getaffinity (CPU_ALLOC_SIZE (conf->set_size), set) < 0) in setup_conf()
125 conf->last_cpu = find_last_cpu (set, CPU_ALLOC_SIZE (conf->set_size)); in setup_conf()
126 if (conf->last_cpu < 0) in setup_conf()
133 test_size (const struct conf *conf, size_t size) in test_size() argument
135 if (size < conf->set_size) in test_size()
165 for (int cpu = 0; cpu <= conf->last_cpu; ++cpu) in test_size()
265 struct conf conf; in do_test() local
266 setup_conf (&conf); in do_test()
272 printf ("info: Detected CPU set size (in bits): %d\n", conf.set_size); in do_test()
273 printf ("info: Maximum test CPU: %d\n", conf.last_cpu); in do_test()
274 if (conf.set_size < 0 || conf.last_cpu < 0) in do_test()
277 if (!early_test (&conf)) in do_test()
281 error |= !test_size (&conf, 1024); in do_test()
282 error |= !test_size (&conf, conf.set_size); in do_test()
283 error |= !test_size (&conf, 2); in do_test()
284 error |= !test_size (&conf, 32); in do_test()
285 error |= !test_size (&conf, 40); in do_test()
286 error |= !test_size (&conf, 64); in do_test()
287 error |= !test_size (&conf, 96); in do_test()
288 error |= !test_size (&conf, 128); in do_test()
289 error |= !test_size (&conf, 256); in do_test()
290 error |= !test_size (&conf, 8192); in do_test()