diff options
author | Steve Dickson <steved@redhat.com> | 2011-09-08 14:28:44 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-09-08 14:28:44 -0400 |
commit | 1b935f79e558af770e5d3e7794691dcc97c0ee2d (patch) | |
tree | 9fa539524ba4ba48d2c33fb1d566482b98ec21d2 | |
parent | 480862d06d3658a47754da4806e713c8b58ce29b (diff) | |
download | systemtap-1b935f79e558af770e5d3e7794691dcc97c0ee2d.tar.gz systemtap-1b935f79e558af770e5d3e7794691dcc97c0ee2d.tar.xz systemtap-1b935f79e558af770e5d3e7794691dcc97c0ee2d.zip |
Updated rpc_rtt
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | tapset/task.stp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tapset/task.stp b/tapset/task.stp index 4be41a9..bb74118 100644 --- a/tapset/task.stp +++ b/tapset/task.stp @@ -188,11 +188,8 @@ function rpc_rtt:long(_task:long) struct rpc_rqst *req; long rtt = 0; - if (task) { - req = (struct rpc_rqst *)(long) kread(&(task->tk_rqstp)); - if (req) - rtt = ktime_to_ms(req->rq_rtt); - } + if (task) + rtt = ktime_to_ms(ktime_sub(ktime_get(), task->tk_start)); THIS->__retvalue = rtt; |