docs/tracing.txt: minor documentation fixes

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Lluís 2011-04-06 20:33:56 +02:00 committed by Stefan Hajnoczi
parent e6a750aab5
commit 7b92e5bc6d

View File

@ -26,14 +26,14 @@ for debugging, profiling, and observing execution.
== Trace events == == Trace events ==
There is a set of static trace events declared in the trace-events source There is a set of static trace events declared in the "trace-events" source
file. Each trace event declaration names the event, its arguments, and the file. Each trace event declaration names the event, its arguments, and the
format string which can be used for pretty-printing: format string which can be used for pretty-printing:
qemu_malloc(size_t size, void *ptr) "size %zu ptr %p" qemu_malloc(size_t size, void *ptr) "size %zu ptr %p"
qemu_free(void *ptr) "ptr %p" qemu_free(void *ptr) "ptr %p"
The trace-events file is processed by the tracetool script during build to The "trace-events" file is processed by the "tracetool" script during build to
generate code for the trace events. Trace events are invoked directly from generate code for the trace events. Trace events are invoked directly from
source code like this: source code like this:
@ -52,10 +52,10 @@ source code like this:
=== Declaring trace events === === Declaring trace events ===
The tracetool script produces the trace.h header file which is included by The "tracetool" script produces the trace.h header file which is included by
every source file that uses trace events. Since many source files include every source file that uses trace events. Since many source files include
trace.h, it uses a minimum of types and other header files included to keep trace.h, it uses a minimum of types and other header files included to keep the
the namespace clean and compile times and dependencies down. namespace clean and compile times and dependencies down.
Trace events should use types as follows: Trace events should use types as follows:
@ -110,10 +110,10 @@ portability macros, ensure they are preceded and followed by double quotes:
== Trace backends == == Trace backends ==
The tracetool script automates tedious trace event code generation and also The "tracetool" script automates tedious trace event code generation and also
keeps the trace event declarations independent of the trace backend. The trace keeps the trace event declarations independent of the trace backend. The trace
events are not tightly coupled to a specific trace backend, such as LTTng or events are not tightly coupled to a specific trace backend, such as LTTng or
SystemTap. Support for trace backends can be added by extending the tracetool SystemTap. Support for trace backends can be added by extending the "tracetool"
script. script.
The trace backend is chosen at configure time and only one trace backend can The trace backend is chosen at configure time and only one trace backend can
@ -181,12 +181,12 @@ events at runtime inside QEMU:
==== Analyzing trace files ==== ==== Analyzing trace files ====
The "simple" backend produces binary trace files that can be formatted with the The "simple" backend produces binary trace files that can be formatted with the
simpletrace.py script. The script takes the trace-events file and the binary simpletrace.py script. The script takes the "trace-events" file and the binary
trace: trace:
./simpletrace.py trace-events trace-12345 ./simpletrace.py trace-events trace-12345
You must ensure that the same trace-events file was used to build QEMU, You must ensure that the same "trace-events" file was used to build QEMU,
otherwise trace event declarations may have changed and output will not be otherwise trace event declarations may have changed and output will not be
consistent. consistent.