event-internal.h 746 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Interface for configuring and controlling the state of tracing events.
  3. *
  4. * Copyright (C) 2012 Lluís Vilanova <vilanova@ac.upc.edu>
  5. *
  6. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  7. * See the COPYING file in the top-level directory.
  8. */
  9. #ifndef TRACE__EVENT_INTERNAL_H
  10. #define TRACE__EVENT_INTERNAL_H
  11. #include "trace/generated-events.h"
  12. /**
  13. * TraceEvent:
  14. * @id: Unique event identifier.
  15. * @name: Event name.
  16. * @sstate: Static tracing state.
  17. * @dstate: Dynamic tracing state.
  18. *
  19. * Opaque generic description of a tracing event.
  20. */
  21. typedef struct TraceEvent {
  22. TraceEventID id;
  23. const char * name;
  24. const bool sstate;
  25. bool dstate;
  26. } TraceEvent;
  27. #endif /* TRACE__EVENT_INTERNAL_H */