diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-23 17:09:26 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-23 17:09:48 +0000 |
commit | 137360f75a42042198cf00d35a54cc68660d8c90 (patch) | |
tree | 71bc2c45808158d6acb3dacff49ec10c6a70a01f /lib/igt_kmod.h | |
parent | f22e19b38a1593b207b6044cf8fb953c5cddc2b7 (diff) |
lib: system() is bad, use libkmod instead
For an as of yet unknown reason, calling system("modprobe") from inside
igt/gem_wait causes kasan to spend 1-5 minutes copying the process
pagetables. This evaporates if we replace the fork-happy call to system
with a call to load the module using libkmod. So be it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_kmod.h')
-rw-r--r-- | lib/igt_kmod.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h index 10cd3a2d..fd307a45 100644 --- a/lib/igt_kmod.h +++ b/lib/igt_kmod.h @@ -26,6 +26,8 @@ #include <libkmod.h> +#include "igt_aux.h" + bool igt_kmod_is_loaded(const char *mod_name); void igt_kmod_list_loaded(void); |