aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslib-posix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/oslib-posix.c b/oslib-posix.c
index 3a18e865f3..196099cc77 100644
--- a/oslib-posix.c
+++ b/oslib-posix.c
@@ -79,7 +79,10 @@ void *qemu_memalign(size_t alignment, size_t size)
/* alloc shared memory pages */
void *qemu_vmalloc(size_t size)
{
- return qemu_memalign(getpagesize(), size);
+ void *ptr;
+ ptr = qemu_memalign(getpagesize(), size);
+ trace_qemu_vmalloc(size, ptr);
+ return ptr;
}
void qemu_vfree(void *ptr)