Home
last modified time | relevance | path

Searched refs:old_affinity (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/resctrl/
H A Dresctrlfs.c407 * @old_affinity: When not NULL, set to old CPU affinity
411 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity) in taskset_benchmark() argument
415 if (old_affinity) { in taskset_benchmark()
416 CPU_ZERO(old_affinity); in taskset_benchmark()
417 if (sched_getaffinity(bm_pid, sizeof(*old_affinity), in taskset_benchmark()
418 old_affinity)) { in taskset_benchmark()
439 * @old_affinity: The old CPU affinity to restore
443 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity) in taskset_restore() argument
445 if (sched_setaffinity(bm_pid, sizeof(*old_affinity), old_affinity)) { in taskset_restore()
[all...]
H A Dcat_test.c163 cpu_set_t old_affinity; in cat_test() local
175 ret = taskset_benchmark(bm_pid, uparams->cpu, &old_affinity); in cat_test()
230 taskset_restore(bm_pid, &old_affinity); in cat_test()
H A Dresctrl.h172 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity);
173 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity);