Module: xenomai-jki
Branch: queues/ftrace
Commit: c50f0659d5369015d2f03c863d0434b567a8bdf6
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=c50f0659d5369015d2f03c863d0434b567a8bdf6

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Wed Jan  9 14:50:37 2013 +0100

Provide wrappings for TRACE_EVENT on older kernels

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 include/asm-generic/wrappers.h      |    9 +++++++++
 include/compat/linux/tracepoint.h   |    1 +
 include/compat/trace/define_trace.h |    1 +
 3 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/include/asm-generic/wrappers.h b/include/asm-generic/wrappers.h
index e71bcc3..f90a74f 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -755,4 +755,13 @@ unsigned long vm_mmap(struct file *file, unsigned long 
addr,
 #define wrap_select_timers(mask) ipipe_timers_request()
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+#define TRACE_EVENT(name, proto, args, struct, assign, print)
+#define TP_PROTO(args...)
+#define TP_ARGS(args...)
+#define TP_STRUCT__entry(args...)
+#define TP_fast_assign(args...)
+#define TP_printk(fmt, args...)
+#endif /* < 2.6.30 */
+
 #endif /* _XENO_ASM_GENERIC_WRAPPERS_H */
diff --git a/include/compat/linux/tracepoint.h 
b/include/compat/linux/tracepoint.h
new file mode 100644
index 0000000..40a8c17
--- /dev/null
+++ b/include/compat/linux/tracepoint.h
@@ -0,0 +1 @@
+/* empty */
diff --git a/include/compat/trace/define_trace.h 
b/include/compat/trace/define_trace.h
new file mode 100644
index 0000000..40a8c17
--- /dev/null
+++ b/include/compat/trace/define_trace.h
@@ -0,0 +1 @@
+/* empty */


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to