Home
last modified time | relevance | path

Searched refs:sched_getaffinity (Results 1 – 25 of 40) sorted by relevance

12

/linux/tools/testing/selftests/rseq/
H A Dbasic_test.c21 sched_getaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
H A Dslice_test.c134 ASSERT_EQ(sched_getaffinity(0, sizeof(affinity), &affinity), 0); in FIXTURE_SETUP()
H A Dbasic_percpu_ops_test.c285 sched_getaffinity(0, sizeof(allowed_cpus), &allowed_cpus); in test_percpu_list()
H A Dparam_test.c753 sched_getaffinity(0, sizeof(allowed_cpus), &allowed_cpus); in test_percpu_list()
940 sched_getaffinity(0, sizeof(allowed_cpus), &allowed_cpus); in test_percpu_buffer()
1151 sched_getaffinity(0, sizeof(allowed_cpus), &allowed_cpus); in test_percpu_memcpy_buffer()
/linux/kernel/
H A Dcompat.c144 COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len, in COMPAT_SYSCALL_DEFINE3() argument
158 ret = sched_getaffinity(pid, mask); in COMPAT_SYSCALL_DEFINE3()
/linux/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.h87 if (sched_getaffinity(getpid(), sizeof(set), &set) == 0) { in bind_cpu()
/linux/tools/perf/util/
H A Daffinity.c17 * sched_getaffinity doesn't like masks smaller than the kernel. in get_cpu_set_size()
32 sched_getaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in affinity__setup()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dtask_storage_map.c
/linux/tools/testing/selftests/kvm/
H A Drseq_test.c229 r = sched_getaffinity(0, sizeof(possible_mask), &possible_mask); in main()
H A Darch_timer.c88 sched_getaffinity(0, sizeof(cpu_set_t), &online_cpuset); in test_get_pcpu()
H A Dmmu_stress_test.c262 r = sched_getaffinity(0, sizeof(possible_mask), &possible_mask); in calc_default_nr_vcpus()
/linux/tools/testing/selftests/breakpoints/
H A Dstep_after_suspend_test.c210 err = sched_getaffinity(0, sizeof(available_cpus), &available_cpus); in main()
/linux/tools/testing/selftests/sched_ext/
H A Dcyclic_kick_wait.c110 if (sched_getaffinity(0, sizeof(mask), &mask)) { in run()
/linux/samples/bpf/
H A Dcpustat_user.c121 sched_getaffinity(0, sizeof(original_cpumask), &original_cpumask); in cpu_stat_inject_cpu_idle_event()
/linux/tools/testing/selftests/riscv/hwprobe/
H A Dwhich-cpus.c91 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus_aff); in main()
H A Dcbo.c333 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus); in main()
/linux/kernel/sched/
H A Dsyscalls.c1278 long sched_getaffinity(pid_t pid, struct cpumask *mask) in sched_getaffinity() function
1307 SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len, in SYSCALL_DEFINE3() argument
1321 ret = sched_getaffinity(pid, mask); in SYSCALL_DEFINE3()
/linux/tools/perf/tests/
H A Dperf-record.c27 if (sched_getaffinity(pid, size, maskp) == -1) { in sched__get_first_possible_cpu()
32 perror("sched_getaffinity"); in sched__get_first_possible_cpu()
/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c118 sched_getaffinity(0, sizeof(mask), &mask); in exec_sign_all()
/linux/tools/lib/perf/tests/
H A Dtest-evlist.c375 err = sched_getaffinity(0, sizeof(saved_mask), &saved_mask); in test_mmap_cpus()
/linux/tools/testing/selftests/powerpc/
H A Dutils.c433 if (sched_getaffinity(0, size, mask)) { in pick_online_cpu()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtask_local_storage.c192 err = sched_getaffinity(getpid(), sizeof(old), &old); in test_nodeadlock()
/linux/tools/tracing/rtla/src/
H A Dutils.c977 retval = sched_getaffinity(getpid(), sizeof(rtla_cpus), &rtla_cpus);
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dsyscall_n64.tbl207 196 n64 sched_getaffinity sys_sched_getaffinity
/linux/scripts/
H A Dsyscall.tbl158 123 common sched_getaffinity sys_sched_getaffinity compat_sys_sched_getaffinity

12