| /Linux-v5.4/tools/testing/selftests/rseq/ |
| D | basic_test.c | 26 sched_setaffinity(0, sizeof(test_affinity), in test_cpu_pointer() 35 sched_setaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
|
| /Linux-v5.4/samples/bpf/ |
| D | cpustat_user.c | 136 sched_setaffinity(0, sizeof(cpumask), &cpumask); in cpu_stat_inject_cpu_idle_event() 140 sched_setaffinity(0, sizeof(original_cpumask), &original_cpumask); in cpu_stat_inject_cpu_idle_event()
|
| D | test_overhead_user.c | 87 sched_setaffinity(0, sizeof(cpuset), &cpuset); in loop()
|
| D | tracex6_user.c | 34 assert(sched_setaffinity(0, sizeof(set), &set) == 0); in check_on_cpu()
|
| /Linux-v5.4/tools/perf/tests/ |
| D | mmap-basic.c | 62 sched_setaffinity(0, sizeof(cpu_set), &cpu_set); in test__basic_mmap() 63 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__basic_mmap()
|
| D | openat-syscall-all-cpus.c | 75 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__openat_syscall_event_on_all_cpus()
|
| /Linux-v5.4/tools/testing/selftests/x86/ |
| D | sysret_ss_attrs.c | 58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
| D | iopl.c | 50 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
| D | ioperm.c | 93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
| D | ldt_gdt.c | 440 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in threadproc() 539 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in do_multicpu_tests() 546 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in do_multicpu_tests()
|
| D | test_vdso.c | 142 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in test_getcpu()
|
| /Linux-v5.4/tools/testing/selftests/powerpc/tm/ |
| D | tm-poison.c | 41 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tm_poison_test()
|
| D | tm-tmspr.c | 48 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
|
| /Linux-v5.4/tools/testing/selftests/powerpc/dscr/ |
| D | dscr_sysfs_thread_test.c | 44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
|
| /Linux-v5.4/tools/power/cpupower/utils/idle_monitor/ |
| D | cpupower-monitor.h | 87 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
| /Linux-v5.4/tools/testing/selftests/intel_pstate/ |
| D | aperf.c | 53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
| /Linux-v5.4/tools/power/cpupower/bench/ |
| D | system.c | 84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
| /Linux-v5.4/tools/virtio/virtio-trace/ |
| D | trace-agent-rw.c | 100 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
|
| /Linux-v5.4/kernel/trace/ |
| D | trace_hwlat.c | 299 sched_setaffinity(0, current_mask); in move_to_next_cpu() 375 sched_setaffinity(kthread->pid, current_mask); in start_kthread()
|
| /Linux-v5.4/kernel/ |
| D | compat.c | 212 COMPAT_SYSCALL_DEFINE3(sched_setaffinity, compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE3() argument 226 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
|
| /Linux-v5.4/tools/testing/selftests/breakpoints/ |
| D | step_after_suspend_test.c | 30 if (sched_setaffinity(0, sizeof(set), &set) != 0) { in child()
|
| /Linux-v5.4/tools/testing/selftests/powerpc/pmu/ |
| D | lib.c | 27 return sched_setaffinity(0, sizeof(mask), &mask); in bind_to_cpu()
|
| /Linux-v5.4/tools/testing/selftests/powerpc/benchmarks/ |
| D | fork.c | 40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu()
|
| /Linux-v5.4/tools/virtio/ |
| D | vringh_test.c | 101 if (sched_setaffinity(getpid(), sizeof(set), &set) == 0) { in find_cpus() 192 if (sched_setaffinity(getpid(), sizeof(cpu_set), &cpu_set)) in parallel_test() 314 if (sched_setaffinity(getpid(), sizeof(cpu_set), &cpu_set)) in parallel_test()
|
| /Linux-v5.4/Documentation/admin-guide/cgroup-v1/ |
| D | cpusets.rst | 54 Requests by a task, using the sched_setaffinity(2) system call to 115 CPUs a task may be scheduled (sched_setaffinity) and on which Memory 124 - Calls to sched_setaffinity are filtered to just those CPUs 144 - in sched_setaffinity, to mask the requested CPUs by what's 205 using the sched_setaffinity, mbind and set_mempolicy system calls. 383 as cpusets and sched_setaffinity. 416 can move a task (not otherwised pinned, as by sched_setaffinity) 628 bound to some subset of its cpuset using the sched_setaffinity() call, 630 negating the effect of the prior sched_setaffinity() call. 713 The sched_setaffinity calls can also be done at the shell prompt using
|