Statistics
| Branch: | Revision:

root / trace @ 834574ea

Name Size
Makefile.objs 2.1 kB
control.c 1.4 kB
control.h 1.2 kB
default.c 1.2 kB
simple.c 12.4 kB
simple.h 1.4 kB
stderr.c 1.3 kB
stderr.h 182 Bytes

Latest revisions

# Date Author Comment
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...
fb3a5085 02/05/2013 10:52 pm Markus Armbruster

trace: Fix simple trace dropped event record for big endian

We use atomic operations to keep track of dropped events.

Inconveniently, GLib supports only int and void * atomics, but the
counter dropped_events is uint64_t. Can't stop commit 62bab732: a
quick (gint *)&dropped_events bludgeons the compiler into submission....

e722d705 02/05/2013 10:52 pm Markus Armbruster

trace: Direct access of atomics is verboten, use the API

The GLib Reference Manual says:

It is very important that all accesses to a particular integer or
pointer be performed using only this API and that different sizes
of operation are not mixed or used on overlapping memory...
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 <>

6f329a55 01/30/2013 01:31 am Michael S. Tsirkin

Makefile: clean timestamp generation rule

create timestamp by rule without sideeffects.

Signed-off-by: Michael S. Tsirkin <>

0e848f48 01/12/2013 07:42 pm Paolo Bonzini

build: some simplifications for "trace/Makefile.objs"

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

ff667e2e 01/12/2013 07:42 pm Paolo Bonzini

build: fold trace-obj-y into libqemuutil.a

Signed-off-by: Paolo Bonzini <>

2c13ec50 01/12/2013 06:19 pm Paolo Bonzini

build: move dtrace rules to rules.mak

Signed-off-by: Paolo Bonzini <>

eac236ea 12/23/2012 10:28 pm Lluís Vilanova

build: Use separate makefile for "trace/"

Reviewed-by: Paolo Bonzini <>
Signed-off-by: Lluís Vilanova <>
--
Changes in v2:

  • Do not depend on "qemu-timer-common.o".
  • Use "$(obj)" in rules to refer to the build sub-directory....

View revisions

Also available in: Atom