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.c411 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()
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()
H A Dresctrl.h135 int taskset_benchmark(pid_t bm_pid, int cpu_no, cpu_set_t *old_affinity);
136 int taskset_restore(pid_t bm_pid, cpu_set_t *old_affinity);
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()