qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH stable-0.15 35/36] Add missing trace call to oslib-p


From: Andreas Färber
Subject: [Qemu-devel] [PATCH stable-0.15 35/36] Add missing trace call to oslib-posix.c:qemu_vmalloc()
Date: Wed, 28 Mar 2012 14:52:38 +0200

From: Jes Sorensen <address@hidden>

Acked-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Jes Sorensen <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
(cherry picked from commit c7f4111a06208b46c6d05934d2a1e5cfbebc0180)

Signed-off-by: Andreas Färber <address@hidden>
---
 oslib-posix.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/oslib-posix.c b/oslib-posix.c
index 3a18e86..196099c 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)
-- 
1.7.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]