aboutsummaryrefslogtreecommitdiff
path: root/trace/event-internal.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-03-28 12:57:32 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2013-03-28 12:57:32 -0500
commit837df37e881e14ffdb05c2b912b2ad30b851c9d3 (patch)
tree236f8c569e5b04139b2a009061c0e4208b248954 /trace/event-internal.h
parente280ff5e9159ed227a117339c1157143627cab96 (diff)
parent7e8660032cd21c1bdc4160b8fab7deec62e1aa12 (diff)
Merge remote-tracking branch 'stefanha/tracing' into staging
# By Lluís Vilanova (7) and others # Via Stefan Hajnoczi * stefanha/tracing: vl: add runstate_set tracepoint .gitignore: rename trace/generated-tracers.dtrace .gitignore: add trace/generated-events.[ch] trace: rebuild generated-events.o when configuration changes trace: [stderr] Port to generic event information and new control interface trace: [simple] Port to generic event information and new control interface trace: [default] Port to generic event information and new control interface trace: [monitor] Use new event control interface trace: Provide a detailed event control interface trace: Provide a generic tracing event descriptor trace: [tracetool] Explicitly identify public backends
Diffstat (limited to 'trace/event-internal.h')
-rw-r--r--trace/event-internal.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/trace/event-internal.h b/trace/event-internal.h
new file mode 100644
index 0000000000..b2310d9bea
--- /dev/null
+++ b/trace/event-internal.h
@@ -0,0 +1,33 @@
+/*
+ * Interface for configuring and controlling the state of tracing events.
+ *
+ * Copyright (C) 2012 Lluís Vilanova <vilanova@ac.upc.edu>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or later.
+ * See the COPYING file in the top-level directory.
+ */
+
+#ifndef TRACE__EVENT_INTERNAL_H
+#define TRACE__EVENT_INTERNAL_H
+
+#include "trace/generated-events.h"
+
+
+/**
+ * TraceEvent:
+ * @id: Unique event identifier.
+ * @name: Event name.
+ * @sstate: Static tracing state.
+ * @dstate: Dynamic tracing state.
+ *
+ * Opaque generic description of a tracing event.
+ */
+typedef struct TraceEvent {
+ TraceEventID id;
+ const char * name;
+ const bool sstate;
+ bool dstate;
+} TraceEvent;
+
+
+#endif /* TRACE__EVENT_INTERNAL_H */