Statistics
| Branch: | Revision:

root / docs / tracing.txt @ feature-archipelago

History | View | Annotate | Download (10.8 kB)

# Date Author Comment
ef3ef4a0 02/19/2014 12:08 pm Mohamad Gebai

Update documentation for LTTng ust tracing

Signed-off-by: Mohamad Gebai <>
Reviewed-by: Alex Bennée <>
Signed-off-by: Stefan Hajnoczi <>

b9a7b74f 06/14/2013 05:33 pm Paolo Bonzini

build: do not use TARGET_ARCH

TARGET_ARCH is generally wrong to use, there are better variables
provided in config-target.mak. The right one is usually TARGET_NAME
(previously TARGET_ARCH2), but for bsd-user we can also use TARGET_ABI_DIR
for consistency with linux-user....

e64dd5ef 05/03/2013 02:58 pm Eiichi Tsukata

trace: document ftrace backend

Add documentation of ftrace backend.

Signed-off-by: Eiichi Tsukata <>
Signed-off-by: Stefan Hajnoczi <>

b1bae816 03/28/2013 03:19 pm Lluís Vilanova

trace: Provide a detailed event control interface

This interface decouples event obtaining from interaction.

Events can be obtained through three different methods:

  • identifier
  • name
  • simple wildcard pattern

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

8f44015e 02/05/2013 10:52 pm Markus Armbruster

trace: Fix location of simpletrace.py in docs

Missed when commit 4c3b5a48 moved it.

Signed-off-by: Markus Armbruster <>
Reviewed-by: Laszlo Ersek <>
Reviewed-by: Harsh Prateek Bora <>
Signed-off-by: Stefan Hajnoczi <>

e94c4c92 11/16/2012 02:35 pm Liming Wang

trace: Remove "info trace" from documents

commit 88affa1c monitor: remove unused do_info_trace

has removed "info trace" function from monitor, so remove it from documents.

Signed-off-by: Liming Wang <>
Signed-off-by: Stefan Hajnoczi <>

8f5a0fb1 11/16/2012 02:12 pm Stefan Hajnoczi

trace: document '-' syntax for disabling events

Signed-off-by: Stefan Hajnoczi <>

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

324883aa 03/12/2012 12:12 pm Jun Koi

docs: correct ./configure line in tracing.txt

This patch corrects the configure's trace option in docs/tracing.txt.

Signed-off-by: Jun Koi <>
Signed-off-by: Stefan Hajnoczi <>

454e202d 11/01/2011 04:12 pm Mark Wu

trace: Add wildcard trace event support

A basic wildcard matching is supported in both the monitor command
"trace-event" and the events list file. That means you can enable/disable
the events having a common prefix in a batch. For example, virtio-blk trace...

4b710a3c 09/21/2011 01:32 pm Lluís Vilanova

trace: Update docs to use example events that exist

The events 'qemu_malloc' and 'qemu_free' used in the examples no longer exist,
so use 'qemu_vmalloc' and 'qemu_vfree' instead.

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

8f642117 09/21/2011 01:29 pm Stefan Hajnoczi

trace: allow trace events with string arguments

String arguments are useful for producing human-readable traces without
post-processing (e.g. stderr backend). Although the simple backend
cannot handles strings all others can. Strings should be allowed and...

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

31965ae2 09/01/2011 12:34 pm Lluís

trace: always compile support for controlling and querying trace event states

The current interface is generic for this small set of operations, and thus
other backends can easily modify the "trace/control.c" file to add their own
implementation.

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

23d15e86 09/01/2011 12:34 pm Lluís

trace: add "-trace events" argument to control initial state

The "-trace events" argument can be used to provide a file with a list of trace
event names that will be enabled prior to starting execution, thus providing
early tracing.

This saves the user from manually toggling event states through the monitor...

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

e6a750aa 04/26/2011 03:14 pm Stefan Hajnoczi

docs: Trace events must not expect pointer dereferencing

Signed-off-by: Stefan Hajnoczi <>

7b92e5bc 04/26/2011 03:14 pm Lluís

docs/tracing.txt: minor documentation fixes

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

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

b48c20f7 03/06/2011 08:11 pm Stefan Hajnoczi

docs: Update stderr and simple backend, add systemtap backend

The following additions to the tracing documentation are included:

1. Move "stderr" backend documentation to top-level and out of "simple"
backend. Include hints on when this backend is useful....

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

cf85cf8e 10/20/2010 07:41 pm Stefan Hajnoczi

trace: Format strings must begin/end with double quotes

Document the restriction that format strings must begin and end with
double quotes. This is for easy parsing since we don't run cpp over
trace-events.

Signed-off-by: Stefan Hajnoczi <>...

9a85d394 10/09/2010 11:16 am Stefan Hajnoczi

trace: Use portable format strings

It is not portable to use "%ld" for int64_t because int64_t may have
type long on 64-bit platforms and long long on 32-bit platforms. Use
the standard library PRId64 macros to keep format strings portable.

Signed-off-by: Stefan Hajnoczi <>...

81a97d9d 09/10/2010 12:22 am Stefan Hajnoczi

trace: Add user documentation

Signed-off-by: Stefan Hajnoczi <>