Quoting Lionel Landwerlin (2017-12-08 16:02:36) > We mostly run tests on the most recent kernels but those are failing > on < 4.14. > > Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@xxxxxxxxx> Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > --- > tests/perf.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/tests/perf.c b/tests/perf.c > index 969b8c74..a173680c 100644 > --- a/tests/perf.c > +++ b/tests/perf.c > @@ -3964,6 +3964,17 @@ static void i915_perf_remove_config(int fd, uint64_t config_id) > &config_id), 0); > } > > +static bool has_i915_perf_userspace_config(int fd) > +{ > + uint64_t config = 0; > + int ret = igt_ioctl(fd, DRM_IOCTL_I915_PERF_REMOVE_CONFIG, &config); > + igt_assert_eq(ret, -1); > + > + igt_debug("errno=%i\n", errno); In later years "errno=21" without context is going to annoy you. -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx