obj-m += lttng-probe-sched.o
obj-m += lttng-probe-kvm.o
obj-m += lttng-probe-irq.o
+obj-m += lttng-probe-block.o
endif
#undef __dynamic_array
#define __dynamic_array(_type, _item, _length)
+#undef __dynamic_array
+#define __dynamic_array_len(_type, _item, _length)
+
#undef __string
#define __string(_item, _src)
lib_ring_buffer_align_ctx(config, &ctx, sizeof(*(src))); \
lib_ring_buffer_write(config, &ctx, &src, len);
+/* TODO: tp_memcpy_dyn */
+
/* TODO */
#undef tp_strcpy
#define tp_strcpy(dest, src) __assign_str(dest, src);
#include "lttng-events-reset.h" /* Reset all macros within TRACE_EVENT */
-#undef DECLARE_EVENT_CLASS
-#define DECLARE_EVENT_CLASS(_name, _proto, _args, _tstruct, _assign, _print) \
- { \
- .fields = __event_fields___##_name, \
- .name = #_name, \
- .nr_fields = ARRAY_SIZE(__event_fields___##_name), \
+#undef DEFINE_EVENT
+#define DEFINE_EVENT(_template, _name, _proto, _args) \
+ { \
+ .fields = __event_fields___##_template, \
+ .name = #_name, \
+ .nr_fields = ARRAY_SIZE(__event_fields___##_template), \
},
#define TP_ID1(_token, _system) _token##_system
--- /dev/null
+/*
+ * probes/lttng-probe-block.c
+ *
+ * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * LTTng block probes.
+ */
+
+#include <linux/module.h>
+#include <linux/blktrace_api.h>
+
+/*
+ * Create LTTng tracepoint probes.
+ */
+#define LTTNG_PACKAGE_BUILD
+#define CREATE_TRACE_POINTS
+#undef CONFIG_EVENT_TRACING /* Don't create Ftrace probes */
+
+#include <trace/events/block.h>
+
+MODULE_LICENSE("GPL and additional rights");
+MODULE_AUTHOR("Mathieu Desnoyers <mathieu.desnoyers@efficios.com>");
+MODULE_DESCRIPTION("LTTng block probes");