Home
last modified time | relevance | path

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

1234

/linux-6.6.21/tools/testing/selftests/rseq/
Dbasic_test.c28 sched_setaffinity(0, sizeof(test_affinity), in test_cpu_pointer()
39 sched_setaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
/linux-6.6.21/tools/perf/util/
Daffinity.c67 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->sched_cpus); in affinity__set()
76 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in __affinity__cleanup()
/linux-6.6.21/tools/testing/selftests/bpf/map_tests/
Dtask_storage_map.c93 sched_setaffinity(getpid(), sizeof(new), &new); in test_task_storage_map_stress_lookup()
125 sched_setaffinity(getpid(), sizeof(old), &old); in test_task_storage_map_stress_lookup()
/linux-6.6.21/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()
/linux-6.6.21/tools/testing/selftests/x86/
Dsysret_ss_attrs.c58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Dcorrupt_xstate_header.c80 sched_setaffinity(getpid(), sizeof(set), &set); 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()
Diopl.c178 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dtask_local_storage.c187 err = sched_setaffinity(getpid(), sizeof(new), &new); in test_nodeadlock()
233 sched_setaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
Dtest_overhead.c54 sched_setaffinity(0, sizeof(cpuset), &cpuset); in setaffinity()
/linux-6.6.21/tools/testing/selftests/powerpc/tm/
Dtm-poison.c44 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0); in tm_poison_test()
/linux-6.6.21/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
/linux-6.6.21/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/linux-6.6.21/kernel/
Dcompat.c124 COMPAT_SYSCALL_DEFINE3(sched_setaffinity, compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE3() argument
138 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
/linux-6.6.21/tools/perf/tests/
Dmmap-basic.c63 sched_setaffinity(0, sizeof(cpu_set), &cpu_set); in test__basic_mmap()
64 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__basic_mmap()
Dopenat-syscall-all-cpus.c78 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__openat_syscall_event_on_all_cpus()
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dnuma.rst77 序接口,如sched_setaffinity(2),来限制任务的迁移,以改善NUMA定位。此外,人们可以使用
/linux-6.6.21/tools/testing/selftests/intel_pstate/
Daperf.c57 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
/linux-6.6.21/tools/power/cpupower/bench/
Dsystem.c84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
/linux-6.6.21/tools/testing/selftests/kvm/
Drseq_test.c92 r = sched_setaffinity(rseq_tid, sizeof(allowed_mask), &allowed_mask); in migration_worker()
/linux-6.6.21/tools/virtio/virtio-trace/
Dtrace-agent-rw.c100 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
/linux-6.6.21/tools/tracing/rtla/src/
Dtimerlat_u.c46 retval = sched_setaffinity(gettid(), sizeof(set), &set); in timerlat_u_main()
/linux-6.6.21/tools/testing/selftests/breakpoints/
Dstep_after_suspend_test.c30 if (sched_setaffinity(0, sizeof(set), &set) != 0) { in child()
/linux-6.6.21/tools/testing/selftests/powerpc/benchmarks/
Dfork.c40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu()

1234