From: Avi Kivity <[email protected]>

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/include-compat/linux/tracepoint.h 
b/include-compat/linux/tracepoint.h
new file mode 100644
index 0000000..084fa04
--- /dev/null
+++ b/include-compat/linux/tracepoint.h
@@ -0,0 +1,39 @@
+#ifndef _LINUX_TRACEPOINT_H
+#define _LINUX_TRACEPOINT_H
+
+struct tracepoint;
+
+#define DECLARE_TRACE(name, proto, args)                               \
+       static inline void _do_trace_##name(struct tracepoint *tp, proto) \
+       { }                                                             \
+       static inline void trace_##name(proto)                          \
+       { }                                                             \
+       static inline int register_trace_##name(void (*probe)(proto))   \
+       {                                                               \
+               return -ENOSYS;                                         \
+       }                                                               \
+       static inline int unregister_trace_##name(void (*probe)(proto)) \
+       {                                                               \
+               return -ENOSYS;                                         \
+       }
+
+#define DEFINE_TRACE(name)
+#define EXPORT_TRACEPOINT_SYMBOL_GPL(name)
+#define EXPORT_TRACEPOINT_SYMBOL(name)
+
+static inline void tracepoint_update_probe_range(struct tracepoint *begin,
+       struct tracepoint *end)
+{ }
+
+#define PARAMS(args...) args
+#define TP_PROTO(args...)      args
+#define TP_ARGS(args...)               args
+
+#define TRACE_EVENT(name, proto, args, struct, assign, print)  \
+       DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
+
+static inline void tracepoint_synchronize_unregister(void)
+{
+}
+
+#endif
diff --git a/include-compat/trace/define_trace.h 
b/include-compat/trace/define_trace.h
new file mode 100644
index 0000000..222c978
--- /dev/null
+++ b/include-compat/trace/define_trace.h
@@ -0,0 +1,2 @@
+/* Empty file to satisfy include */
+
diff --git a/sync b/sync
index b09c424..a23c881 100755
--- a/sync
+++ b/sync
@@ -171,6 +171,12 @@ def header_sync(arch):
                % { 'T': T, 'name': os.path.basename(file) })
         cp(file, out)
         unifdef(out)
+    for file in glob(('%(linux)s/include/trace/events/kvm*.h'
+                      % { 'linux': linux })):
+        out = ('%(T)s/include/trace/events/%(name)s'
+               % { 'T': T, 'name': os.path.basename(file) })
+        cp(file, out)
+        unifdef(out)
     arch_headers = (
         [x
          for dir in ['%(linux)s/arch/%(arch)s/include/asm/./kvm*.h',
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to