Home
last modified time | relevance | path

Searched refs:setrlimit (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.12.1/tools/perf/util/
Drlimit.c22 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) { in rlimit__bump_memlock()
26 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) in rlimit__bump_memlock()
47 if (setrlimit(RLIMIT_NOFILE, &l) == 0) { in rlimit__increase_nofile()
Dbpf_counter.h90 setrlimit(RLIMIT_MEMLOCK, &rinf); in set_max_rlimit()
/linux-6.12.1/tools/testing/selftests/kvm/
Dkvm_create_max_vcpus.c64 int r = setrlimit(RLIMIT_NOFILE, &rl); in main()
69 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!"); in main()
/linux-6.12.1/tools/testing/selftests/hid/tests/
Dconftest.py27 resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
/linux-6.12.1/tools/testing/selftests/core/
Dunshare_test.c53 EXPECT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)) { in TEST()
Dclose_range_test.c268 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
336 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c89 ret = setrlimit(RLIMIT_CORE, &rlim); in increase_core_file_limit()
103 ret = setrlimit(RLIMIT_FSIZE, &rlim); in increase_core_file_limit()
/linux-6.12.1/tools/testing/selftests/x86/
Dnx_stack.c188 rv = setrlimit(RLIMIT_STACK, &rlim); in main()
/linux-6.12.1/tools/testing/selftests/rlimits/
Drlimits-per-userns.c40 if (setrlimit(RLIMIT_NPROC, &limit) < 0) in setrlimit_nproc()
/linux-6.12.1/arch/um/os-Linux/
Dmain.c37 if (setrlimit(RLIMIT_STACK, &lim) < 0) { in set_stklim()
/linux-6.12.1/tools/bpf/bpftool/
Dcommon.c123 if (setrlimit(RLIMIT_MEMLOCK, &rlim_cur_zero)) in known_to_need_rlimit()
133 setrlimit(RLIMIT_MEMLOCK, &rlim_init); in known_to_need_rlimit()
147 setrlimit(RLIMIT_MEMLOCK, &rinf); in set_max_rlimit()
/linux-6.12.1/tools/testing/selftests/mm/
Dmlock-random-test.c34 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits()
Dcompaction_test.c221 if (setrlimit(RLIMIT_MEMLOCK, &lim)) in main()
Dmemfd_secret.c255 if (setrlimit(RLIMIT_MEMLOCK, &new)) { in set_cap_limits()
/linux-6.12.1/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c413 err = setrlimit(RLIMIT_NOFILE, &rlim_new); in test_sk_storage_map_stress_free()
428 setrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()
/linux-6.12.1/tools/testing/selftests/net/
Dreuseport_bpf.c449 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in main_ctor()
455 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
/linux-6.12.1/arch/arm64/tools/
Dsyscall_64.tbl200 # getrlimit and setrlimit are superseded with prlimit64
202 164 rlimit setrlimit sys_setrlimit compat_sys_setrlimit
/linux-6.12.1/scripts/
Dsyscall.tbl200 # getrlimit and setrlimit are superseded with prlimit64
202 164 rlimit setrlimit sys_setrlimit compat_sys_setrlimit
/linux-6.12.1/tools/perf/tests/
Ddso-data.c246 return setrlimit(RLIMIT_NOFILE, &rlim); in set_fd_limit()
/linux-6.12.1/tools/testing/selftests/proc/
Dproc-empty-vm.c182 setrlimit(RLIMIT_CORE, &(struct rlimit){}); in vsyscall()
Dproc-pid-vm.c250 (void)setrlimit(RLIMIT_CORE, &rlim); in vsyscall()
/linux-6.12.1/tools/testing/selftests/mqueue/
Dmq_open_tests.c149 if (setrlimit(type, rlim)) in setr()
Dmq_perf_tests.c278 if (setrlimit(type, rlim)) in setr()
/linux-6.12.1/tools/perf/bench/
Depoll-ctl.c361 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_ctl()
Depoll-wait.c481 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_wait()

123