-#include <lttng.h>
-#include <lttng-types.h>
#include <linux/debugfs.h>
-#include "../wrapper/symbols.h" /* for wrapper_vmalloc_sync_all() */
+#include "lttng.h"
+#include "lttng-types.h"
+#include "../wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */
#include "../wrapper/ringbuffer/frontend_types.h"
#include "../ltt-events.h"
#include "../ltt-tracer-core.h"
-struct lttng_event_field {
- const char *name;
- const struct lttng_type type;
-};
-
-struct lttng_event_desc {
- const struct lttng_event_field *fields;
- const char *name;
- void *probe_callback;
- unsigned int nr_fields;
-};
-
/*
* Macro declarations used for all stages.
*/
TRACE_EVENT(name, PARAMS(proto), PARAMS(args), \
PARAMS(tstruct), PARAMS(assign), PARAMS(print)) \
+/*
+ * Stage 0.1 of the trace events.
+ *
+ * Create dummy trace calls for each events, verifying that the LTTng module
+ * TRACE_EVENT headers match the kernel arguments. Will be optimized out by the
+ * compiler.
+ */
+
+#include "lttng-events-reset.h" /* Reset all macros within TRACE_EVENT */
+
+#undef TP_PROTO
+#define TP_PROTO(args...) args
+
+#undef TP_ARGS
+#define TP_ARGS(args...) args
+
+#undef DEFINE_EVENT
+#define DEFINE_EVENT(_template, _name, _proto, _args) \
+void trace_##_name(_proto);
+
+#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
+
/*
* Stage 1 of the trace events.
*