2
0

default.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Default implementation for backend initialization from commandline.
  3. *
  4. * Copyright (C) 2011-2012 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. #include "trace/control.h"
  10. void trace_print_events(FILE *stream, fprintf_function stream_printf)
  11. {
  12. fprintf(stderr, "warning: "
  13. "cannot print the trace events with the current backend\n");
  14. stream_printf(stream, "error: "
  15. "operation not supported with the current backend\n");
  16. }
  17. void trace_event_set_state_dynamic_backend(TraceEvent *ev, bool state)
  18. {
  19. fprintf(stderr, "warning: "
  20. "cannot set the state of a trace event with the current backend\n");
  21. }
  22. bool trace_backend_init(const char *events, const char *file)
  23. {
  24. if (events) {
  25. fprintf(stderr, "error: -trace events=...: "
  26. "option not supported by the selected tracing backend\n");
  27. return false;
  28. }
  29. if (file) {
  30. fprintf(stderr, "error: -trace file=...: "
  31. "option not supported by the selected tracing backend\n");
  32. return false;
  33. }
  34. return true;
  35. }