default.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  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. #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. bool trace_event_set_state(const char *name, bool state)
  18. {
  19. fprintf(stderr, "warning: "
  20. "cannot set the state of a trace event with the current backend\n");
  21. return false;
  22. }
  23. bool trace_backend_init(const char *events, const char *file)
  24. {
  25. if (events) {
  26. fprintf(stderr, "error: -trace events=...: "
  27. "option not supported by the selected tracing backend\n");
  28. return false;
  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. }