diff options
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r-- | tapset/aux_syscalls.stp | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index e6071507..d1a504de 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -489,22 +489,6 @@ function _fildes_u:string (uaddr:long) } %} -function _fd_set_u:string(uaddr:long) -%{ /* pure */ - fd_set fdset; - char *ptr = (char *)(unsigned long)THIS->uaddr; - - if (ptr == NULL) - strlcpy (THIS->__retvalue, "NULL", MAXSTRINGLEN); - else { - if (_stp_copy_from_user((char *)&fdset, ptr, sizeof(fd_set)) == 0) - snprintf(THIS->__retvalue, MAXSTRINGLEN, "[0x%lx, 0x%lx, ...]", (long) fdset.fds_bits[0], fdset.fds_bits[1]); - else - strlcpy (THIS->__retvalue, "UNKNOWN", MAXSTRINGLEN); - } -%} - - function _semctl_cmd:string(cmd:long) %{ /* pure */ int cmd = THIS->cmd; @@ -848,6 +832,20 @@ function _itimer_which_str(which) { } /* + * Return the command name for nfsservctl() + */ +function _nfsctl_cmd_str(cmd) { + if(cmd == 0) return "NFSCTL_SVC" + if(cmd == 1) return "NFSCTL_ADDCLIENT" + if(cmd == 2) return "NFSCTL_DELCLIENT" + if(cmd == 3) return "NFSCTL_EXPORT" + if(cmd == 4) return "NFSCTL_UNEXPORT" + if(cmd == 5) return "NFSCTL_UGIDUPDATE" + if(cmd == 6) return "NFSCTL_GETFH" + return sprintf("UNRECOGNIZED VALUE: %d", cmd) +} + +/* * Return the symbolic string representation * of the clockid argument given to create_timer * consult `man create_timer` for more info |