Home
last modified time | relevance | path

Searched refs:CPU_ALLOC (Results 1 – 8 of 8) sorted by relevance

/external/ltp/include/lapi/
Dcpuset.h35 #ifndef CPU_ALLOC
36 #define CPU_ALLOC(ncpus) malloc(sizeof(cpu_set_t)); \ macro
/external/ltp/testcases/kernel/syscalls/sched_setaffinity/
Dsched_setaffinity01.c101 mask = CPU_ALLOC(ncpus); in setup()
110 emask = CPU_ALLOC(ncpus + 1); in setup()
/external/ltp/testcases/kernel/syscalls/sched_getaffinity/
Dsched_getaffinity01.c101 mask = CPU_ALLOC(nrcpus); in do_test()
/external/ltp/testcases/kernel/syscalls/getcpu/
Dgetcpu01.c55 set = CPU_ALLOC(nrcpus); in set_cpu_affinity()
/external/blktrace/btreplay/
Dbtreplay.c510 cpus = CPU_ALLOC(nrcpus); in get_ncpus()
546 cpus = CPU_ALLOC(ncpus); in pin_to_cpu()
561 cpu_set_t *now = CPU_ALLOC(ncpus); in pin_to_cpu()
/external/linux-kselftest/tools/testing/selftests/mqueue/
Dmq_perf_tests.c555 cpu_set = CPU_ALLOC(cpus_online); in main()
/external/blktrace/
Dblktrace.c629 cpu_mask = CPU_ALLOC(max_cpus); in lock_on_cpu()
2770 set = CPU_ALLOC(max_cpus); in get_online_cpus()
/external/python/cpython3/Modules/
Dposixmodule.c104 #if !defined(CPU_ALLOC) && defined(HAVE_SCHED_SETAFFINITY)
5758 cpu_set = CPU_ALLOC(ncpus); in os_sched_setaffinity_impl()
5797 newmask = CPU_ALLOC(newncpus); in os_sched_setaffinity_impl()
5851 mask = CPU_ALLOC(ncpus); in os_sched_getaffinity_impl()