Searched refs:cpumask (Results 1 – 6 of 6) sorted by relevance
/third_party/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()
|
/third_party/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()
|
/third_party/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);
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_getdelays.c | 72 char cpumask[100 + 6 * MAX_CPUS]; variable 314 strncpy(cpumask, optarg, sizeof(cpumask)); in main() 316 printf("cpumask %s maskset %d\n", cpumask, maskset); in main() 367 &cpumask, strlen(cpumask) + 1); in main() 519 &cpumask, strlen(cpumask) + 1); in main()
|
/third_party/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()
|