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...
trace: added ability to comment out events in the list
It is convenient for debug to be able to switch on/off some events easily.The only possibility now is to remove event name from the file completelyand type it again when we want it back.
The patch adds '#' symbol handling as a comment specifier....
trace/simple.c: fix deprecated glib2 interface
trace: make trace_thread_create() use its function arg
This patch makes trace_thread_create() to use its function arg toinitialize thread. The other choice is to make this a function to usevoid arg, but i prefer this way.
Signed-off-by: Jun Koi <junkoi2004@gmail.com>...
View revisions
Also available in: Atom