Tiago Vignatti d4723c80b5 lib: Add gem_userptr and __gem_userptr helpers
This patch moves userptr definitions and helpers implementation that were
locally in gem_userptr_benchmark and gem_userptr_blits to the library, so other
tests can make use of them as well. There's no functional changes.

v2: added __ function to differentiate when errors want to be handled back in
the caller; bring gem_userptr_sync back to gem_userptr_blits; added gtkdoc.
v8: remove local_i915_gem_userptr from gem_concurrent_all.c to use the global
helpers instead.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2016-02-05 11:49:16 -02:00
..
2015-12-19 01:31:06 +00:00
2016-01-27 14:45:18 +00:00
2016-01-27 14:45:18 +00:00
2015-12-19 01:31:06 +00:00
2015-12-19 01:31:06 +00:00
2015-11-10 14:04:58 +00:00

These benchmarks are designed to be used from within a benchmark framework
like http://cgit.freedesktop.org/~mperes/ezbench/.

A typical way to run them would be:

$ ~/ezbench/ezbench.sh -p ./linux,git -m '' -b gem: -r 15

which executes the set of gem benchmarks, 15 times each, using HEAD of
./linux.git as the reference commit.