diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-03-02 21:01:08 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-03-16 17:04:32 +0100 |
commit | b20dfc3fcd6ed1e16c828c81e1fc6f4aea2cfa77 (patch) | |
tree | c736c93eece541657b8bcb96f782710593ad6be3 /net/sunrpc/xprt.c | |
parent | SUNRPC: Clean up: Replace dprintk and BUG_ON call sites in svcauth_gss.c (diff) | |
download | linux-b20dfc3fcd6ed1e16c828c81e1fc6f4aea2cfa77.tar.xz linux-b20dfc3fcd6ed1e16c828c81e1fc6f4aea2cfa77.zip |
svcrdma: Create a generic tracing class for displaying xdr_buf layout
This class can be used to create trace points in either the RPC
client or RPC server paths. It simply displays the length of each
part of an xdr_buf, which is useful to determine that the transport
and XDR codecs are operating correctly.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | net/sunrpc/xprt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 1aafe8d3f3f4..493a30a296fc 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -1117,8 +1117,6 @@ void xprt_complete_rqst(struct rpc_task *task, int copied) struct rpc_rqst *req = task->tk_rqstp; struct rpc_xprt *xprt = req->rq_xprt; - dprintk("RPC: %5u xid %08x complete (%d bytes received)\n", - task->tk_pid, ntohl(req->rq_xid), copied); trace_xprt_complete_rqst(xprt, req->rq_xid, copied); xprt->stat.recvs++; @@ -1462,6 +1460,7 @@ xprt_request_transmit(struct rpc_rqst *req, struct rpc_task *snd_task) */ req->rq_ntrans++; + trace_xprt_sendto(&req->rq_snd_buf); connect_cookie = xprt->connect_cookie; status = xprt->ops->send_request(req); if (status != 0) { |