Searched refs:CPU_ALLOC_SIZE (Results 1 – 12 of 12) sorted by relevance
47 #ifndef CPU_ALLOC_SIZE48 #define CPU_ALLOC_SIZE(size) sizeof(cpu_set_t) macro
100 mask_size = CPU_ALLOC_SIZE(ncpus); in setup()109 emask_size = CPU_ALLOC_SIZE(ncpus + 1); in setup()
53 len = CPU_ALLOC_SIZE(nrcpus); in do_test()
60 size = CPU_ALLOC_SIZE(nrcpus); in set_cpu_affinity()
630 size = CPU_ALLOC_SIZE(max_cpus); in lock_on_cpu()1032 size_t alloc_size = CPU_ALLOC_SIZE(max_cpus); in open_client_connections()1055 size_t alloc_size = CPU_ALLOC_SIZE(max_cpus); in close_client_connections()1925 size_t alloc_size = CPU_ALLOC_SIZE(max_cpus); in start_tracers()2775 alloc_size = CPU_ALLOC_SIZE(max_cpus); in get_online_cpus()2803 ncpus = CPU_COUNT_S(CPU_ALLOC_SIZE(max_cpus), online_cpus); in main()
219 mask_size = CPU_ALLOC_SIZE(cpu + 1); in bind_to_current_cpu()
511 size = CPU_ALLOC_SIZE(nrcpus); in get_ncpus()547 size = CPU_ALLOC_SIZE(ncpus); in pin_to_cpu()
560 cpu_set_size = CPU_ALLOC_SIZE(cpus_online); in main()
1303 if (sched_getaffinity(0, CPU_ALLOC_SIZE(2048), DynAffinity) == 0) { in computeHostNumPhysicalCores()
6916 setsize = CPU_ALLOC_SIZE(ncpus); in os_sched_setaffinity_impl()6961 newsetsize = CPU_ALLOC_SIZE(newncpus); in os_sched_setaffinity_impl()7012 setsize = CPU_ALLOC_SIZE(ncpus); in os_sched_getaffinity_impl()
2835 pub fn CPU_ALLOC_SIZE(count: ::c_int) -> ::size_t {
3229 int res = sched_getaffinity(getpid(), CPU_ALLOC_SIZE(2048), DynAffinity); in TEST()