intel: Mark up with valgrind intrinsics to reduce false positives
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Feb 2012 10:23:10 +0000 (10:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Feb 2012 11:45:39 +0000 (11:45 +0000)
commit90b23cc24c19fbe131d84237c55311cafeb4ca21
tree0162fe16b86dc102fd5f75e2e3e7ce8c83858ea7
parent2cfac57d364d0166ed9472b086c16aea376f495a
intel: Mark up with valgrind intrinsics to reduce false positives

In particular, declare the hidden CPU mmaps to valgrind so that it knows
about those memory regions.

v2: Add an additional VG_CLEAR for the getparam

References: https://bugs.freedesktop.org/show_bug.cgi?id=35071
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
[anholt: Ideally valgrind should just learn about the ioctls, and
         removing the clear for the non-valgrindified code feels risky.]
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac
intel/Makefile.am
intel/intel_bufmgr_gem.c