Home
last modified time | relevance | path

Searched refs:prctl (Results 151 - 175 of 431) sorted by relevance

12345678910>>...18

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/
H A Dbench_local_storage_rcu_tasks_trace.c6 #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 Dttranshuge.c57 #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 Dttranshuge.c57 #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 Dsyscalls.rs446 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 Dmte_common_util.c14 #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 Dtest-evlist.c12 #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 Dbase_test.c14 #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 Dmte_common_util.c14 #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 Dcs_prctl_test.c3 * 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 Dverify_caps_exec.c44 #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 Dcommon.c24 prctl(PR_GET_NAME, current_obj.comm); in __curr()
/kernel/linux/linux-5.10/tools/perf/trace/beauty/
H A Dx86_arch_prctl.sh7 prctl_arch_header=${x86_header_dir}/prctl.h
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/
H A Dsme_trap_non_streaming.c11 #include <sys/prctl.h>
H A Dsme_trap_no_sm.c11 #include <sys/prctl.h>
H A Dsme_trap_za.c10 #include <sys/prctl.h>
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
H A Dprctl.h57 int prctl(int, ...);
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
H A Dprctl.c32 #include "sys/prctl.h"
35 int prctl(int option, ...) in prctl() function
/third_party/ltp/include/lapi/
H A Dprctl.h10 #include <sys/prctl.h>
/base/startup/appspawn/modules/common/
H A Dappspawn_common.c26 #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 Dmalloc.c7 #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 Dpthread_create.c9 #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 Dcfi.c18 #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 Dmalloc.c6 #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 Dpthread_create.c9 #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 Dcfi.c18 #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()

Completed in 20 milliseconds

12345678910>>...18