mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
trace: separate trace event control and query routines from the simple backend
Generalize the 'st_print_trace_events' and 'st_change_trace_event_state' into backend-specific 'trace_print_events' and 'trace_event_set_state' (respectively) in the "trace/control.h" file. Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
This commit is contained in:
parent
49926043c1
commit
fc76410539
6 changed files with 40 additions and 17 deletions
|
@ -10,6 +10,21 @@
|
|||
#include "trace/control.h"
|
||||
|
||||
|
||||
void trace_print_events(FILE *stream, fprintf_function stream_printf)
|
||||
{
|
||||
fprintf(stderr, "warning: "
|
||||
"cannot print the trace events with the current backend\n");
|
||||
stream_printf(stream, "error: "
|
||||
"operation not supported with the current backend\n");
|
||||
}
|
||||
|
||||
bool trace_event_set_state(const char *name, bool state)
|
||||
{
|
||||
fprintf(stderr, "warning: "
|
||||
"cannot set the state of a trace event with the current backend\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool trace_backend_init(const char *file)
|
||||
{
|
||||
if (file) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue