diff options
Diffstat (limited to 'tapset/task.stp')
-rw-r--r-- | tapset/task.stp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tapset/task.stp b/tapset/task.stp index f9390db..04b1ece 100644 --- a/tapset/task.stp +++ b/tapset/task.stp @@ -44,7 +44,8 @@ function xprt_dump:string(_task:long) sprintf(buf+cc, "xprt is NULL"); goto leave; } - sprintf(buf+cc, ": xprt 0x%p ops 0x%p", xprt, xprt->ops); + sprintf(buf+cc, ": xprt 0x%p ops 0x%p state 0x%x", + xprt, xprt->ops, xprt->state); cc = strlen(buf); leave: snprintf(THIS->__retvalue, 64, "%s", buf); @@ -59,6 +60,20 @@ function task_status:long(_task:long) CATCH_DEREF_FAULT(); %} +function task_flags:string(_task:long) +%{ + struct rpc_task *task = (struct rpc_task *)(long) kread(&(THIS->_task)); + char buf[64]; + int cc=0; + + if (task->tk_flags & RPC_TASK_ASYNC) { + snprintf(buf+cc, 64, "ASYNC"); + cc = strlen(buf); + } + snprintf(THIS->__retvalue, 64, "%s", buf); + + CATCH_DEREF_FAULT(); +%} function cl_prognum:long(_task:long) %{ |