diff options
author | Tiago Vignatti <tiago.vignatti@intel.com> | 2016-03-18 15:08:56 -0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-18 20:42:49 +0000 |
commit | f129ee8a39eaaa2b9a8c97d845309e372af00ce9 (patch) | |
tree | 1b6a118f276ee9dc03ceb64dca098109e94a4bb9 /scripts/throttle.py | |
parent | dbc74dd99097adc2bd32cd5945186791a8d2d806 (diff) |
prime_mmap_coherency: Add return error tests for prime sync ioctl
This patch adds ioctl-errors subtest to be used for exercising prime sync ioctl
errors.
The subtest constantly interrupts via signals a function doing concurrent blit
to stress out the right usage of prime_sync_*, making sure these ioctl errors
are handled accordingly. Important to note that in case of failure (e.g. in a
case where the ioctl wouldn't try again in a return error) this test does not
reliably catch the problem with 100% of accuracy.
v2: fix prime sync direction when reading mmap'ed file.
v3: change the upper bound using time rather than loops
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
[ickle: fix memleak, run for longer]
Diffstat (limited to 'scripts/throttle.py')
0 files changed, 0 insertions, 0 deletions