Searched refs:rlim_old (Results 1 - 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | bpf_rlimit.h | 6 struct rlimit rlim_old, rlim_new = { in bpf_rlimit_ctor() local 11 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in bpf_rlimit_ctor() 24 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in bpf_rlimit_ctor() 25 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in bpf_rlimit_ctor()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | reuseport_bpf.c | 440 static struct rlimit rlim_old; variable 444 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor() 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() 450 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in main_ctor() 457 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | reuseport_bpf.c | 438 static struct rlimit rlim_old; variable 442 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor() 444 if (rlim_old.rlim_cur != RLIM_INFINITY) { in main_ctor() 447 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in main_ctor() 448 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in main_ctor() 455 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 402 struct rlimit rlim_old, rlim_new = {}; in test_sk_storage_map_stress_free() local 405 getrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free() 414 if (rlim_old.rlim_cur < nr_sk_threads * nr_sk_per_thread) { in test_sk_storage_map_stress_free() 432 setrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 398 struct rlimit rlim_old, rlim_new = {}; in test_sk_storage_map_stress_free() local 401 getrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free() 410 if (rlim_old.rlim_cur < nr_sk_threads * nr_sk_per_thread) { in test_sk_storage_map_stress_free() 428 setrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()
|
Completed in 4 milliseconds