Patchwork [resend] Add missing trace call to oslib-posix.c:qemu_vmalloc()

login
register
mail settings
Submitter Jes Sorensen
Date July 25, 2011, 3:13 p.m.
Message ID <1311606816-24045-1-git-send-email-Jes.Sorensen@redhat.com>
Download mbox | patch
Permalink /patch/106698/
State New
Headers show

Comments

Jes Sorensen - July 25, 2011, 3:13 p.m.
From: Jes Sorensen <Jes.Sorensen@redhat.com>

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 oslib-posix.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
Stefan Hajnoczi - July 25, 2011, 3:25 p.m.
On Mon, Jul 25, 2011 at 4:13 PM,  <Jes.Sorensen@redhat.com> wrote:
> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>
> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
> ---
>  oslib-posix.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)

Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Anthony Liguori - July 29, 2011, 2:36 p.m.
On 07/25/2011 10:13 AM, Jes.Sorensen@redhat.com wrote:
> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>
> Signed-off-by: Jes Sorensen<Jes.Sorensen@redhat.com>

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   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)

Patch

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)