Home
last modified time | relevance | path

Searched refs:prctl (Results 101 - 125 of 366) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/tools/testing/selftests/nsfs/
H A Dpidns.c13 #include <sys/prctl.h>
35 prctl(PR_SET_PDEATHSIG, SIGKILL); in child()
H A Downer.c13 #include <sys/prctl.h>
41 prctl(PR_SET_PDEATHSIG, SIGKILL); in main()
/kernel/linux/linux-5.10/samples/bpf/
H A Dtracex5_user.c7 #include <sys/prctl.h>
31 if (prctl(PR_SET_SECCOMP, 2, &prog)) in install_accept_all_seccomp()
32 perror("prctl"); in install_accept_all_seccomp()
/kernel/linux/linux-6.6/tools/testing/selftests/nsfs/
H A Dpidns.c13 #include <sys/prctl.h>
35 prctl(PR_SET_PDEATHSIG, SIGKILL); in child()
H A Downer.c13 #include <sys/prctl.h>
41 prctl(PR_SET_PDEATHSIG, SIGKILL); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/prctl/
H A Dset-anon-vma-name-test.c3 * This test covers the anonymous VMA naming functionality through prctl calls
7 #include <sys/prctl.h>
30 res = prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, addr, size, name); in rename_vma()
/kernel/linux/linux-6.6/samples/bpf/
H A Dtracex5_user.c7 #include <sys/prctl.h>
31 if (prctl(PR_SET_SECCOMP, 2, &prog)) in install_accept_all_seccomp()
32 perror("prctl"); in install_accept_all_seccomp()
/third_party/ltp/testcases/kernel/containers/userns/
H A Duserns08.c23 #include <sys/prctl.h>
63 if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0)) in ns_level2()
/third_party/ltp/testcases/kernel/syscalls/capset/
H A Dcapset02.c29 #include <sys/prctl.h>
95 TEST(prctl(PR_CAPBSET_DROP, CAP_KILL)); in setup()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl06.c10 * Test PR_GET_NO_NEW_PRIVS and PR_SET_NO_NEW_PRIVS of prctl(2).
43 TEST(prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in do_prctl()
45 tst_res(TFAIL | TTERRNO, "prctl(PR_SET_NO_NEW_PRIVS) failed"); in do_prctl()
48 tst_res(TPASS, "prctl(PR_SET_NO_NEW_PRIVS) succeeded"); in do_prctl()
102 TEST(prctl(PR_GET_NO_NEW_PRIVS, 0, 0, 0, 0)); in setup()
/third_party/optimized-routines/string/test/
H A Dmte.h16 #include <sys/prctl.h>
34 int res = prctl (PR_SET_TAGGED_ADDR_CTRL, in mte_enabled()
/kernel/linux/linux-5.10/tools/testing/selftests/safesetid/
H A Dsafesetid-test.c11 #include <sys/prctl.h>
290 if (prctl(PR_SET_KEEPCAPS, 1L)) in main()
305 if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0)) in main()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dperf-time-to-tsc.c9 #include <sys/prctl.h>
139 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm1, 0, 0, 0)); in test__perf_time_to_tsc()
144 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm2, 0, 0, 0)); in test__perf_time_to_tsc()
H A Dswitch-tracking.c3 #include <sys/prctl.h>
484 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
497 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
510 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
523 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
H A Dbackward-ring-buffer.c8 #include <sys/prctl.h>
28 prctl(PR_SET_NAME, proc_name); in testcase()
/kernel/linux/linux-6.6/samples/landlock/
H A Dsandboxer.c14 #include <linux/prctl.h>
19 #include <sys/prctl.h>
289 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in main()
/third_party/musl/src/hook/linux/
H A Dmalloc_common.c206 int prctl(int option, ...) in prctl() function
216 return dispatch_table->prctl(option, x[0], x[1], x[2], x[3]); in prctl()
218 return MuslMalloc(prctl)(option, x[0], x[1], x[2], x[3]); in prctl()
/third_party/pulseaudio/src/pulsecore/
H A Dcore-rtclock.c35 #include <sys/prctl.h>
159 if ((slack_ns = prctl(PR_GET_TIMERSLACK, 0, 0, 0, 0)) < 0) { in pa_rtclock_hrtimer_enable()
171 if (prctl(PR_SET_TIMERSLACK, slack_ns, 0, 0, 0) < 0) { in pa_rtclock_hrtimer_enable()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dswitch-tracking.c3 #include <sys/prctl.h>
486 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
499 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
512 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
525 err = prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0); in test__switch_tracking()
H A Dbackward-ring-buffer.c8 #include <sys/prctl.h>
28 prctl(PR_SET_NAME, proc_name); in testcase()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H A Dfp-stress.c21 #include <sys/prctl.h>
326 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT); in start_sve()
347 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT); in start_ssve()
360 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT); in start_za()
394 vl = prctl(set_vl, vq * 16); in probe_vls()
/third_party/rust/crates/rustix/src/thread/
H A Dprctl.rs30 /// - [`prctl(PR_GET_KEEPCAPS,...)`]
32 /// [`prctl(PR_GET_KEEPCAPS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
43 /// - [`prctl(PR_SET_KEEPCAPS,...)`]
45 /// [`prctl(PR_SET_KEEPCAPS,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
60 /// - [`prctl(PR_GET_NAME,...)`]
62 /// [`prctl(PR_GET_NAME,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
77 /// - [`prctl(PR_SET_NAM
[all...]
/third_party/rust/crates/rustix/src/process/
H A Dprctl.rs1 //! Bindings for the Linux `prctl` system call.
30 syscalls::prctl(option, NULL, NULL, NULL, NULL)
36 syscalls::prctl(option, arg2, NULL, NULL, NULL)
45 syscalls::prctl(option, arg2, arg3, ptr::null_mut(), ptr::null_mut())
75 /// - [Linux: `prctl(PR_GET_PDEATHSIG,...)`]
78 /// [Linux: `prctl(PR_GET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl.2.html
90 /// - [Linux: `prctl(PR_SET_PDEATHSIG,...)`]
93 /// [Linux: `prctl(PR_SET_PDEATHSIG,...)`]: https://man7.org/linux/man-pages/man2/prctl
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/clone3/
H A Dclone3_cap_checkpoint_restore.c19 #include <sys/prctl.h>
167 ASSERT_EQ(prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0), 0); in TEST()
/kernel/linux/linux-6.6/tools/tracing/rtla/src/
H A Dtimerlat_u.c17 #include <sys/prctl.h>
168 prctl(PR_SET_NAME, (unsigned long)proc_name, 0, 0, 0); in timerlat_u_dispatcher()

Completed in 11 milliseconds

12345678910>>...15