summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/rlimit.h
blob: 19050d7fb9d7dc568d982e33b379ff4720991a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: LGPL-2.1 */
#ifndef __PERF_RLIMIT_H_
#define __PERF_RLIMIT_H_

enum rlimit_action {
	NO_CHANGE,
	SET_TO_MAX,
	INCREASED_MAX
};

void rlimit__bump_memlock(void);

bool rlimit__increase_nofile(enum rlimit_action *set_rlimit);

#endif // __PERF_RLIMIT_H_