-# setreuid ___________________________________________________
-# long sys_setreuid(uid_t ruid, uid_t euid)
-#
-probe nd_syscall.setreuid = kprobe.function("sys_setreuid") ?
-{
- name = "setreuid"
- asmlinkage()
- ruid = __int32(uint_arg(1))
- euid = __int32(uint_arg(2))
- argstr = sprintf("%d, %d", ruid, euid)
-}
-probe nd_syscall.setreuid.return = kprobe.function("sys_setreuid").return ?
-{
- name = "setreuid"
- retstr = returnstr(1)
-}
-
# setreuid16 _________________________________________________
# long sys_setreuid16(old_uid_t ruid, old_uid_t euid)
#
--- /dev/null
+# setreuid ___________________________________________________
+# long sys_setreuid(uid_t ruid, uid_t euid)
+#
+
+@define _SYSCALL_SETREUID_NAME
+%(
+ name = "setreuid"
+%)
+
+@define _SYSCALL_SETREUID_ARGSTR
+%(
+ argstr = sprintf("%d, %d", ruid, euid)
+%)
+
+probe syscall.setreuid = dw_syscall.setreuid !, nd_syscall.setreuid {}
+probe syscall.setreuid.return = dw_syscall.setreuid.return !,
+ nd_syscall.setreuid.return {}
+
+# dw_setreuid _____________________________________________________
+
+probe dw_syscall.setreuid = kernel.function("sys_setreuid").call
+{
+ @_SYSCALL_SETREUID_NAME
+ ruid = __int32($ruid)
+ euid = __int32($euid)
+ @_SYSCALL_SETREUID_ARGSTR
+}
+probe dw_syscall.setreuid.return = kernel.function("sys_setreuid").return
+{
+ @_SYSCALL_SETREUID_NAME
+ retstr = return_str(1, $return)
+}
+
+# nd_setreuid _____________________________________________________
+
+probe nd_syscall.setreuid = kprobe.function("sys_setreuid") ?
+{
+ @_SYSCALL_SETREUID_NAME
+ asmlinkage()
+ ruid = __int32(uint_arg(1))
+ euid = __int32(uint_arg(2))
+ @_SYSCALL_SETREUID_ARGSTR
+}
+probe nd_syscall.setreuid.return = kprobe.function("sys_setreuid").return ?
+{
+ @_SYSCALL_SETREUID_NAME
+ retstr = returnstr(1)
+}
-
-# setreuid ___________________________________________________
-# long sys_setreuid(uid_t ruid, uid_t euid)
-#
-probe syscall.setreuid = kernel.function("sys_setreuid").call
-{
- name = "setreuid"
- ruid = __int32($ruid)
- euid = __int32($euid)
- argstr = sprintf("%d, %d", ruid, euid)
-}
-probe syscall.setreuid.return = kernel.function("sys_setreuid").return
-{
- name = "setreuid"
- retstr = return_str(1, $return)
-}
# setreuid16 _________________________________________________
# long sys_setreuid16(old_uid_t ruid, old_uid_t euid)
#