diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-09 10:42:01 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-27 11:17:25 +0100 |
commit | d930b6493d93a6e6c2ca9a5ed468d360a9183586 (patch) | |
tree | 353049a57f2544c68f3e771f8bf84fbeedc3e39b /lib/ioctl_wrappers.h | |
parent | 8f3164ff51b7ceef87ebc285c5ba9874ceee767e (diff) |
lib: Add basic support for valgrind annotations.
SIGRTMAX appears to be used by valgrind now for its internal tracking,
so avoid it in the helpers.
Also add some valgrind annotations in gem_mmap, to make sure that its
accesses are tracked correctly. I've also added gem_munmap, but there
are a lot of places that don't use it yet in tests/.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'lib/ioctl_wrappers.h')
-rw-r--r-- | lib/ioctl_wrappers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h index cf33da87..ef92b5bc 100644 --- a/lib/ioctl_wrappers.h +++ b/lib/ioctl_wrappers.h @@ -86,6 +86,8 @@ void *__gem_mmap__gtt(int fd, uint32_t handle, uint64_t size, unsigned prot); void *__gem_mmap__cpu(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot); void *__gem_mmap__wc(int fd, uint32_t handle, uint64_t offset, uint64_t size, unsigned prot); +int gem_munmap(void *ptr, uint64_t size); + /** * gem_require_stolen_support: * @fd: open i915 drm file descriptor |