[igt-dev] [PATCH i-g-t] tests/perf: add a test for OA data polling reads using "small" buffers

Dixit, Ashutosh ashutosh.dixit at intel.com
Fri Mar 27 04:50:12 UTC 2020


On Thu, 26 Mar 2020 21:42:50 -0700, Ashutosh Dixit wrote:
> diff --git a/tests/perf.c b/tests/perf.c
> index 724f6f809..3dc757c3b 100644
> --- a/tests/perf.c
> +++ b/tests/perf.c
> +static void test_polling_small_buf(void)
> +{

/snip/

> +
> +	igt_assert(abs(n_expect_read_bytes - n_bytes_read) < (0.10 * n_expect_read_bytes));
> +}
> +

I'd be wary of a 90% match on slow platforms like Atom? Maybe 80% is safer?


More information about the igt-dev mailing list