Searched refs:rlim_new (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/bpf/ |
A D | bpf_rlimit.h | 6 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 D | bench.c | 34 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 D | sk_storage_map.c | 402 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 D | runqslower.c | 93 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 D | reuseport_bpf.c | 447 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 D | posix-timers.h | 256 void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new);
|
/linux/kernel/time/ |
A D | posix-cpu-timers.c | 38 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