Home
last modified time | relevance | path

Searched refs:CPU_ALLOC (Results 1 - 18 of 18) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/sched/
H A D__sched_cpucount.c36 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 Dsched_setaffinity.c31 cpu_set_t *set = CPU_ALLOC(max); in sched_setaffinity_0100()
/third_party/ltp/include/lapi/
H A Dcpuset.h23 #ifndef CPU_ALLOC
24 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \ macro
/third_party/ltp/testcases/kernel/syscalls/sched_setaffinity/
H A Dsched_setaffinity01.c96 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 Dtst_cpu.c82 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 Dsched_getaffinity01.c49 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 Dnice05.c80 set = CPU_ALLOC(nrcpus); in setup()
82 tst_brk(TBROK | TERRNO, "CPU_ALLOC()"); in setup()
/third_party/ltp/testcases/kernel/syscalls/getcpu/
H A Dgetcpu01.c42 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 Dsched.h119 #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 Dsched.h111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
/third_party/musl/porting/liteos_m/kernel/include/
H A Dsched.h111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
/third_party/musl/porting/liteos_a/kernel/include/
H A Dsched.h112 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
/third_party/musl/porting/uniproton/kernel/include/
H A Dsched.h111 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
/third_party/musl/porting/linux/user/include/
H A Dsched.h126 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
/third_party/musl/porting/liteos_m/user/include/
H A Dsched.h123 #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) macro
/third_party/musl/include/
H A Dsched.h137 #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 Dperf_event_open02.c187 mask = CPU_ALLOC(cpu + 1); in bind_to_current_cpu()
/third_party/python/Modules/
H A Dposixmodule.c284 #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()

Completed in 24 milliseconds