OpenCloudOS-Kernel/net/sunrpc/xprtrdma
Chuck Lever ece200ddd5 sunrpc: Save remote presentation address in svc_xprt for trace events
TP_printk defines a format string that is passed to user space for
converting raw trace event records to something human-readable.

My user space's printf (Oracle Linux 7), however, does not have a
%pI format specifier. The result is that what is supposed to be an
IP address in the output of "trace-cmd report" is just a string that
says the field couldn't be displayed.

To fix this, adopt the same approach as the client: maintain a pre-
formated presentation address for occasions when %pI is not
available.

The location of the trace_svc_send trace point is adjusted so that
rqst->rq_xprt is not NULL when the trace event is recorded.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2018-04-03 15:08:11 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
backchannel.c xprtrdma: Correct some documenting comments 2018-01-23 09:44:39 -05:00
fmr_ops.c xprtrdma: Add trace points to instrument memory invalidation 2018-01-23 09:44:36 -05:00
frwr_ops.c xprtrdma: Add trace points to instrument memory invalidation 2018-01-23 09:44:36 -05:00
module.c rpcrdma: infrastructure for static trace points in rpcrdma.ko 2018-01-23 09:44:25 -05:00
rpc_rdma.c xprtrdma: Fix calculation of ri_max_send_sges 2018-02-02 13:29:57 -05:00
svc_rdma.c svcrdma: Consult max_qp_init_rd_atom when accepting connections 2018-03-20 17:32:13 -04:00
svc_rdma_backchannel.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_recvfrom.c svcrdma: Clean up rdma_build_arg_xdr 2018-03-20 17:32:13 -04:00
svc_rdma_rw.c svcrdma: Fix Read chunk round-up 2018-02-08 13:40:17 -05:00
svc_rdma_sendto.c svcrdma: Post Receives in the Receive completion handler 2018-01-18 11:52:51 -05:00
svc_rdma_transport.c sunrpc: Save remote presentation address in svc_xprt for trace events 2018-04-03 15:08:11 -04:00
transport.c SUNRPC: Trace xprt_timer events 2018-01-23 09:44:39 -05:00
verbs.c xprtrdma: Fix BUG after a device removal 2018-02-02 13:31:04 -05:00
xprt_rdma.h xprtrdma: Add trace points in the client-side backchannel code paths 2018-01-23 09:44:37 -05:00