Lluís | e485897 | 2011-08-31 20:31:03 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Default implementation for backend initialization from commandline. |
| 3 | * |
Lluís Vilanova | fd068a9 | 2013-03-05 14:47:49 +0100 | [diff] [blame] | 4 | * Copyright (C) 2011-2012 Lluís Vilanova <vilanova@ac.upc.edu> |
Lluís | e485897 | 2011-08-31 20:31:03 +0200 | [diff] [blame] | 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ís | fc76410 | 2011-08-31 20:31:18 +0200 | [diff] [blame] | 13 | void 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 | |
Lluís Vilanova | fd068a9 | 2013-03-05 14:47:49 +0100 | [diff] [blame] | 21 | void trace_event_set_state_dynamic_backend(TraceEvent *ev, bool state) |
Lluís | fc76410 | 2011-08-31 20:31:18 +0200 | [diff] [blame] | 22 | { |
| 23 | fprintf(stderr, "warning: " |
| 24 | "cannot set the state of a trace event with the current backend\n"); |
Lluís | fc76410 | 2011-08-31 20:31:18 +0200 | [diff] [blame] | 25 | } |
| 26 | |
Lluís | 23d15e8 | 2011-08-31 20:31:31 +0200 | [diff] [blame] | 27 | bool trace_backend_init(const char *events, const char *file) |
Lluís | e485897 | 2011-08-31 20:31:03 +0200 | [diff] [blame] | 28 | { |
Lluís | 23d15e8 | 2011-08-31 20:31:31 +0200 | [diff] [blame] | 29 | if (events) { |
| 30 | fprintf(stderr, "error: -trace events=...: " |
| 31 | "option not supported by the selected tracing backend\n"); |
| 32 | return false; |
| 33 | } |
Lluís | e485897 | 2011-08-31 20:31:03 +0200 | [diff] [blame] | 34 | if (file) { |
| 35 | fprintf(stderr, "error: -trace file=...: " |
| 36 | "option not supported by the selected tracing backend\n"); |
| 37 | return false; |
| 38 | } |
| 39 | return true; |
| 40 | } |