/third_party/musl/libc-test/src/functionalext/supplement/sched/ |
H A D | __sched_cpucount.c | 36 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0100() 62 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0200() 88 cpusetp = CPU_ALLOC(num_cpus); in __sched_cpucount_0300()
|
H A D | sched_setaffinity.c | 31 cpu_set_t *set = CPU_ALLOC(max); in sched_setaffinity_0100()
|
/third_party/ltp/include/lapi/ |
H A D | cpuset.h | 23 #ifndef CPU_ALLOC 24 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \ macro
|
/third_party/ltp/testcases/kernel/syscalls/sched_setaffinity/ |
H A D | sched_setaffinity01.c | 96 mask = CPU_ALLOC(ncpus); in setup() 98 tst_brk(TBROK | TERRNO, "CPU_ALLOC() failed"); in setup() 105 emask = CPU_ALLOC(ncpus + 1); in setup() 107 tst_brk(TBROK | TERRNO, "CPU_ALLOC() failed"); in setup()
|
/third_party/ltp/lib/ |
H A D | tst_cpu.c | 82 cpu_set_t *cpus = CPU_ALLOC(ncpus); in tst_ncpus_available() 85 tst_brkm(TBROK | TERRNO, NULL, "CPU_ALLOC(%zu)", cpusz); in tst_ncpus_available()
|
/third_party/ltp/testcases/kernel/syscalls/sched_getaffinity/ |
H A D | sched_getaffinity01.c | 49 mask = CPU_ALLOC(nrcpus); in do_test() 51 tst_brk(TBROK | TERRNO, "CPU_ALLOC()"); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/nice/ |
H A D | nice05.c | 80 set = CPU_ALLOC(nrcpus); in setup() 82 tst_brk(TBROK | TERRNO, "CPU_ALLOC()"); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/getcpu/ |
H A D | getcpu01.c | 42 set = CPU_ALLOC(nrcpus); in set_cpu_affinity() 44 tst_brk(TBROK | TERRNO, "CPU_ALLOC()"); in set_cpu_affinity()
|
/third_party/musl/porting/liteos_a/user/include/ |
H A D | sched.h | 119 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | sched.h | 111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | sched.h | 111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | sched.h | 112 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | sched.h | 111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/musl/porting/linux/user/include/ |
H A D | sched.h | 126 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n)))
macro
|
/third_party/musl/porting/liteos_m/user/include/ |
H A D | sched.h | 123 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/musl/include/ |
H A D | sched.h | 137 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
|
/third_party/ltp/testcases/kernel/syscalls/perf_event_open/ |
H A D | perf_event_open02.c | 187 mask = CPU_ALLOC(cpu + 1); in bind_to_current_cpu()
|
/third_party/python/Modules/ |
H A D | posixmodule.c | 284 #if !defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY) 7197 cpu_set = CPU_ALLOC(ncpus); in os_sched_setaffinity_impl() 7236 newmask = CPU_ALLOC(newncpus); in os_sched_setaffinity_impl() 7293 mask = CPU_ALLOC(ncpus); in os_sched_getaffinity_impl()
|