/linux/tools/testing/selftests/powerpc/mm/ |
A D | stack_expansion_ldst.c | 157 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 D | mlock-random-test.c | 30 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 D | memfd_secret.c | 213 new.rlim_cur = max; in set_cap_limits() 242 mlock_limit_cur = rlim.rlim_cur; in prepare()
|
A D | compaction_test.c | 178 lim.rlim_cur = RLIM_INFINITY; in main()
|
/linux/tools/testing/selftests/mqueue/ |
A D | mq_open_tests.c | 157 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 D | mq_perf_tests.c | 524 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 D | bpf_rlimit.h | 7 .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 D | resource.c | 163 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 D | core-pkey.c | 82 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 D | rlimit.c | 18 rlim.rlim_cur *= 4; in rlimit__bump_memlock() 22 rlim.rlim_cur /= 2; in rlimit__bump_memlock()
|
/linux/arch/um/os-Linux/ |
A D | main.c | 34 if ((lim.rlim_cur == RLIM_INFINITY) || (lim.rlim_cur > STACKSIZE)) { in set_stklim() 35 lim.rlim_cur = STACKSIZE; in set_stklim()
|
A D | start_up.c | 312 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 D | resource.h | 44 __kernel_ulong_t rlim_cur; member 51 __u64 rlim_cur; member
|
/linux/kernel/ |
A D | sys.c | 1442 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 D | acct.c | 481 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 D | kvm_create_max_vcpus.c | 60 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 D | sk_storage_map.c | 414 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 D | mmap.c | 33 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 D | mmap.c | 33 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 D | dso-data.c | 245 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 D | reuseport_bpf.c | 446 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 D | mmap.c | 85 unsigned long gap = rlim_stack->rlim_cur; in mmap_base()
|
/linux/tools/testing/selftests/rlimits/ |
A D | rlimits-per-userns.c | 34 .rlim_cur = n, in setrlimit_nproc()
|
/linux/tools/bpf/runqslower/ |
A D | runqslower.c | 94 .rlim_cur = RLIM_INFINITY, in bump_memlock_rlimit()
|
/linux/tools/testing/selftests/core/ |
A D | close_range_test.c | 276 rlimit.rlim_cur = 25; in TEST() 344 rlimit.rlim_cur = 25; in TEST()
|