Home
last modified time | relevance | path

Searched refs:prctl (Results 51 - 75 of 346) sorted by relevance

12345678910>>...14

/third_party/musl/src/linux/
H A Dprctl.c1 #include <sys/prctl.h>
11 int prctl(int op, ...) in __libc_prctl()
/third_party/ltp/testcases/kernel/syscalls/prctl/
H A Dprctl09.c14 #include <sys/prctl.h>
15 #include "lapi/prctl.h"
38 TEST(prctl(PR_SET_TIMERSLACK, 200000)); in setup()
41 "prctl set timerslack 200us failed"); in setup()
46 .scall = "prctl()",
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/tags/
H A Dtags_test.c7 #include <sys/prctl.h>
21 if (prctl(PR_SET_TAGGED_ADDR_CTRL, PR_TAGGED_ADDR_ENABLE, 0, 0, 0) == 0) in main()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/tags/
H A Dtags_test.c7 #include <sys/prctl.h>
21 if (prctl(PR_SET_TAGGED_ADDR_CTRL, PR_TAGGED_ADDR_ENABLE, 0, 0, 0) == 0) in main()
/third_party/elfutils/tests/
H A Ddeleted.c26 #include <sys/prctl.h>
50 prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0); in main()
/third_party/musl/src/thread/
H A Dpthread_setname_np.c5 #include <sys/prctl.h>
18 return prctl(PR_SET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0; in pthread_setname_np()
H A Dpthread_getname_np.c4 #include <sys/prctl.h>
16 return prctl(PR_GET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0; in pthread_getname_np()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/
H A Dcount_stcx_fail.c11 #include <sys/prctl.h>
36 prctl(PR_TASK_PERF_EVENTS_ENABLE); in do_count_loop()
41 prctl(PR_TASK_PERF_EVENTS_DISABLE); in do_count_loop()
H A Dcount_instructions.c11 #include <sys/prctl.h>
35 prctl(PR_TASK_PERF_EVENTS_ENABLE); in do_count_loop()
40 prctl(PR_TASK_PERF_EVENTS_DISABLE); in do_count_loop()
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/fp/
H A Dvlset.c17 #include <sys/prctl.h>
128 t = prctl(PR_SVE_SET_VL, vl | flags); in main()
135 t = prctl(PR_SVE_GET_VL); in main()
H A Dsve-probe-vls.c12 #include <sys/prctl.h>
34 vl = prctl(PR_SVE_SET_VL, vq * 16); in main()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dtest_overhead.c5 #include <sys/prctl.h>
72 if (CHECK_FAIL(prctl(PR_GET_NAME, comm, 0L, 0L, 0L))) in test_test_overhead()
146 prctl(PR_SET_NAME, comm, 0L, 0L, 0L); in test_test_overhead()
H A Dtrampoline_count.c4 #include <sys/prctl.h>
108 if (CHECK_FAIL(prctl(PR_GET_NAME, comm, 0L, 0L, 0L))) in test_trampoline_count()
111 CHECK_FAIL(prctl(PR_SET_NAME, comm, 0L, 0L, 0L)); in test_trampoline_count()
/kernel/linux/linux-5.10/samples/seccomp/
H A Dbpf-fancy.c10 * applications using prctl(PR_ATTACH_SECCOMP_FILTER).
18 #include <sys/prctl.h>
88 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in main()
89 perror("prctl(NO_NEW_PRIVS)"); in main()
93 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) { in main()
94 perror("prctl(SECCOMP)"); in main()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dkeep-tracking.c5 #include <sys/prctl.h>
119 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking()
141 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking()
H A Dthread-map.c6 #include <sys/prctl.h>
27 !prctl(PR_SET_NAME, NAMEUL, 0, 0, 0)); in test__thread_map()
94 !prctl(PR_SET_NAME, NAMEUL, 0, 0, 0)); in test__thread_map_synthesize()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dthread-map.c6 #include <sys/prctl.h>
28 !prctl(PR_SET_NAME, NAMEUL, 0, 0, 0)); in test__thread_map()
95 !prctl(PR_SET_NAME, NAMEUL, 0, 0, 0)); in test__thread_map_synthesize()
H A Dkeep-tracking.c5 #include <sys/prctl.h>
119 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking()
141 CHECK__(prctl(PR_SET_NAME, (unsigned long)comm, 0, 0, 0)); in test__keep_tracking()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/
H A Dssve_za_regs.c11 #include <sys/prctl.h>
31 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_get_vls()
79 ret = prctl(PR_SME_SET_VL, vl); in do_one_sme_vl()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H A Dvlset.c17 #include <sys/prctl.h>
134 t = prctl(set_ctl, vl | flags); in main()
141 t = prctl(get_ctl); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/mte/
H A Dcheck_gcr_el1_cswitch.c15 #include <sys/prctl.h>
49 if (prctl(PR_SET_TAGGED_ADDR_CTRL, prctl_set, 0, 0, 0)) { in execute_thread()
50 perror("prctl() failed"); in execute_thread()
54 prctl_get = prctl(PR_GET_TAGGED_ADDR_CTRL, 0, 0, 0, 0); in execute_thread()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/
H A Dcount_stcx_fail.c11 #include <sys/prctl.h>
36 prctl(PR_TASK_PERF_EVENTS_ENABLE); in do_count_loop()
41 prctl(PR_TASK_PERF_EVENTS_DISABLE); in do_count_loop()
H A Dcount_instructions.c11 #include <sys/prctl.h>
35 prctl(PR_TASK_PERF_EVENTS_ENABLE); in do_count_loop()
40 prctl(PR_TASK_PERF_EVENTS_DISABLE); in do_count_loop()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dtest_overhead.c5 #include <sys/prctl.h>
72 if (CHECK_FAIL(prctl(PR_GET_NAME, comm, 0L, 0L, 0L))) in test_test_overhead()
146 prctl(PR_SET_NAME, comm, 0L, 0L, 0L); in test_test_overhead()
/kernel/linux/linux-6.6/samples/seccomp/
H A Dbpf-fancy.c10 * applications using prctl(PR_ATTACH_SECCOMP_FILTER).
18 #include <sys/prctl.h>
88 if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) { in main()
89 perror("prctl(NO_NEW_PRIVS)"); in main()
93 if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) { in main()
94 perror("prctl(SECCOMP)"); in main()

Completed in 7 milliseconds

12345678910>>...14