Blame 0234-Add-missing-trace-call-to-oslib-posix.c-qemu_vmalloc.patch

cd9d16
From 601465e71b720e1e54911bbd67e2d02cd4904f0d Mon Sep 17 00:00:00 2001
cd9d16
From: Jes Sorensen <Jes.Sorensen@redhat.com>
cd9d16
Date: Mon, 25 Jul 2011 17:13:36 +0200
cd9d16
Subject: [PATCH] Add missing trace call to oslib-posix.c:qemu_vmalloc()
cd9d16
MIME-Version: 1.0
cd9d16
Content-Type: text/plain; charset=UTF-8
cd9d16
Content-Transfer-Encoding: 8bit
cd9d16
cd9d16
Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
cd9d16
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
cd9d16
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cd9d16
(cherry picked from commit c7f4111a06208b46c6d05934d2a1e5cfbebc0180)
cd9d16
cd9d16
Signed-off-by: Andreas Färber <afaerber@suse.de>
cd9d16
---
cd9d16
 oslib-posix.c | 5 ++++-
cd9d16
 1 file changed, 4 insertions(+), 1 deletion(-)
cd9d16
cd9d16
diff --git a/oslib-posix.c b/oslib-posix.c
cd9d16
index 3a18e86..196099c 100644
cd9d16
--- a/oslib-posix.c
cd9d16
+++ b/oslib-posix.c
cd9d16
@@ -79,7 +79,10 @@ void *qemu_memalign(size_t alignment, size_t size)
cd9d16
 /* alloc shared memory pages */
cd9d16
 void *qemu_vmalloc(size_t size)
cd9d16
 {
cd9d16
-    return qemu_memalign(getpagesize(), size);
cd9d16
+    void *ptr;
cd9d16
+    ptr = qemu_memalign(getpagesize(), size);
cd9d16
+    trace_qemu_vmalloc(size, ptr);
cd9d16
+    return ptr;
cd9d16
 }
cd9d16
 
cd9d16
 void qemu_vfree(void *ptr)
cd9d16
-- 
cd9d16
1.7.11.2
cd9d16