summaryrefslogtreecommitdiff
path: root/lib/igt_aux.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-03-22 11:33:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-03-24 11:25:38 +0000
commit756f3e0cb7e7d7351e3eb955ca782a438c6aa887 (patch)
treec1673509c3b101aa70b03408e252e4cb97021308 /lib/igt_aux.h
parenteb572106b4721dcfb6bf873ae40c5200f5369039 (diff)
lib: Add a GPU error detector
If we listen to the uevents from the kernel, we can detect when the GPU hangs. This requires us to fork a helper process to do so and send a signal back to the parent. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r--lib/igt_aux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index 101fad12..cdaed297 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -40,6 +40,9 @@ extern int num_trash_bos;
void igt_fork_signal_helper(void);
void igt_stop_signal_helper(void);
+void igt_fork_hang_detector(int fd);
+void igt_stop_hang_detector(void);
+
struct igt_sigiter {
unsigned pass;
};