summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/utrace_compatibility.h23
2 files changed, 26 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 0a12c0d3..96b37dbd 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-06 Mark Wielaard <mjw@redhat.com>
+
+ * utrace_compatibility.h: Add workaround for fedora 9 2.6.26 kernels.
+
2008-10-06 Wenji Huang <wenji.huang@oracle.com>
PR 4886
diff --git a/runtime/utrace_compatibility.h b/runtime/utrace_compatibility.h
index 27fca250..00b841d2 100644
--- a/runtime/utrace_compatibility.h
+++ b/runtime/utrace_compatibility.h
@@ -73,6 +73,27 @@ utrace_barrier(struct task_struct *target,
{
return 0;
}
-#endif
+#else
+#ifdef UTRACE_HIDE_EVENT
+/* This is only for some fedora 9 2.6.26 kernels that don't have
+ * UTRACE_ACTION_RESUME defined, but do define UTRACE_HIDE_EVENT.
+ * It isn't really a recommended version, but it does compile and
+ * run mostly. It has one renamed function.
+ */
+#define utrace_attach_task utrace_attach
+static inline void
+utrace_engine_put(struct utrace_attached_engine *engine)
+{
+ return;
+}
+
+static inline int __must_check
+utrace_barrier(struct task_struct *target,
+ struct utrace_attached_engine *engine)
+{
+ return 0;
+}
+#endif /* UTRACE_HIDE_EVENT */
+#endif /* UTRACE_ACTION_RESUME */
#endif /* _UTRACE_COMPATIBILITY_H_ */