Re: [Qemu-devel] [PATCH v6 2/3] Simpletrace v2: Support multiple arguments, strings.

2012-06-14 Thread Harsh Bora
On 06/15/2012 12:09 AM, Harsh Prateek Bora wrote: static gpointer writeout_thread(gpointer opaque) { -TraceRecord record; -unsigned int writeout_idx = 0; -unsigned int num_available, idx; +TraceRecord *recordptr, *dropped_ptr; +union { +TraceRecord rec; +ui

[Qemu-devel] [PATCH v6 2/3] Simpletrace v2: Support multiple arguments, strings.

2012-06-14 Thread Harsh Prateek Bora
Existing simpletrace backend allows to trace at max 6 args and does not support strings. This newer tracelog format gets rid of fixed size records and therefore allows to trace variable number of args including strings. Sample trace with strings: v9fs_version 0.000 tag=0x id=0x64 msize=0x2000