Home
last modified time | relevance | path

Searched refs:CPU_ALLOC_SIZE (Results 1 – 22 of 22) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/sched/
D__sched_cpucount.c39 size = CPU_ALLOC_SIZE(num_cpus); in __sched_cpucount_0100()
65 size = CPU_ALLOC_SIZE(num_cpus); in __sched_cpucount_0200()
91 size = CPU_ALLOC_SIZE(num_cpus); in __sched_cpucount_0300()
Dsched_setaffinity.c36 size_t set_size = CPU_ALLOC_SIZE(max); in sched_setaffinity_0100()
/third_party/ltp/include/lapi/
Dcpuset.h35 #ifndef CPU_ALLOC_SIZE
36 #define CPU_ALLOC_SIZE(size) sizeof(cpu_set_t) macro
/third_party/ltp/testcases/kernel/syscalls/sched_setaffinity/
Dsched_setaffinity01.c100 mask_size = CPU_ALLOC_SIZE(ncpus); in setup()
109 emask_size = CPU_ALLOC_SIZE(ncpus + 1); in setup()
/third_party/musl/porting/linux/user/include/
Dsched.h124 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
126 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dsched.h109 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/liteos_m/user/include/
Dsched.h121 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
123 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/liteos_a/user/include/
Dsched.h117 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
119 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/liteos_a/kernel/include/
Dsched.h110 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
112 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/ndk_musl_include/
Dsched.h123 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
125 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/uniproton/kernel/include/
Dsched.h109 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/include/
Dsched.h122 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
124 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/liteos_m/kernel/include/
Dsched.h109 #define CPU_ALLOC_SIZE(n) (sizeof(long) * ( (n)/(8*sizeof(long)) \ macro
111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
/third_party/musl/porting/linux/user/src/sched/
Dsched_cpualloc.c10 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); // NOLINT in __sched_cpualloc()
/third_party/ltp/lib/
Dtst_cpu.c81 size_t cpusz = CPU_ALLOC_SIZE(ncpus); in tst_ncpus_available()
/third_party/ltp/testcases/kernel/syscalls/sched_getaffinity/
Dsched_getaffinity01.c53 len = CPU_ALLOC_SIZE(nrcpus); in do_test()
/third_party/ltp/testcases/kernel/syscalls/getcpu/
Dgetcpu01.c60 size = CPU_ALLOC_SIZE(nrcpus); in set_cpu_affinity()
/third_party/ltp/testcases/kernel/syscalls/perf_event_open/
Dperf_event_open02.c189 mask_size = CPU_ALLOC_SIZE(cpu + 1); in bind_to_current_cpu()
/third_party/rust/crates/libc/libc-test/semver/
Dlinux.txt289 CPU_ALLOC_SIZE
/third_party/python/Modules/
Dposixmodule.c7051 setsize = CPU_ALLOC_SIZE(ncpus); in os_sched_setaffinity_impl()
7096 newsetsize = CPU_ALLOC_SIZE(newncpus); in os_sched_setaffinity_impl()
7147 setsize = CPU_ALLOC_SIZE(ncpus); in os_sched_getaffinity_impl()
/third_party/rust/crates/libc/src/unix/linux_like/android/
Dmod.rs3003 pub fn CPU_ALLOC_SIZE(count: ::c_int) -> ::size_t {
/third_party/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3614 pub fn CPU_ALLOC_SIZE(count: ::c_int) -> ::size_t {