Statistics
| Branch: | Revision:

root / trace @ f487b677

Name Size
Makefile.objs 3 kB
control-internal.h 1.4 kB
control.c 3.4 kB
control.h 4.6 kB
default.c 1.2 kB
event-internal.h 746 Bytes
ftrace.c 2.5 kB
ftrace.h 178 Bytes
simple.c 11.9 kB
simple.h 1.4 kB
stderr.c 784 Bytes

Latest revisions

# Date Author Comment
781e9545 05/03/2013 02:58 pm Eiichi Tsukata

trace: Add ftrace tracing backend

This patch adds a ftrace tracing backend which sends trace event to
ftrace marker file. You can effectively compare qemu trace data and
kernel(especially, kvm.ko when using KVM) trace data.
The ftrace backend is restricted to Linux only....

45be2f5d 03/28/2013 03:19 pm Lluís Vilanova

trace: Provide a generic tracing event descriptor

Uses tracetool to generate a backend-independent tracing event description
(struct TraceEvent).

The values for such structure are generated with the non-public "events"
backend ("events-c" frontend).

The generation of the defines to check if an event is statically enabled is also...

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

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

trace: [default] Port to generic event information and new control interface

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

60481e21 03/28/2013 03:19 pm Lluís Vilanova

trace: [simple] Port to generic event information and new control interface

The backend is forced to dump event numbers using 64 bits, as TraceEventID is
an enum.

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

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

trace: [stderr] Port to generic event information and new control interface

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

a7373b1f 03/28/2013 03:19 pm Stefan Hajnoczi

trace: rebuild generated-events.o when configuration changes

Make sure to rebuild generated-events.o when ./configure options change.
This prevents linker errors when a stale generated-events.o gets linked
with code compiled against fresh headers. For example, try building...

4a0e6714 02/13/2013 12:26 am Stefan Hajnoczi

trace: deal with deprecated glib thread functions

g_thread_create() was deprecated in favor of g_thread_new() and
g_cond_new() was deprecated in favor of GCond initialization. If the
host has glib 2.31 or newer, avoid using the deprecated functions.

This patch solves compiler warnings that are generated when glib's...

30d94087 02/13/2013 12:26 am Stefan Hajnoczi

trace: use glib atomic int types

Juan reported that RHEL 6.4 hosts give compiler warnings because we use
unsigned int while glib prototypes use volatile gint in trace/simple.c.

trace/simple.c:223: error: pointer targets in passing argument 1 of 'g_atomic_int_compare_and_exchange' differ in signedness...
b6b2c962 02/05/2013 10:52 pm Markus Armbruster

trace: Clean up the "try to update atomic until it worked" loops

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

View revisions

Also available in: Atom