-# sgetmask ___________________________________________________
-#
-# sys_sgetmask(void)
-#
-probe nd_syscall.sgetmask = kprobe.function("sys_sgetmask") ?
-{
- name = "sgetmask"
- argstr = ""
-}
-probe nd_syscall.sgetmask.return = kprobe.function("sys_sgetmask").return ?
-{
- name = "sgetmask"
- retstr = returnstr(1)
-}
-
# shmat ______________________________________________________
#
# long sys_shmat(int shmid, char __user *shmaddr, int shmflg)
--- /dev/null
+# sgetmask ___________________________________________________
+#
+# sys_sgetmask(void)
+#
+
+@define _SYSCALL_SGETMASK_NAME
+%(
+ name = "sgetmask"
+%)
+
+@define _SYSCALL_SGETMASK_ARGSTR
+%(
+ argstr = ""
+%)
+
+probe syscall.sgetmask = dw_syscall.sgetmask !, nd_syscall.sgetmask {}
+probe syscall.sgetmask.return = dw_syscall.sgetmask.return !,
+ nd_syscall.sgetmask.return {}
+
+# dw_sgetmask _____________________________________________________
+
+probe dw_syscall.sgetmask = kernel.function("sys_sgetmask").call ?
+{
+ @_SYSCALL_SGETMASK_NAME
+ @_SYSCALL_SGETMASK_ARGSTR
+}
+probe dw_syscall.sgetmask.return = kernel.function("sys_sgetmask").return ?
+{
+ @_SYSCALL_SGETMASK_NAME
+ retstr = return_str(1, $return)
+}
+
+# nd_sgetmask _____________________________________________________
+
+probe nd_syscall.sgetmask = kprobe.function("sys_sgetmask") ?
+{
+ @_SYSCALL_SGETMASK_NAME
+ @_SYSCALL_SGETMASK_ARGSTR
+}
+probe nd_syscall.sgetmask.return = kprobe.function("sys_sgetmask").return ?
+{
+ @_SYSCALL_SGETMASK_NAME
+ retstr = returnstr(1)
+}
-# sgetmask ___________________________________________________
-#
-# sys_sgetmask(void)
-#
-probe syscall.sgetmask = kernel.function("sys_sgetmask").call ?
-{
- name = "sgetmask"
- argstr = ""
-}
-probe syscall.sgetmask.return = kernel.function("sys_sgetmask").return ?
-{
- name = "sgetmask"
- retstr = return_str(1, $return)
-}
# shmat ______________________________________________________
#