Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Andreas Färber
Am 23.03.2011 um 22:05 schrieb Stefan Hajnoczi: On Wed, Mar 23, 2011 at 8:58 PM, Andreas Färber > wrote: Unfortunately compiling GLib from scratch (e.g., on Haiku) can be a lot of work, too. The Mono folks abandoned it again in favor of their own stripped-down GLib-compatible eglib implementat

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Stefan Hajnoczi
On Wed, Mar 23, 2011 at 8:58 PM, Andreas Färber wrote: > Still I would generally advise against requiring the latest and greatest > GCC. Yes, I think requiring 4.1 was too aggressive. > Unfortunately compiling GLib from scratch (e.g., on Haiku) can be a lot of > work, too. The Mono folks abandon

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Andreas Färber
Am 23.03.2011 um 21:42 schrieb Andreas Färber: Am 23.03.2011 um 08:39 schrieb Stefan Hajnoczi: On Tue, Mar 22, 2011 at 11:52 PM, Andreas Färber > wrote: Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: Trace events outside the global mutex cannot be used with the simple trace backend since i

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Stefan Hajnoczi
On Wed, Mar 23, 2011 at 8:42 PM, Andreas Färber wrote: > Am 23.03.2011 um 08:39 schrieb Stefan Hajnoczi: >> These are gcc builtins, I believe the were added in gcc 4.1: >> >> http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html#Atomic-Builtins >> >> Which version of gcc are you running

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Andreas Färber
Am 23.03.2011 um 08:39 schrieb Stefan Hajnoczi: On Tue, Mar 22, 2011 at 11:52 PM, Andreas Färber > wrote: Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: Trace events outside the global mutex cannot be used with the simple trace backend since it is not thread-safe. There is no check to prev

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Alexander Graf
On 23.03.2011, at 08:59, Stefan Hajnoczi wrote: > On Wed, Mar 23, 2011 at 7:58 AM, Stefan Hajnoczi wrote: >> On Wed, Mar 23, 2011 at 7:39 AM, Stefan Hajnoczi wrote: >>> On Tue, Mar 22, 2011 at 11:52 PM, Andreas Färber >>> wrote: Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: >

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Stefan Hajnoczi
On Wed, Mar 23, 2011 at 7:58 AM, Stefan Hajnoczi wrote: > On Wed, Mar 23, 2011 at 7:39 AM, Stefan Hajnoczi wrote: >> On Tue, Mar 22, 2011 at 11:52 PM, Andreas Färber >> wrote: >>> Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: >>> Trace events outside the global mutex cannot be used with

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Stefan Hajnoczi
On Wed, Mar 23, 2011 at 7:39 AM, Stefan Hajnoczi wrote: > On Tue, Mar 22, 2011 at 11:52 PM, Andreas Färber > wrote: >> Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: >> >>> Trace events outside the global mutex cannot be used with the simple >>> trace backend since it is not thread-safe.  There

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-23 Thread Stefan Hajnoczi
On Tue, Mar 22, 2011 at 11:52 PM, Andreas Färber wrote: > Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: > >> Trace events outside the global mutex cannot be used with the simple >> trace backend since it is not thread-safe.  There is no check to prevent >> them being enabled so people sometimes

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-03-22 Thread Andreas Färber
Am 28.02.2011 um 10:38 schrieb Stefan Hajnoczi: Trace events outside the global mutex cannot be used with the simple trace backend since it is not thread-safe. There is no check to prevent them being enabled so people sometimes learn this the hard way. This patch restructures the simple tra

[Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-02-28 Thread Stefan Hajnoczi
Trace events outside the global mutex cannot be used with the simple trace backend since it is not thread-safe. There is no check to prevent them being enabled so people sometimes learn this the hard way. This patch restructures the simple trace backend with a ring buffer suitable for multiple co

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-02-27 Thread Stefan Hajnoczi
On Sun, Feb 27, 2011 at 4:14 PM, Avi Kivity wrote: > On 02/27/2011 04:58 PM, Stefan Hajnoczi wrote: >> >> Trace events outside the global mutex cannot be used with the simple >> trace backend since it is not thread-safe.  There is no check to prevent >> them being enabled so people sometimes learn

Re: [Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-02-27 Thread Avi Kivity
On 02/27/2011 04:58 PM, Stefan Hajnoczi wrote: Trace events outside the global mutex cannot be used with the simple trace backend since it is not thread-safe. There is no check to prevent them being enabled so people sometimes learn this the hard way. This patch restructures the simple trace ba

[Qemu-devel] [PATCH] simpletrace: Thread-safe tracing

2011-02-27 Thread Stefan Hajnoczi
Trace events outside the global mutex cannot be used with the simple trace backend since it is not thread-safe. There is no check to prevent them being enabled so people sometimes learn this the hard way. This patch restructures the simple trace backend with a ring buffer suitable for multiple co