Home
last modified time | relevance | path

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

123

/Linux-v4.19/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-v4.19/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.c90 sched_setaffinity(0, sizeof(cpuset), &cpuset); in loop()
Dtracex6_user.c34 assert(sched_setaffinity(0, sizeof(set), &set) == 0); in check_on_cpu()
/Linux-v4.19/tools/perf/tests/
Dmmap-basic.c57 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()
Dopenat-syscall-all-cpus.c72 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/
Dsysret_ss_attrs.c66 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()
Dfsgsbase.c394 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
/Linux-v4.19/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c47 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
/Linux-v4.19/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h89 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
Dtm-tmspr.c49 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
/Linux-v4.19/tools/testing/selftests/intel_pstate/
Daperf.c53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
/Linux-v4.19/tools/power/cpupower/bench/
Dsystem.c97 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
/Linux-v4.19/tools/virtio/virtio-trace/
Dtrace-agent-rw.c102 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
/Linux-v4.19/kernel/trace/
Dtrace_hwlat.c297 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/
Dstep_after_suspend_test.c39 if (sched_setaffinity(0, sizeof(set), &set) != 0) { in child()
/Linux-v4.19/tools/testing/selftests/powerpc/pmu/
Dlib.c27 return sched_setaffinity(0, sizeof(mask), &mask); in bind_to_cpu()
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/
Dfork.c40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu()
/Linux-v4.19/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-v4.19/kernel/
Dcompat.c279 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/
Dcpusets.txt53 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

123