summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2008-09-18 23:33:06 +0200
committerMark Wielaard <mjw@redhat.com>2008-09-18 23:33:35 +0200
commite8ea4501122483436cdeb0352d833ccefeda7d14 (patch)
tree3dde8e5d2b3c1b11cda0077c98e3b6046f14839a
parent0387bde4d7cb9853a93af0d266330dea7938b506 (diff)
downloadsystemtap-steved-e8ea4501122483436cdeb0352d833ccefeda7d14.tar.gz
systemtap-steved-e8ea4501122483436cdeb0352d833ccefeda7d14.tar.xz
systemtap-steved-e8ea4501122483436cdeb0352d833ccefeda7d14.zip
Moved reboot.h include out of _reboot_magic_str in aux_syscalls.stp.
-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: