qemu-e2k/docs
Stefan Hajnoczi 0b5538c300 simpletrace: Thread-safe tracing
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 concurrent writers.  A writeout thread empties the
trace buffer when threshold fill levels are reached.  Should the
writeout thread be unable to keep up with trace generation, records will
simply be dropped.

Each time events are dropped a special record is written to the trace
file indicating how many events were dropped.  The event ID is
0xfffffffffffffffe and its signature is dropped(uint32_t count).

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
2011-03-07 15:34:17 +00:00
..
specs document QEMU<->ACPIBIOS PCI hotplug interface 2011-01-17 17:29:42 +02:00
blkverify.txt
bootindex.txt Add boot index documentation. 2011-02-01 16:50:44 -06:00
migration.txt
qdev-device-use.txt docs: Document scsi-disk and usb-storage removable parameter 2011-01-24 21:39:22 +01:00
tracing.txt simpletrace: Thread-safe tracing 2011-03-07 15:34:17 +00:00