Home
last modified time | relevance | path

Searched refs:rlim_cur (Results 1 – 25 of 44) sorted by relevance

12

/linux/tools/testing/selftests/powerpc/mm/
A Dstack_expansion_ldst.c157 static void test_one_type(enum access_type type, unsigned long page_size, unsigned long rlim_cur) in test_one_type() argument
162 for (delta = page_size; delta <= rlim_cur; delta += page_size) in test_one_type()
165 assert(test_one(DEFAULT_SIZE, rlim_cur, type) == 0); in test_one_type()
168 assert(test_one(DEFAULT_SIZE, rlim_cur + 1, type) != 0); in test_one_type()
178 printf("Stack rlimit is 0x%lx\n", rlimit.rlim_cur); in test()
181 test_one_type(LOAD, page_size, rlimit.rlim_cur); in test()
183 test_one_type(STORE, page_size, rlimit.rlim_cur); in test()
/linux/tools/testing/selftests/vm/
A Dmlock-random-test.c30 new.rlim_cur = max; in set_cap_limits()
147 if (cur.rlim_cur < alloc_size) { in test_mlock_within_limit()
149 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_within_limit()
223 if (cur.rlim_cur >= alloc_size) { in test_mlock_outof_limit()
225 alloc_size, (unsigned int)cur.rlim_cur); in test_mlock_outof_limit()
233 int lock_size = (rand() % (alloc_size - cur.rlim_cur)) in test_mlock_outof_limit()
234 + cur.rlim_cur; in test_mlock_outof_limit()
A Dmemfd_secret.c213 new.rlim_cur = max; in set_cap_limits()
242 mlock_limit_cur = rlim.rlim_cur; in prepare()
A Dcompaction_test.c178 lim.rlim_cur = RLIM_INFINITY; in main()
/linux/tools/testing/selftests/mqueue/
A Dmq_open_tests.c157 if (cur_limits.rlim_cur < 4096) { in validate_current_settings()
160 cur_limits.rlim_cur = 8192; in validate_current_settings()
168 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
180 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()
299 (long) saved_limits.rlim_cur); in main()
316 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); in main()
388 cur_limits.rlim_cur) { in main()
389 cur_limits.rlim_cur = (cur_def_msgs + 2) * in main()
391 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; in main()
408 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * in main()
A Dmq_perf_tests.c524 cur_limits.rlim_cur = RLIM_INFINITY; in increase_limits()
657 (long) saved_limits.rlim_cur); in main()
668 if (cur_limits.rlim_cur == RLIM_INFINITY) { in main()
673 (long) cur_limits.rlim_cur); in main()
/linux/tools/testing/selftests/bpf/
A Dbpf_rlimit.h7 .rlim_cur = RLIM_INFINITY, in bpf_rlimit_ctor()
24 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in bpf_rlimit_ctor()
/linux/security/apparmor/
A Dresource.c163 rlim->rlim_cur = min(rlim->rlim_max, in __aa_transition_rlimits()
164 initrlim->rlim_cur); in __aa_transition_rlimits()
184 rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); in __aa_transition_rlimits()
/linux/tools/testing/selftests/powerpc/ptrace/
A Dcore-pkey.c82 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit()
83 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit()
96 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit()
97 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit()
/linux/tools/perf/util/
A Drlimit.c18 rlim.rlim_cur *= 4; in rlimit__bump_memlock()
22 rlim.rlim_cur /= 2; in rlimit__bump_memlock()
/linux/arch/um/os-Linux/
A Dmain.c34 if ((lim.rlim_cur == RLIM_INFINITY) || (lim.rlim_cur > STACKSIZE)) { in set_stklim()
35 lim.rlim_cur = STACKSIZE; in set_stklim()
A Dstart_up.c312 if (lim.rlim_cur == RLIM_INFINITY) in check_coredump_limit()
315 os_info("%llu\n", (unsigned long long)lim.rlim_cur); in check_coredump_limit()
/linux/include/uapi/linux/
A Dresource.h44 __kernel_ulong_t rlim_cur; member
51 __u64 rlim_cur; member
/linux/kernel/
A Dsys.c1442 r.rlim_cur = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1444 r.rlim_cur = r32.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1464 r32.rlim_cur = r.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1494 if (x.rlim_cur > 0x7FFFFFFF) in SYSCALL_DEFINE2()
1495 x.rlim_cur = 0x7FFFFFFF; in SYSCALL_DEFINE2()
1514 if (r.rlim_cur > 0x7FFFFFFF) in COMPAT_SYSCALL_DEFINE2()
1515 r.rlim_cur = 0x7FFFFFFF; in COMPAT_SYSCALL_DEFINE2()
1519 if (put_user(r.rlim_cur, &rlim->rlim_cur) || in COMPAT_SYSCALL_DEFINE2()
1542 rlim64->rlim_cur = rlim->rlim_cur; in rlim_to_rlim64()
1552 rlim->rlim_cur = RLIM_INFINITY; in rlim64_to_rlim()
[all …]
A Dacct.c481 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
522 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
/linux/tools/testing/selftests/kvm/
A Dkvm_create_max_vcpus.c60 if (rl.rlim_cur < nr_fds_wanted) { in main()
61 rl.rlim_cur = nr_fds_wanted; in main()
/linux/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c414 if (rlim_old.rlim_cur < nr_sk_threads * nr_sk_per_thread) { in test_sk_storage_map_stress_free()
415 rlim_new.rlim_cur = nr_sk_threads * nr_sk_per_thread + 128; in test_sk_storage_map_stress_free()
416 rlim_new.rlim_max = rlim_new.rlim_cur + 128; in test_sk_storage_map_stress_free()
419 rlim_new.rlim_cur, errno); in test_sk_storage_map_stress_free()
431 if (rlim_new.rlim_cur) in test_sk_storage_map_stress_free()
/linux/arch/s390/mm/
A Dmmap.c33 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy()
51 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
/linux/arch/powerpc/mm/
A Dmmap.c33 if (rlim_stack->rlim_cur == RLIM_INFINITY) in mmap_is_legacy()
68 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
/linux/tools/perf/tests/
A Ddso-data.c245 pr_debug("file limit %ld, new %d\n", (long) rlim.rlim_cur, n); in set_fd_limit()
247 rlim.rlim_cur = n; in set_fd_limit()
/linux/tools/testing/selftests/net/
A Dreuseport_bpf.c446 if (rlim_old.rlim_cur != RLIM_INFINITY) { in main_ctor()
449 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in main_ctor()
/linux/arch/x86/mm/
A Dmmap.c85 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
/linux/tools/testing/selftests/rlimits/
A Drlimits-per-userns.c34 .rlim_cur = n, in setrlimit_nproc()
/linux/tools/bpf/runqslower/
A Drunqslower.c94 .rlim_cur = RLIM_INFINITY, in bump_memlock_rlimit()
/linux/tools/testing/selftests/core/
A Dclose_range_test.c276 rlimit.rlim_cur = 25; in TEST()
344 rlimit.rlim_cur = 25; in TEST()

Completed in 27 milliseconds

12