Searched refs:rlim (Results 1 – 8 of 8) sorted by relevance
/tools/perf/util/ |
D | rlimit.c | 15 struct rlimit rlim; in rlimit__bump_memlock() local 17 if (getrlimit(RLIMIT_MEMLOCK, &rlim) == 0) { in rlimit__bump_memlock() 18 rlim.rlim_cur *= 4; in rlimit__bump_memlock() 19 rlim.rlim_max *= 4; in rlimit__bump_memlock() 21 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) { in rlimit__bump_memlock() 22 rlim.rlim_cur /= 2; in rlimit__bump_memlock() 23 rlim.rlim_max /= 2; in rlimit__bump_memlock() 25 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) in rlimit__bump_memlock()
|
/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 76 struct rlimit rlim; in increase_core_file_limit() local 79 ret = getrlimit(RLIMIT_CORE, &rlim); in increase_core_file_limit() 82 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit() 83 rlim.rlim_cur = CORE_FILE_LIMIT; in increase_core_file_limit() 85 if (rlim.rlim_max != RLIM_INFINITY && in increase_core_file_limit() 86 rlim.rlim_max < CORE_FILE_LIMIT) in increase_core_file_limit() 87 rlim.rlim_max = CORE_FILE_LIMIT; in increase_core_file_limit() 89 ret = setrlimit(RLIMIT_CORE, &rlim); in increase_core_file_limit() 93 ret = getrlimit(RLIMIT_FSIZE, &rlim); in increase_core_file_limit() 96 if (rlim.rlim_cur != RLIM_INFINITY && rlim.rlim_cur < CORE_FILE_LIMIT) { in increase_core_file_limit() [all …]
|
/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 65 static inline void getr(int type, struct rlimit *rlim); 66 static inline void setr(int type, struct rlimit *rlim); 141 static inline void getr(int type, struct rlimit *rlim) in getr() argument 143 if (getrlimit(type, rlim)) in getr() 147 static inline void setr(int type, struct rlimit *rlim) in setr() argument 149 if (setrlimit(type, rlim)) in setr()
|
D | mq_perf_tests.c | 160 static inline void getr(int type, struct rlimit *rlim); 161 static inline void setr(int type, struct rlimit *rlim); 270 static inline void getr(int type, struct rlimit *rlim) in getr() argument 272 if (getrlimit(type, rlim)) in getr() 276 static inline void setr(int type, struct rlimit *rlim) in setr() argument 278 if (setrlimit(type, rlim)) in setr()
|
/tools/perf/tests/ |
D | dso-data.c | 240 struct rlimit rlim; in set_fd_limit() local 242 if (getrlimit(RLIMIT_NOFILE, &rlim)) in set_fd_limit() 245 pr_debug("file limit %ld, new %d\n", (long) rlim.rlim_cur, n); in set_fd_limit() 247 rlim.rlim_cur = n; in set_fd_limit() 248 return setrlimit(RLIMIT_NOFILE, &rlim); in set_fd_limit()
|
/tools/io_uring/ |
D | io_uring-bench.c | 529 struct rlimit rlim; in main() local 531 rlim.rlim_cur = RLIM_INFINITY; in main() 532 rlim.rlim_max = RLIM_INFINITY; in main() 533 if (setrlimit(RLIMIT_MEMLOCK, &rlim) < 0) { in main()
|
/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 237 struct rlimit rlim = {0, 0}; in vsyscall() local 238 (void)setrlimit(RLIMIT_CORE, &rlim); in vsyscall()
|
/tools/perf/pmu-events/ |
D | jevents.c | 862 struct rlimit rlim; in get_maxfds() local 864 if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) in get_maxfds() 865 return min(rlim.rlim_max / 2, (rlim_t)512); in get_maxfds()
|