blob: 3573d5b296d5fc7ce7e90de4c0a369f13d009e8a [file] [log] [blame]
Lluíse4858972011-08-31 20:31:03 +02001/*
2 * Default implementation for backend initialization from commandline.
3 *
4 * Copyright (C) 2011 Lluís Vilanova <vilanova@ac.upc.edu>
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2. See
7 * the COPYING file in the top-level directory.
8 */
9
10#include "trace/control.h"
11
12
Lluísfc764102011-08-31 20:31:18 +020013void trace_print_events(FILE *stream, fprintf_function stream_printf)
14{
15 fprintf(stderr, "warning: "
16 "cannot print the trace events with the current backend\n");
17 stream_printf(stream, "error: "
18 "operation not supported with the current backend\n");
19}
20
21bool trace_event_set_state(const char *name, bool state)
22{
23 fprintf(stderr, "warning: "
24 "cannot set the state of a trace event with the current backend\n");
25 return false;
26}
27
Lluíse4858972011-08-31 20:31:03 +020028bool trace_backend_init(const char *file)
29{
30 if (file) {
31 fprintf(stderr, "error: -trace file=...: "
32 "option not supported by the selected tracing backend\n");
33 return false;
34 }
35 return true;
36}