[Intel-gfx] [PATCH i-g-t] tests/perf_pmu: Bump measuring duration for semaphores as well
Tvrtko Ursulin
tursulin at ursulin.net
Thu Nov 23 09:24:01 UTC 2017
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
As Chris has discover 100ms is not long enough to cover the sampling
error in general, fix the semaphore subtest as well to measure for
500ms.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/perf_pmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index bf862b2f8506..a97f59007dcb 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -416,7 +416,7 @@ sema_wait(int gem_fd, const struct intel_execution_engine2 *e)
gem_execbuf(gem_fd, &eb);
- slept = measured_usleep(100e3);
+ slept = measured_usleep(batch_duration_ns / 1000);
*obj_ptr = 1;
--
2.14.1
More information about the Intel-gfx
mailing list