Merge tag 'nfs-for-4.21-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
[sfrench/cifs-2.6.git] / include / trace / events / sunrpc.h
index 88bda93e8f90fb89f40ebf73fda069b5e90d6084..0d5d0d91f861759762214bea030016c6668ce265 100644 (file)
@@ -527,7 +527,8 @@ TRACE_EVENT(svc_process,
                __field(u32, vers)
                __field(u32, proc)
                __string(service, name)
-               __string(addr, rqst->rq_xprt->xpt_remotebuf)
+               __string(addr, rqst->rq_xprt ?
+                        rqst->rq_xprt->xpt_remotebuf : "(null)")
        ),
 
        TP_fast_assign(
@@ -535,7 +536,8 @@ TRACE_EVENT(svc_process,
                __entry->vers = rqst->rq_vers;
                __entry->proc = rqst->rq_proc;
                __assign_str(service, name);
-               __assign_str(addr, rqst->rq_xprt->xpt_remotebuf);
+               __assign_str(addr, rqst->rq_xprt ?
+                            rqst->rq_xprt->xpt_remotebuf : "(null)");
        ),
 
        TP_printk("addr=%s xid=0x%08x service=%s vers=%u proc=%u",