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/igt_draw.c | |
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/igt_draw.c')
-rw-r--r-- | lib/igt_draw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/igt_draw.c b/lib/igt_draw.c index 3afb8272..29aec850 100644 --- a/lib/igt_draw.c +++ b/lib/igt_draw.c @@ -269,7 +269,7 @@ static void draw_rect_mmap_cpu(int fd, struct buf_data *buf, struct rect *rect, gem_sw_finish(fd, buf->handle); - igt_assert(munmap(ptr, buf->size) == 0); + igt_assert(gem_munmap(ptr, buf->size) == 0); } static void draw_rect_mmap_gtt(int fd, struct buf_data *buf, struct rect *rect, @@ -284,7 +284,7 @@ static void draw_rect_mmap_gtt(int fd, struct buf_data *buf, struct rect *rect, draw_rect_ptr_linear(ptr, buf->stride, rect, color, buf->bpp); - igt_assert(munmap(ptr, buf->size) == 0); + igt_assert(gem_munmap(ptr, buf->size) == 0); } static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect *rect, @@ -317,7 +317,7 @@ static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect *rect, break; } - igt_assert(munmap(ptr, buf->size) == 0); + igt_assert(gem_munmap(ptr, buf->size) == 0); } static void draw_rect_pwrite_untiled(int fd, struct buf_data *buf, |