Home
last modified time | relevance | path

Searched refs:rlim_old (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/net/
Dreuseport_bpf.c438 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()
/linux-6.12.1/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c398 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()