Statistics
| Branch: | Revision:

root / simpletrace.c @ 05175535

History | View | Annotate | Download (8.6 kB)

# Date Author Comment
31d3c9b8 03/15/2011 08:03 pm Stefan Hajnoczi

simpletrace: Move st_init() error reporting

User emulator builds do not have error_report() so it should not be used
by simpletrace.c. In fact, error reporting inside simpletrace.c is
inappropriate and should be done by the caller instead.

This patch moves st_init() error reporting out to its caller,...

0b5538c3 03/07/2011 05:34 pm Stefan Hajnoczi

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...

c57c846a 10/23/2010 06:24 pm Blue Swirl

qemu-timer: move commonly used timer code to qemu-timer-common

Move timer init functions to a new file, qemu-timer-common.c. Make other
critical timer functions inlined to preserve performance in
qemu-timer.c, also move muldiv64() (used by the inline functions)...

a12c668f 10/20/2010 07:41 pm Blue Swirl

trace: improve info trace output

Use PRI*64 to print full 64 bit data even on ILP32 hosts.

Print also sixth tracepoint parameter.

Acked-by: Stefan Hajnoczi <>
Cc: Stefan Hajnoczi <>
Signed-off-by: Blue Swirl <>

f871d689 10/13/2010 10:14 pm Blue Swirl

trace: print a warning if user tries to enable an unknown trace event

There was no warning if a bad trace event name was given to
'trace-event' command, thus the user could think that the command
was successful even if this was not the case.

Print a warning if the user tries to enable a trace event which is not...

26f7227b 09/10/2010 12:22 am Stefan Hajnoczi

trace: Add simple built-in tracing backend

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 trace.log...

22890ab5 09/10/2010 12:22 am Prerna Saxena

trace: Support for dynamically enabling/disabling trace events

This patch adds support for dynamically enabling/disabling of trace events.
This is done by internally maintaining each trace event's state, and
permitting logging of data from a trace event only if it is in an...

9410b56c 09/10/2010 12:22 am Prerna Saxena

trace: Specify trace file name

Allow users to specify a file for trace-outputs at configuration.
Also, allow trace files to be annotated by <pid> so each qemu instance has
unique traces.

The trace file name can be passed as a config option:
--trace-file=/path/to/file...

c5ceb523 09/10/2010 12:22 am Stefan Hajnoczi

trace: Add trace-file command to open/close/flush trace file

This patch adds the trace-file command:

trace-file [on|off|flush]
Open, close, or flush the trace file.  If no argument is given,
the status of the trace file is displayed.

The trace file is turned on by default but is only written out when the...