[Intel-gfx] [PATCH i-g-t v6 01/12] tests/perf: make stream_fd a global variable

Chris Wilson chris at chris-wilson.co.uk
Wed Oct 4 12:08:49 UTC 2017


Quoting Lionel Landwerlin (2017-10-04 12:19:36)
> When debugging unstable tests on new platforms we currently we don't
> cleanup everything well in between different tests. Since only a
> single OA stream fd can be opened at a time, having the stream_fd as a
> global variable helps us cleanup the state between tests.
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> Reviewed-by: Matthew Auld <matthew.auld at intel.com>

Food for thought: launch each subtest in a process, fd will then be
reaped on process termination. That should be a good way to cleanup
local test resources?
-Chris


More information about the Intel-gfx mailing list