[Qemu-devel] [PATCH v3 0/2] Make simpletrace work on Windows

2011-09-20 Thread stefanha
From: Stefan Hajnoczi The 'simple' trace backend uses pthreads and does not work on Windows. These patches switch from pthreads to glib so that the code builds on all platforms supported by glib. v3: * Explain that glib threads need to be used directly * Explain the signal masking v2: * Blo

[Qemu-devel] [PATCH v3 2/2] trace: use binary file open mode in simpletrace

2011-09-20 Thread stefanha
From: Stefan Hajnoczi For Windows portability the simple trace backend must use the 'b' file open mode. This prevents the stdio library from mangling 0x0a/0x0d newline characters. Signed-off-by: Stefan Hajnoczi --- trace/simple.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) di

[Qemu-devel] [PATCH v3 1/2] trace: portable simple trace backend using glib

2011-09-20 Thread stefanha
From: Stefan Hajnoczi Convert the simple trace backend to glib so that it works under Windows. We cannot use pthread directly but glib provides portable abstractions. Also use glib atomics instead of newish gcc builtins which may not be supported on Windows toolchains. Signed-off-by: Stefan Hajn