2023-10-22 20:31:44 -07:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1 */
|
2019-07-09 10:49:26 -07:00
|
|
|
#ifndef __PERF_RLIMIT_H_
|
|
|
|
#define __PERF_RLIMIT_H_
|
2023-10-22 20:31:44 -07:00
|
|
|
|
|
|
|
enum rlimit_action {
|
|
|
|
NO_CHANGE,
|
|
|
|
SET_TO_MAX,
|
|
|
|
INCREASED_MAX
|
|
|
|
};
|
2019-07-09 10:49:26 -07:00
|
|
|
|
|
|
|
void rlimit__bump_memlock(void);
|
2023-10-22 20:31:44 -07:00
|
|
|
|
|
|
|
bool rlimit__increase_nofile(enum rlimit_action *set_rlimit);
|
|
|
|
|
2019-07-09 10:49:26 -07:00
|
|
|
#endif // __PERF_RLIMIT_H_
|