Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-09-12 Thread Stefan Hajnoczi
On Sat, Sep 11, 2010 at 10:53 PM, Andreas Färber wrote: > Am 06.09.2010 um 17:13 schrieb Stefan Hajnoczi: > >> diff --git a/Makefile b/Makefile >> index f95cc2f..3c5e6a0 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -1,6 +1,6 @@ >> # Makefile for QEMU. >> >> -GENERATED_HEADERS = config-host.h >

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-09-11 Thread Andreas Färber
Hello Stefan, Am 06.09.2010 um 17:13 schrieb Stefan Hajnoczi: diff --git a/Makefile b/Makefile index f95cc2f..3c5e6a0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Makefile for QEMU. -GENERATED_HEADERS = config-host.h +GENERATED_HEADERS = config-host.h trace.h ifneq ($(wildcard confi

[Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-09-06 Thread Stefan Hajnoczi
This patch introduces the trace-events file where trace events can be declared like so: qemu_malloc(size_t size) "size %zu" qemu_free(void *ptr) "ptr %p" These trace event declarations are processed by a new tool called tracetool to generate code for the trace events. Trace event declarations ar

[Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-30 Thread Stefan Hajnoczi
This patch introduces the trace-events file where trace events can be declared like so: qemu_malloc(size_t size) "size %zu" qemu_free(void *ptr) "ptr %p" These trace event declarations are processed by a new tool called tracetool to generate code for the trace events. Trace event declarations ar

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-23 Thread Stefan Hajnoczi
On Sun, Aug 22, 2010 at 04:38:36PM -0500, Anthony Liguori wrote: > On 08/12/2010 05:36 AM, Stefan Hajnoczi wrote: > >+linetoh_nop() > >+{ > >+local name args > >+name=$(get_name "$1") > >+args=$(get_args "$1") > >+ > >+# Define an empty function for the trace event > >+cat< >+st

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-22 Thread Anthony Liguori
On 08/12/2010 05:36 AM, Stefan Hajnoczi wrote: +linetoh_nop() +{ +local name args +name=$(get_name "$1") +args=$(get_args "$1") + +# Define an empty function for the trace event +cat< This seems like it can potentially create a single header that ends up needed to know a

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-12 Thread Stefan Hajnoczi
On Thu, Aug 12, 2010 at 5:07 PM, malc wrote: > On Thu, 12 Aug 2010, Stefan Hajnoczi wrote: > >> This patch introduces the trace-events file where trace events can be >> declared like so: >> >> qemu_malloc(size_t size) "size %zu" >> qemu_free(void *ptr) "ptr %p" >> > > [..snip..] > >> +        echo

Re: [Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-12 Thread malc
On Thu, 12 Aug 2010, Stefan Hajnoczi wrote: > This patch introduces the trace-events file where trace events can be > declared like so: > > qemu_malloc(size_t size) "size %zu" > qemu_free(void *ptr) "ptr %p" > [..snip..] > +echo -n "$name, " Once again: standard echo doesn't have any

[Qemu-devel] [PATCH 01/14] trace: Add trace-events file for declaring trace events

2010-08-12 Thread Stefan Hajnoczi
This patch introduces the trace-events file where trace events can be declared like so: qemu_malloc(size_t size) "size %zu" qemu_free(void *ptr) "ptr %p" These trace event declarations are processed by a new tool called tracetool to generate code for the trace events. Trace event declarations ar