diff options
author | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-07-10 16:45:26 -0700 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-13 19:29:38 +0100 |
commit | 140a67c13aad2595ee6c72e41d14d35a793158b5 (patch) | |
tree | 1b33508f86195317e338c91b7aa45f4cf51ad223 /tests/gem_reset_stats.c | |
parent | caea9c5b3aa1191c0152d7c0f22a94efca4fd048 (diff) |
lib/gt: Make use of dummyload library to create recursive batch
An hanging batch is nothing more than a spinning batch that never gets
stopped, so re-use the routines implemented in dummyload.c.
v2: Let caller decide spin loop size
v3: Only use loose loops for hangs (Chris)
v4: No requires
v5: Free the spinner
v6: Chamelium exists.
Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com> #v3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'tests/gem_reset_stats.c')
-rw-r--r-- | tests/gem_reset_stats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c index 74ba2656..ac9af23f 100644 --- a/tests/gem_reset_stats.c +++ b/tests/gem_reset_stats.c @@ -164,7 +164,7 @@ static void inject_hang(int fd, uint32_t ctx, clock_gettime(CLOCK_MONOTONIC, &ts_injected); - hang = igt_hang_ctx(fd, ctx, e->exec_id | e->flags, flags & BAN, NULL); + hang = igt_hang_ctx(fd, ctx, e->exec_id | e->flags, flags & BAN); if ((flags & ASYNC) == 0) igt_post_hang_ring(fd, hang); } @@ -546,7 +546,7 @@ static void test_close_pending_fork(const struct intel_execution_engine *e, assert_reset_status(fd, fd, 0, RS_NO_ERROR); - hang = igt_hang_ctx(fd, 0, e->exec_id | e->flags, 0, NULL); + hang = igt_hang_ctx(fd, 0, e->exec_id | e->flags, 0); sleep(1); /* Avoid helpers as we need to kill the child |