Home
last modified time | relevance | path

Searched refs:sched_setaffinity (Results 1 – 25 of 69) sorted by relevance

123

/Linux-v5.4/tools/testing/selftests/rseq/
Dbasic_test.c26 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/
Dcpustat_user.c136 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()
Dtest_overhead_user.c87 sched_setaffinity(0, sizeof(cpuset), &cpuset); in loop()
Dtracex6_user.c34 assert(sched_setaffinity(0, sizeof(set), &set) == 0); in check_on_cpu()
/Linux-v5.4/tools/perf/tests/
Dmmap-basic.c62 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()
Dopenat-syscall-all-cpus.c75 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/
Dsysret_ss_attrs.c58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Diopl.c50 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Dioperm.c93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Dldt_gdt.c440 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()
Dtest_vdso.c142 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in test_getcpu()
/Linux-v5.4/tools/testing/selftests/powerpc/tm/
Dtm-poison.c41 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tm_poison_test()
Dtm-tmspr.c48 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
/Linux-v5.4/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
/Linux-v5.4/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h87 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/Linux-v5.4/tools/testing/selftests/intel_pstate/
Daperf.c53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
/Linux-v5.4/tools/power/cpupower/bench/
Dsystem.c84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
/Linux-v5.4/tools/virtio/virtio-trace/
Dtrace-agent-rw.c100 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
/Linux-v5.4/kernel/trace/
Dtrace_hwlat.c299 sched_setaffinity(0, current_mask); in move_to_next_cpu()
375 sched_setaffinity(kthread->pid, current_mask); in start_kthread()
/Linux-v5.4/kernel/
Dcompat.c212 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/
Dstep_after_suspend_test.c30 if (sched_setaffinity(0, sizeof(set), &set) != 0) { in child()
/Linux-v5.4/tools/testing/selftests/powerpc/pmu/
Dlib.c27 return sched_setaffinity(0, sizeof(mask), &mask); in bind_to_cpu()
/Linux-v5.4/tools/testing/selftests/powerpc/benchmarks/
Dfork.c40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu()
/Linux-v5.4/tools/virtio/
Dvringh_test.c101 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/
Dcpusets.rst54 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

123