From: Anthony Liguori <aliguori@us.ibm.com>
To: Frediano Ziglio <freddy77@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] rename qemu_malloc and related to glib names for coherence
Date: Fri, 02 Sep 2011 10:40:29 -0500 [thread overview]
Message-ID: <4E60F8ED.10606@us.ibm.com> (raw)
In-Reply-To: <1314775535-5736-1-git-send-email-freddy77@gmail.com>
On 08/31/2011 02:25 AM, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio<freddy77@gmail.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
> trace-events | 10 +++++-----
> vl.c | 6 +++---
> 2 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/trace-events b/trace-events
> index dc300a2..37da2e0 100644
> --- a/trace-events
> +++ b/trace-events
> @@ -14,7 +14,7 @@
> #
> # [disable]<name>(<type1> <arg1>[,<type2> <arg2>] ...) "<format-string>"
> #
> -# Example: qemu_malloc(size_t size) "size %zu"
> +# Example: g_malloc(size_t size) "size %zu"
> #
> # The "disable" keyword will build without the trace event.
> # In case of 'simple' trace backend, it will allow the trace event to be
> @@ -28,10 +28,10 @@
> #
> # The<format-string> should be a sprintf()-compatible format string.
>
> -# qemu-malloc.c
> -disable qemu_malloc(size_t size, void *ptr) "size %zu ptr %p"
> -disable qemu_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p"
> -disable qemu_free(void *ptr) "ptr %p"
> +# vl.c
> +disable g_malloc(size_t size, void *ptr) "size %zu ptr %p"
> +disable g_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p"
> +disable g_free(void *ptr) "ptr %p"
>
> # osdep.c
> disable qemu_memalign(size_t alignment, size_t size, void *ptr) "alignment %zu size %zu ptr %p"
> diff --git a/vl.c b/vl.c
> index 9cd67a3..f71221b 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -2088,20 +2088,20 @@ static const QEMUOption *lookup_opt(int argc, char **argv,
> static gpointer malloc_and_trace(gsize n_bytes)
> {
> void *ptr = malloc(n_bytes);
> - trace_qemu_malloc(n_bytes, ptr);
> + trace_g_malloc(n_bytes, ptr);
> return ptr;
> }
>
> static gpointer realloc_and_trace(gpointer mem, gsize n_bytes)
> {
> void *ptr = realloc(mem, n_bytes);
> - trace_qemu_realloc(mem, n_bytes, ptr);
> + trace_g_realloc(mem, n_bytes, ptr);
> return ptr;
> }
>
> static void free_and_trace(gpointer mem)
> {
> - trace_qemu_free(mem);
> + trace_g_free(mem);
> free(mem);
> }
>
prev parent reply other threads:[~2011-09-02 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-31 7:25 [Qemu-devel] [PATCH] rename qemu_malloc and related to glib names for coherence Frediano Ziglio
2011-08-31 7:30 ` Stefan Hajnoczi
2011-09-02 15:40 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E60F8ED.10606@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=freddy77@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).