/external/ltp/testcases/kernel/lib/ |
D | numa_helper.c | 102 static int cpumask_has_cpus(char *cpumask, size_t len) in cpumask_has_cpus() argument 106 if (cpumask[j] == '\0') in cpumask_has_cpus() 108 else if ((cpumask[j] > '0' && cpumask[j] <= '9') || in cpumask_has_cpus() 109 (cpumask[j] >= 'a' && cpumask[j] <= 'f')) in cpumask_has_cpus() 117 char *cpumask = NULL; in filter_nodemask_cpu() local 129 ret = getdelim(&cpumask, &len, '\n', f); in filter_nodemask_cpu() 130 if ((ret > 0) && (!cpumask_has_cpus(cpumask, len))) in filter_nodemask_cpu() 135 free(cpumask); in filter_nodemask_cpu()
|
/external/fio/os/ |
D | os-freebsd.h | 53 static inline int fio_setaffinity(int pid, os_cpu_mask_t cpumask) in fio_setaffinity() argument 55 return cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, pid, sizeof(cpumask), &cpumask); in fio_setaffinity() 58 static inline int fio_getaffinity(int pid, os_cpu_mask_t *cpumask) in fio_getaffinity() argument 60 return cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, pid, sizeof(cpumask), cpumask); in fio_getaffinity()
|
D | os-linux.h | 59 #define fio_setaffinity(pid, cpumask) \ argument 60 sched_setaffinity((pid), sizeof(cpumask), &(cpumask)) 64 #define fio_setaffinity(pid, cpumask) \ argument 65 sched_setaffinity((pid), &(cpumask))
|
D | os-windows.h | 175 static inline int fio_setaffinity(int pid, os_cpu_mask_t cpumask) in fio_setaffinity() argument 182 bSuccess = SetThreadAffinityMask(h, cpumask); in fio_setaffinity() 184 …rr("fio_setaffinity failed: failed to set thread affinity (pid %d, mask %.16llx)\n", pid, cpumask); in fio_setaffinity()
|
D | os-solaris.h | 99 #define fio_setaffinity(pid, cpumask) \ argument 100 pset_bind((cpumask), P_PID, (pid), NULL)
|
D | os.h | 91 static inline int fio_setaffinity(int pid, os_cpu_mask_t cpumask) in fio_setaffinity() argument 96 static inline int fio_getaffinity(int pid, os_cpu_mask_t *cpumask) in fio_getaffinity() argument
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
D | cpuset_cpu_hog.c | 166 struct bitmask *cpumask = NULL; in cpu_hog() local 177 cpumask = bitmask_alloc(nbits); in cpu_hog() 178 if (cpumask == NULL) { in cpu_hog() 194 if (cpuset_getcpus(cp, cpumask) != 0) { in cpu_hog() 207 if (!bitmask_isbitset(cpumask, cpu)) { in cpu_hog() 209 bitmask_displaylist(str, 50, cpumask); in cpu_hog() 218 bitmask_free(cpumask); in cpu_hog()
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | cpuinfo.c | 88 int online_cpumask(struct bitmask *cpumask) in online_cpumask() argument 94 if (cpumask == NULL) in online_cpumask() 105 bitmask_setbit(cpumask, i); in online_cpumask() 116 if (bitmask_parselist(buf, cpumask) != 0) in online_cpumask() 129 int present_cpumask(struct bitmask *cpumask) in present_cpumask() argument 136 if (cpumask == NULL) in present_cpumask() 148 bitmask_setbit(cpumask, cpu); in present_cpumask() 160 if (bitmask_parselist(buf, cpumask) != 0) in present_cpumask()
|
D | cpuinfo.h | 18 extern int online_cpumask(struct bitmask *cpumask); 19 extern int present_cpumask(struct bitmask *cpumask);
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | getdelays.c | 75 char cpumask[100 + 6 * MAX_CPUS]; variable 317 strncpy(cpumask, optarg, sizeof(cpumask)); in main() 319 printf("cpumask %s maskset %d\n", cpumask, maskset); in main() 370 &cpumask, strlen(cpumask) + 1); in main() 525 &cpumask, strlen(cpumask) + 1); in main()
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
D | jitter.sh | 54 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN { 64 if ! taskset -p $cpumask $$ > /dev/null 2>&1 66 echo taskset failure: '"taskset -p ' $cpumask $$ '"'
|
/external/trappy/trappy/ |
D | cpu_power.py | 176 for cpumask in mapping_label: 177 num_cpus = num_cpus_in_mask(cpumask) 178 idx = dfr["cpus"] == cpumask
|
/external/perfetto/src/ftrace_reader/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/thermal/thermal_power_cpu_limit/ |
D | format | 9 field:__data_loc unsigned long[] cpumask; offset:8; size:4; signed:0; 14 print fmt: "cpus=%s freq=%u cdev_state=%lu power=%u", __get_bitmask(cpumask), REC->freq, REC->cdev_…
|
/external/ltp/testcases/realtime/func/rt-migrate/ |
D | rt-migrate.c | 320 cpu_set_t cpumask; in start_task() local 341 CPU_ZERO(&cpumask); in start_task() 342 CPU_SET(cpu, &cpumask); in start_task() 344 sched_setaffinity(0, sizeof(cpumask), &cpumask); in start_task()
|
/external/perfetto/src/ftrace_reader/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/thermal/thermal_power_cpu_get_power/ |
D | format | 9 field:__data_loc unsigned long[] cpumask; offset:8; size:4; signed:0; 16 print fmt: "cpus=%s freq=%lu load={%s} dynamic_power=%d static_power=%d", __get_bitmask(cpumask), R…
|
/external/llvm/test/CodeGen/Hexagon/ |
D | expand-condsets-rm-segment.ll | 7 %struct.cpumask = type { [1 x i32] } 20 @cpu_online_mask = external constant %struct.cpumask*
|
/external/fio/ |
D | thread_options.h | 194 os_cpu_mask_t cpumask; member 467 uint8_t cpumask[FIO_TOP_STR_MAX];
|
D | backend.c | 1532 fio_cpu_clear(&o->cpumask, o->gtod_cpu); in thread_main() 1538 if (fio_option_is_set(o, cpumask)) { in thread_main() 1540 ret = fio_cpus_split(&o->cpumask, td->thread_number - 1); in thread_main() 1548 ret = fio_setaffinity(td->pid, o->cpumask); in thread_main() 1841 if (fio_option_is_set(o, cpumask)) { in thread_main() 1842 ret = fio_cpuset_exit(&o->cpumask); in thread_main()
|
D | options.c | 467 ret = fio_cpuset_init(&td->o.cpumask); in str_cpumask_cb() 484 fio_cpu_set(&td->o.cpumask, i); in str_cpumask_cb() 564 return set_cpus_allowed(td, &td->o.cpumask, input); in str_cpus_allowed_cb() 3490 .off1 = offsetof(struct thread_options, cpumask), 3500 .off1 = offsetof(struct thread_options, cpumask),
|
D | cconv.c | 300 uint8_t cpumask[FIO_TOP_STR_MAX]; in convert_thread_options_to_cpu() 554 uint8_t cpumask[FIO_TOP_STR_MAX]; in convert_thread_options_to_net()
|
D | init.c | 1958 fio_getaffinity(getpid(), &def_thread.o.cpumask); in fill_def_thread()
|
D | HOWTO | 2175 .. option:: cpumask=int 2188 Controls the same options as :option:`cpumask`, but it allows a text setting 2197 :option:`cpus_allowed` or cpumask. Two policies are supported:
|
/external/fio/engines/ |
D | windowsaio.c | 123 fio_setaffinity(threadid, td->o.cpumask); in fio_windowsaio_init()
|