Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
A Dbpf_rlimit.h6 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()
/linux/tools/testing/selftests/net/
A Dreuseport_bpf.c440 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()
/linux/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c402 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()

Completed in 11 milliseconds