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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Oct 14 14:50:13 2010 +0200

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 e5b8c89..bc3d347 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -622,4 +622,13 @@ static inline void wrap_proc_dir_entry_owner(struct 
proc_dir_entry *entry)
 #define unlocked_ioctl ioctl
 #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@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to