Home
last modified time | relevance | path

Searched refs:rlim_new (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/bpf/
A Dbpf_rlimit.h6 struct rlimit rlim_old, rlim_new = { in bpf_rlimit_ctor() local
19 if (setrlimit(RLIMIT_MEMLOCK, &rlim_new) < 0) { 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()
26 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in bpf_rlimit_ctor()
A Dbench.c34 struct rlimit rlim_new = { in bump_memlock_rlimit() local
39 return setrlimit(RLIMIT_MEMLOCK, &rlim_new); in bump_memlock_rlimit()
/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
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()
417 err = setrlimit(RLIMIT_NOFILE, &rlim_new); 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/tools/bpf/runqslower/
A Drunqslower.c93 struct rlimit rlim_new = { in bump_memlock_rlimit() local
98 return setrlimit(RLIMIT_MEMLOCK, &rlim_new); in bump_memlock_rlimit()
/linux/tools/testing/selftests/net/
A Dreuseport_bpf.c447 struct rlimit rlim_new; in main_ctor() local
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()
451 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in main_ctor()
/linux/include/linux/
A Dposix-timers.h256 void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new);
/linux/kernel/time/
A Dposix-cpu-timers.c38 void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new) in update_rlimit_cpu() argument
40 u64 nsecs = rlim_new * NSEC_PER_SEC; in update_rlimit_cpu()

Completed in 14 milliseconds