/third_party/musl/src/linux/ |
H A D | prctl.c | 1 #include <sys/prctl.h> 11 int prctl(int op, ...) in __libc_prctl()
|
/third_party/ltp/testcases/kernel/syscalls/prctl/ |
H A D | prctl09.c | 14 #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 D | tags_test.c | 7 #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 D | tags_test.c | 7 #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 D | deleted.c | 26 #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 D | pthread_setname_np.c | 5 #include <sys/prctl.h> 18 return prctl(PR_SET_NAME, (unsigned long)name, 0UL, 0UL, 0UL) ? errno : 0; in pthread_setname_np()
|
H A D | pthread_getname_np.c | 4 #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 D | count_stcx_fail.c | 11 #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 D | count_instructions.c | 11 #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 D | vlset.c | 17 #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 D | sve-probe-vls.c | 12 #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 D | test_overhead.c | 5 #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 D | trampoline_count.c | 4 #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 D | bpf-fancy.c | 10 * 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 D | keep-tracking.c | 5 #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 D | thread-map.c | 6 #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 D | thread-map.c | 6 #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 D | keep-tracking.c | 5 #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 D | ssve_za_regs.c | 11 #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 D | vlset.c | 17 #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 D | check_gcr_el1_cswitch.c | 15 #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 D | count_stcx_fail.c | 11 #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 D | count_instructions.c | 11 #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 D | test_overhead.c | 5 #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 D | bpf-fancy.c | 10 * 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()
|