summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
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 /tapset/aux_syscalls.stp
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.
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r--tapset/aux_syscalls.stp8
1 files changed, 7 insertions, 1 deletions
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: