Revision b48c20f7

b/docs/tracing.txt
126 126
can optimize out trace events completely.  This is the default and imposes no
127 127
performance penalty.
128 128

  
129
=== Stderr ===
130

  
131
The "stderr" backend sends trace events directly to standard error.  This
132
effectively turns trace events into debug printfs.
133

  
134
This is the simplest backend and can be used together with existing code that
135
uses DPRINTF().
136

  
129 137
=== Simpletrace ===
130 138

  
131 139
The "simple" backend supports common use cases and comes as part of the QEMU
......
133 141
trace backends but it is portable.  This is the recommended trace backend
134 142
unless you have specific needs for more advanced backends.
135 143

  
136
=== Stderr ===
137

  
138
The "stderr" backend sends trace events directly to standard error output
139
during emulation.
144
Warning: the "simple" backend is not thread-safe so only enable trace events
145
that are executed while the global mutex is held.  Much of QEMU meets this
146
requirement but some utility functions like qemu_malloc() or thread-related
147
code cannot be safely traced using the "simple" backend.
140 148

  
141 149
==== Monitor commands ====
142 150

  
......
187 195
The "ust" backend uses the LTTng Userspace Tracer library.  There are no
188 196
monitor commands built into QEMU, instead UST utilities should be used to list,
189 197
enable/disable, and dump traces.
198

  
199
=== SystemTap ===
200

  
201
The "dtrace" backend uses DTrace sdt probes but has only been tested with
202
SystemTap.  When SystemTap support is detected a .stp file with wrapper probes
203
is generated to make use in scripts more convenient.  This step can also be
204
performed manually after a build in order to change the binary name in the .stp
205
probes:
206

  
207
    scripts/tracetool --dtrace --stap \
208
                      --binary path/to/qemu-binary \
209
                      --target-type system \
210
                      --target-arch x86_64 \
211
                      <trace-events >qemu.stp

Also available in: Unified diff