summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog4
-rw-r--r--tapset/aux_syscalls.stp8
2 files changed, 11 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 46e15fd6..94531989 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-18 Mark Wielaard <mjw@redhat.com>
+
+ * aux_syscalls.stp (_reboot_magic_str): Moved reboot.h include out.
+
2008-09-17 Mark Wielaard <mjw@redhat.com>
* aux_syscalls.stp: Removed commented out code. Removed unneeded
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index 6ef9ed1e..a748a132 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -855,9 +855,15 @@ function _shutdown_how_str(how) {
return sprintf("UNKNOWN VALUE: %d", how)
}
+%{
+// Needed for function __reboot_magic_str:string. Unfortunately cannot
+// be inlined into the function since these header file defines static
+// functions on some architectures.
+#include <linux/reboot.h>
+%}
+
function _reboot_magic_str:string(magic:long)
%{ /* pure */
- #include <linux/reboot.h>
int magic = (int)THIS->magic;
switch (magic) {
case LINUX_REBOOT_MAGIC1: