/Linux-v4.19/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-v4.19/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 | 90 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-v4.19/tools/perf/tests/ |
D | mmap-basic.c | 57 sched_setaffinity(0, sizeof(cpu_set), &cpu_set); in test__basic_mmap() 58 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__basic_mmap()
|
D | openat-syscall-all-cpus.c | 72 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__openat_syscall_event_on_all_cpus()
|
/Linux-v4.19/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 66 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()
|
D | fsgsbase.c | 394 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
/Linux-v4.19/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_thread_test.c | 47 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
|
/Linux-v4.19/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.h | 89 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
/Linux-v4.19/tools/testing/selftests/powerpc/tm/ |
D | tm-tmspr.c | 49 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
|
/Linux-v4.19/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/Linux-v4.19/tools/power/cpupower/bench/ |
D | system.c | 97 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
/Linux-v4.19/tools/virtio/virtio-trace/ |
D | trace-agent-rw.c | 102 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
|
/Linux-v4.19/kernel/trace/ |
D | trace_hwlat.c | 297 sched_setaffinity(0, current_mask); in move_to_next_cpu() 373 sched_setaffinity(kthread->pid, current_mask); in start_kthread()
|
/Linux-v4.19/tools/testing/selftests/breakpoints/ |
D | step_after_suspend_test.c | 39 if (sched_setaffinity(0, sizeof(set), &set) != 0) { in child()
|
/Linux-v4.19/tools/testing/selftests/powerpc/pmu/ |
D | lib.c | 27 return sched_setaffinity(0, sizeof(mask), &mask); in bind_to_cpu()
|
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu()
|
/Linux-v4.19/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-v4.19/kernel/ |
D | compat.c | 279 COMPAT_SYSCALL_DEFINE3(sched_setaffinity, compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE3() argument 293 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
|
/Linux-v4.19/Documentation/cgroup-v1/ |
D | cpusets.txt | 53 Requests by a task, using the sched_setaffinity(2) system call to 114 CPUs a task may be scheduled (sched_setaffinity) and on which Memory 123 - Calls to sched_setaffinity are filtered to just those CPUs 143 - in sched_setaffinity, to mask the requested CPUs by what's 203 using the sched_setaffinity, mbind and set_mempolicy system calls. 380 as cpusets and sched_setaffinity. 412 can move a task (not otherwised pinned, as by sched_setaffinity) 620 bound to some subset of its cpuset using the sched_setaffinity() call, 622 negating the effect of the prior sched_setaffinity() call. 704 The sched_setaffinity calls can also be done at the shell prompt using
|