diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-22 15:27:56 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-22 15:27:56 -0700 |
commit | dec6cf8fd4da55ac0fd4c711b3eebc48ee9eda75 (patch) | |
tree | 7e482c46d68c66c529313affa9e46bffa1607986 | |
parent | 29d0edebd429185b88ff9c476eb4fba4396b5f63 (diff) | |
download | systemtap-steved-dec6cf8fd4da55ac0fd4c711b3eebc48ee9eda75.tar.gz systemtap-steved-dec6cf8fd4da55ac0fd4c711b3eebc48ee9eda75.tar.xz systemtap-steved-dec6cf8fd4da55ac0fd4c711b3eebc48ee9eda75.zip |
Move the "pure" tag into the body of __is_user_regs
The "/* pure */" tag has no effect unless it is within the embedded-C
body of a function. In this instance, they were accidentally moved out
during the syscall cleanups.
-rw-r--r-- | tapset/nd_syscalls.stp | 3 | ||||
-rw-r--r-- | tapset/syscalls.stp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tapset/nd_syscalls.stp b/tapset/nd_syscalls.stp index 97374d9f..af145394 100644 --- a/tapset/nd_syscalls.stp +++ b/tapset/nd_syscalls.stp @@ -1210,8 +1210,9 @@ probe nd_syscall.flock.return = kprobe.function("sys_flock").return retstr = returnstr(1) } -function __is_user_regs:long (regs:long) /* pure */ +function __is_user_regs:long (regs:long) %{ + /* pure */ struct pt_regs * regs = (void *)((unsigned long)THIS->regs); /* copied from asm/ptrace.h */ #if defined(__i386__) diff --git a/tapset/syscalls.stp b/tapset/syscalls.stp index 3a34c91b..0886deeb 100644 --- a/tapset/syscalls.stp +++ b/tapset/syscalls.stp @@ -1060,8 +1060,9 @@ probe syscall.flock.return = kernel.function("SyS_flock").return !, retstr = returnstr(1) } -function __is_user_regs:long (regs:long) /* pure */ +function __is_user_regs:long (regs:long) %{ + /* pure */ struct pt_regs * regs = (void *)((unsigned long)THIS->regs); /* copied from asm/ptrace.h */ #if defined(__i386__) |