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:
misc: move include files to include/qemu/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
trace: allow disabling events in events file
Disable trace events prefixed with a '-'. Usefulto enable a group of tracepoints with exceptions,like this:
usb_xhci_port_* -usb_xhci_port_read
which will enable all xhci port tracepoints except reads....
trace/simple: Replace asprintf by g_strdup_printf
asprintf is not available for all hosts. g_strdup_printf ismore portable and simplifies the code because if does notneed error handling.
The static variable does not need an explicit assignment to be NULL....
trace: rename TraceRecordHeader to TraceLogHeader
The TraceRecordHeader is really the header for the entire trace logfile. It's not per-record header so make this obvious by renaming it.
Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
trace: remove unnecessary write_to_buffer() typecasting
The buffer argument is void* so it is not necessary to cast.
trace: drop unused TraceBufferRecord->next_tbuf_idx field
trace: avoid pointer aliasing in trace_record_finish()
Declaring a TraceRecord on the stack works fine. No need for auint8_t array and pointer aliasing.
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....
monitor: remove unused do_info_trace
Going forward with simpletrace v2 variable size trace records, we cannothave a generic function to print trace event info and therefore thisinterface becomes invalid.
As per Stefan Hajnoczi:
"This command is only available from the human monitor. It's not very...
View revisions
Also available in: Atom