[PATCH i-g-t] tests/perf_pmu: Bump measuring duration for semaphores as well

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

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@xxxxxxxxx>
Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux