From 8bc80862603bd5d1b0dcb7a0472935215f167f09 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 4 Apr 2019 15:16:11 -0700 Subject: lib: add igt_allow_unlimited_files() Share the implementation to tweak the maximum number of open files. The version in tests/i915/gem_exec_reuse.c was a little bit different, but I don't think it needs to be because it would still return a failure if any of the calls to setrlimit() fail. So I'm using the other one. Signed-off-by: Lucas De Marchi Reviewed-by: Chris Wilson --- lib/igt_aux.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 09b6246b..55392790 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -274,6 +274,8 @@ struct igt_mean; void igt_start_siglatency(int sig); /* 0 => SIGRTMIN (default) */ double igt_stop_siglatency(struct igt_mean *result); +bool igt_allow_unlimited_files(void); + void igt_set_module_param(const char *name, const char *val); void igt_set_module_param_int(const char *name, int val); -- cgit v1.2.3