/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage_rcu_tasks_trace.c | 6 #include <sys/prctl.h> 144 err = prctl(PR_SET_PDEATHSIG, SIGKILL); in local_storage_tasks_trace_setup() 146 fprintf(stderr, "prctl failed with err %d, exiting\n", errno); in local_storage_tasks_trace_setup()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
H A D | ttranshuge.c | 57 #include <sys/prctl.h> 242 prctl(PR_MCE_KILL, PR_MCE_KILL_SET, in prep_injection()
|
/third_party/ltp/testcases/kernel/mce-test/hwpoison/ |
H A D | ttranshuge.c | 57 #include <sys/prctl.h> 242 prctl(PR_MCE_KILL, PR_MCE_KILL_SET, in prep_injection()
|
/third_party/rust/crates/rustix/src/backend/libc/process/ |
H A D | syscalls.rs | 446 pub(crate) unsafe fn prctl( 453 ret_c_int(c::prctl(option, arg2, arg3, arg4, arg5))
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/ |
H A D | mte_common_util.c | 14 #include <sys/prctl.h> 274 if (!prctl(PR_SET_TAGGED_ADDR_CTRL, en, 0, 0, 0) == 0) { in mte_switch_mode() 275 ksft_print_msg("FAIL:prctl PR_SET_TAGGED_ADDR_CTRL for mte mode\n"); in mte_switch_mode() 292 ret = prctl(PR_GET_TAGGED_ADDR_CTRL, en, 0, 0, 0); in mte_default_setup() 294 ksft_print_msg("FAIL:prctl PR_GET_TAGGED_ADDR_CTRL with error =%d\n", ret); in mte_default_setup()
|
/kernel/linux/linux-5.10/tools/lib/perf/tests/ |
H A D | test-evlist.c | 12 #include <sys/prctl.h> 236 /* Generate 100 prctl calls. */ in test_mmap_thread() 238 prctl(0, 0, 0, 0, 0); in test_mmap_thread() 297 * The generated prctl calls should match the in test_mmap_thread() 366 prctl(0, 0, 0, 0, 0); in test_mmap_cpus() 390 * The generated prctl events should match the in test_mmap_cpus()
|
/kernel/linux/linux-6.6/tools/testing/selftests/landlock/ |
H A D | base_test.c | 14 #include <sys/prctl.h> 220 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST() 300 ASSERT_EQ(0, prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)); in TEST()
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/mte/ |
H A D | mte_common_util.c | 14 #include <sys/prctl.h> 309 if (prctl(PR_SET_TAGGED_ADDR_CTRL, en, 0, 0, 0) != 0) { in mte_switch_mode() 310 ksft_print_msg("FAIL:prctl PR_SET_TAGGED_ADDR_CTRL for mte mode\n"); in mte_switch_mode() 327 ret = prctl(PR_GET_TAGGED_ADDR_CTRL, en, 0, 0, 0); in mte_default_setup() 329 ksft_print_msg("FAIL:prctl PR_GET_TAGGED_ADDR_CTRL with error =%d\n", ret); in mte_default_setup()
|
/kernel/linux/linux-6.6/tools/testing/selftests/sched/ |
H A D | cs_prctl_test.c | 3 * Use the core scheduling prctl() to test core scheduling cookies control. 27 #include <sys/prctl.h> 82 res = prctl(option, arg2, arg3, arg4, arg5); in _prctl() 83 printf("%d = prctl(%d, %ld, %ld, %ld, %lx)\n", res, option, (long)arg2, (long)arg3, in _prctl() 117 ret = prctl(PR_SCHED_CORE, PR_SCHED_CORE_GET, pid, PIDTYPE_PID, in get_cs_cookie()
|
/third_party/ltp/testcases/kernel/security/filecaps/ |
H A D | verify_caps_exec.c | 44 #include <sys/prctl.h> 80 prctl(PR_SET_KEEPCAPS, 1); in drop_root() 230 ret = prctl(PR_CAPBSET_READ, num_caps); in caps_actually_set_test()
|
/kernel/linux/linux-5.10/tools/lib/lockdep/ |
H A D | common.c | 24 prctl(PR_GET_NAME, current_obj.comm); in __curr()
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
H A D | x86_arch_prctl.sh | 7 prctl_arch_header=${x86_header_dir}/prctl.h
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/ |
H A D | sme_trap_non_streaming.c | 11 #include <sys/prctl.h>
|
H A D | sme_trap_no_sm.c | 11 #include <sys/prctl.h>
|
H A D | sme_trap_za.c | 10 #include <sys/prctl.h>
|
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/ |
H A D | prctl.h | 57 int prctl(int, ...);
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | prctl.c | 32 #include "sys/prctl.h" 35 int prctl(int option, ...) in prctl() function
|
/third_party/ltp/include/lapi/ |
H A D | prctl.h | 10 #include <sys/prctl.h>
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_common.c | 26 #include <sys/prctl.h> 84 isRet = prctl(PR_SET_NAME, shortName) == -1; in SetProcessName() 85 APPSPAWN_CHECK(!isRet, return errno, "prctl(PR_SET_NAME) error: %{public}d", errno); in SetProcessName() 107 bool isRet = prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) == -1; in SetKeepCapabilities() 264 if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) == -1) { in SetUidGid()
|
/third_party/musl/src/malloc/mallocng/ |
H A D | malloc.c | 7 #include <sys/prctl.h> 132 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ctx.brk, new - ctx.brk, "native_heap:meta"); in alloc_meta() 322 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, needed, "native_heap:brk"); in alloc_group() 385 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, needed, "native_heap:mmap"); in malloc()
|
/third_party/musl/src/thread/linux/ |
H A D | pthread_create.c | 9 #include <sys/prctl.h> 30 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, new->map_base, new->guard_size, name); in stack_naming() 39 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, start_addr, size_len, name); in stack_naming() 68 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, signal_stack.ss_sp, signal_stack.ss_size, name); in __pthread_reserve_signal_stack()
|
/third_party/musl/porting/linux/user/ldso/ |
H A D | cfi.c | 18 #include <sys/prctl.h> 305 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 310 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 337 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in unmap_dso_from_cfi_shadow()
|
/third_party/musl/porting/linux/user/src/malloc/mallocng/ |
H A D | malloc.c | 6 #include <sys/prctl.h> 129 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ctx.brk, new - ctx.brk, "native_heap:meta"); in alloc_meta() 318 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, needed, "native_heap:brk"); in alloc_group() 379 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, p, needed, "native_heap:mmap"); in malloc()
|
/third_party/musl/porting/linux/user/src/thread/ |
H A D | pthread_create.c | 9 #include <sys/prctl.h> 30 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, new->map_base, new->guard_size, name); in stack_naming() 39 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, start_addr, size_len, name); in stack_naming() 68 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, signal_stack.ss_sp, signal_stack.ss_size, name); in __pthread_reserve_signal_stack()
|
/third_party/musl/ldso/linux/ |
H A D | cfi.c | 18 #include <sys/prctl.h> 324 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 331 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in map_dso_to_cfi_shadow() 366 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, cfi_shadow_start, shadow_size, "cfi_shadow:musl"); in unmap_dso_from_cfi_shadow()
|