Statistics
| Branch: | Revision:

root / scripts / tracetool @ 3179d694

History | View | Annotate | Download (11 kB)

# Date Author Comment
b7d66a76 03/12/2012 12:12 pm Lluís Vilanova

trace: Provide a per-event status define for conditional compilation

Adds a 'TRACE_${NAME}_ENABLED' preprocessor define for each tracing event in
"trace.h".

This lets the user conditionally compile code with a relatively high execution
cost that is only necessary when producing the tracing information for an event...

bcec4332 03/12/2012 12:12 pm Stefan Hajnoczi

tracetool: Omit useless QEMU_*_ENABLED() check

SystemTap provides a "semaphore" that can optionally be tested before
executing a trace event. The purpose of this mechanism is to skip
expensive tracing code when the trace event is disabled.

For example, some applications may have trace events that format or...

913540a3 09/17/2011 06:14 pm Stefan Hajnoczi

trace: allow PRI*64 at beginning and ending of format string

The tracetool parser only picks up PRI*64 and other format string macros
when enclosed between double quoted strings. Lift this restriction by
extracting everything after the closing ')' as the format string:...

49926043 09/01/2011 12:34 pm Lluís

trace: generalize the "property" concept in the trace-events file

This adds/modifies the following functions:

  • get_name: Get only the event name
  • has_property: Return whether an event has a property (keyword before the event
    name)

Signed-off-by: Lluís Vilanova <>

dd215f64 09/01/2011 12:34 pm Lluís

trace: always use the "nop" backend on events with the "disable" keyword

Any event with the keyword/property "disable" generates an empty trace event
using the "nop" backend, regardless of the current backend.

Signed-off-by: Lluís Vilanova <>

03727e6a 09/01/2011 12:34 pm Lluís

trace: [simple] disable all trace points by default

Note that this refers to the backend-specific state (whether the output must be
generated), not the event "disabled" property (which always uses the "nop"
backend).

Signed-off-by: Lluís Vilanova <>

9a82b6a5 09/01/2011 12:34 pm Lluís

trace: [stderr] add support for dynamically enabling/disabling events

Uses the generic interface provided in "trace/control.h" in order to provide
a programmatic interface as well as command line and monitor controls.

Signed-off-by: Fabien Chouteau <>...

edb47ec4 09/01/2011 12:34 pm Lluís

trace: move backend-specific code into the trace/ directory

Signed-off-by: Lluís Vilanova <>

1a96dd47 04/26/2011 03:14 pm Paolo Bonzini

tracetool: allow ) in trace output string

Be greedy in matching the trailing "\)*" pattern. Otherwise, all the
text in the trace string up to the last closed parenthesis is taken as
part of the prototype.

Signed-off-by: Paolo Bonzini <>...

fa2d480a 04/26/2011 03:14 pm Lluís

trace: [ust] fix generation of 'trace.c' on events without args

Signed-off-by: Lluís Vilanova <>
Signed-off-by: Stefan Hajnoczi <>

e323c93e 03/06/2011 09:38 pm Jes Sorensen

tracetool: Add optional argument to specify dtrace probe names

Optional feature allowing a user to generate the probe list to match
the name of the binary, in case they wish to install qemu under a
different name than qemu-{system,user},<arch>

Signed-off-by: Jes Sorensen <>...

320fba2a 01/30/2011 12:52 am Fabien Chouteau

New trace-event backend: stderr

This backend sends trace events to standard error output during the emulation.

Also add a "--list-backends" option to tracetool, so configure script can
display the list of available backends.

Signed-off-by: Fabien Chouteau <>...

4c3b5a48 01/20/2011 10:54 pm Blue Swirl

Add scripts directory

Move build and user scripts into scripts directory.

Signed-off-by: Blue Swirl <>