trace: Add ftrace tracing backend
This patch adds a ftrace tracing backend which sends trace event toftrace marker file. You can effectively compare qemu trace data andkernel(especially, kvm.ko when using KVM) trace data.The ftrace backend is restricted to Linux only....
trace: [tracetool] Explicitly identify public backends
Public backends are those printed by "--list-backends" and thus considered validby the configure script.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
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...
trace: [simple] Port to generic event information and new control interface
The backend is forced to dump event numbers using 64 bits, as TraceEventID isan enum.
trace: [stderr] Port to generic event information and new control interface
build: Use separate makefile for "trace/"
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>--Changes in v2:
Avoid all systemtap reserved words
Over time various systemtap reserved words have been blacklistedin the trace backend generator. The list is not complete though,so there is continued risk of problems in the future. Preemptsuch problems by specifying the full list of systemtap keywords...
dtrace backend: add function to reserved words
Signed-off-by: Alon Levy <alevy@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
trace/simple: Fix compiler warning for 32 bit hosts
gcc complains when a 32 bit pointer is casted to a 64 bit integer.
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Simpletrace v2: Support multiple arguments, strings.
Existing simpletrace backend allows to trace at max 6 args and does notsupport strings. This newer tracelog format gets rid of fixed size recordsand therefore allows to trace variable number of args including strings....
View revisions
Also available in: Atom