summaryrefslogtreecommitdiff
path: root/tools/perf/util/rlimit.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/rlimit.h')
-rw-r--r--tools/perf/util/rlimit.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/util/rlimit.h b/tools/perf/util/rlimit.h
new file mode 100644
index 000000000000..19050d7fb9d7
--- /dev/null
+++ b/tools/perf/util/rlimit.h
@@ -0,0 +1,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_