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/disablethe events having a common prefix in a batch. For example, virtio-blk trace...
trace: use binary file open mode in simpletrace
For Windows portability the simple trace backend must use the 'b' fileopen mode. This prevents the stdio library from mangling 0x0a/0x0dnewline characters.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
trace: portable simple trace backend using glib
Convert the simple trace backend to glib so that it works under Windows.We cannot use pthread directly but glib provides portable abstractions.Also use glib atomics instead of newish gcc builtins which may not be...
trace: separate trace event control and query routines from the simple backend
Generalize the 'st_print_trace_events' and 'st_change_trace_event_state' intobackend-specific 'trace_print_events' and 'trace_event_set_state' (respectively)in the "trace/control.h" file....
trace: add "-trace events" argument to control initial state
The "-trace events" argument can be used to provide a file with a list of traceevent names that will be enabled prior to starting execution, thus providingearly tracing.
This saves the user from manually toggling event states through the monitor...
trace: [stderr] add support for dynamically enabling/disabling events
Uses the generic interface provided in "trace/control.h" in order to providea programmatic interface as well as command line and monitor controls.
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>...
trace: move backend-specific code into the trace/ directory
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
trace: avoid conditional code compilation during option parsing
A default implementation for backend-specific routines is provided in"trace/default.c", which backends can override by setting "trace_default=no" in"configure".
View revisions
Also available in: Atom