From patchwork Thu Dec 20 22:30:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v7, 6/8] trace: [default] Port to generic event information and new control interface Date: Thu, 20 Dec 2012 12:30:22 -0000 From: =?utf-8?q?Llu=C3=ADs_Vilanova?= X-Patchwork-Id: 207722 Message-Id: <20121220223022.22814.12910.stgit@fimbulvetr.bsc.es> To: qemu-devel@nongnu.org Cc: Blue Swirl , Stefan Hajnoczi Signed-off-by: Lluís Vilanova --- trace/default.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trace/default.c b/trace/default.c index c9b27a2..2b61224 100644 --- a/trace/default.c +++ b/trace/default.c @@ -1,7 +1,7 @@ /* * Default implementation for backend initialization from commandline. * - * Copyright (C) 2011 Lluís Vilanova + * Copyright (C) 2011-2012 Lluís Vilanova * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. @@ -18,11 +18,11 @@ void trace_print_events(FILE *stream, fprintf_function stream_printf) "operation not supported with the current backend\n"); } -bool trace_event_set_state(const char *name, bool state) +void trace_event_set_state_dynamic(TraceEvent *ev, bool state) { + assert(ev != NULL); fprintf(stderr, "warning: " "cannot set the state of a trace event with the current backend\n"); - return false; } bool trace_backend_init(const char *events, const char *file)