diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-19 19:08:43 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-22 09:25:41 +0200 |
commit | 5bc0324e86ac6cf7c67fea929f0f1f48ca9711f9 (patch) | |
tree | 752a68ba1eecb4eab2c3fe2eb52d7eb90e39d2b4 /lib/drmtest.h | |
parent | 89d96a12d61cade801f07e0d78028a613b841978 (diff) |
lib/drmtest: document interface groups with one-liners
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.h')
-rw-r--r-- | lib/drmtest.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/drmtest.h b/lib/drmtest.h index 1a1d1d99..b6bfbc97 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -89,10 +89,13 @@ void drmtest_permute_array(void *array, unsigned size, unsigned i, unsigned j)); void drmtest_progress(const char *header, uint64_t i, uint64_t total); + +/* subtest infrastructure */ void drmtest_subtest_init(int argc, char **argv); bool drmtest_run_subtest(const char *subtest_name); bool drmtest_only_list_subtests(void); +/* helpers to automatically reduce test runtime in simulation */ bool drmtest_run_in_simulation(void); #define SLOW_QUICK(slow,quick) (drmtest_run_in_simulation() ? (quick) : (slow)) void drmtest_skip_on_simulation(void); @@ -175,11 +178,14 @@ inline static void _do_or_die(const char *function, int line, int ret) typedef void (*drmtest_exit_handler_t)(int sig); +/* reliable atexit helpers, also work when killed by a signal (if possible) */ int drmtest_install_exit_handler(drmtest_exit_handler_t fn); void drmtest_enable_exit_handler(void); void drmtest_disable_exit_handler(void); +/* set vt into graphics mode, required to prevent fbcon from interfering */ int drmtest_set_vt_graphics_mode(void); +/* prefault disabling, needs the corresponding debugfs interface */ int drmtest_disable_prefault(void); int drmtest_enable_prefault(void); |