Re: [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend

2010-08-12 Thread Stefan Hajnoczi
On Thu, Aug 12, 2010 at 6:56 PM, Blue Swirl wrote: > On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi >> +static bool write_header(FILE *fp) >> +{ >> +    TraceRecord header = { > > This should be 'static const'. Okay. >> diff --git a/simpletrace.h b/simpletrace.h >> new file mode 100644 >> ind

Re: [Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend

2010-08-12 Thread Blue Swirl
On Thu, Aug 12, 2010 at 10:36 AM, Stefan Hajnoczi wrote: > This patch adds a simple tracer which produces binary trace files.  To > try out the simple backend: > > $ ./configure --trace-backend=simple > $ make > > After running QEMU you can pretty-print the trace: > > $ ./simpletrace.py trace-even

[Qemu-devel] [PATCH 07/14] trace: Add simple built-in tracing backend

2010-08-12 Thread Stefan Hajnoczi
This patch adds a simple tracer which produces binary trace files. To try out the simple backend: $ ./configure --trace-backend=simple $ make After running QEMU you can pretty-print the trace: $ ./simpletrace.py trace-events /tmp/trace.log The output of simpletrace.py looks like this: qemu_