net/smc: Print function name in smcr_link_down tracepoint
Subsystems (5)
Tony Lu
reviewerPATCH 1/1 net/smc: Print function name in smcr_link_down tracepoint
This makes the output of smcr_link_down tracepoint easier to use and understand without additional translating function's pointer address.
It prints the function name with offset:
<idle>-0 [000] ..s. 69.087164: smcr_link_down: lnk=00000000dab41cdc lgr=000000007d5d8e24 state=0 rc=1 dev=mlx5_0 location=smc_wr_tx_tasklet_fn+0x5ef/0x6f0 [smc]
--- net/smc/smc_tracepoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/smc/smc_tracepoint.h +1 -1
@@ -99,7 +99,7 @@ TRACE_EVENT(smcr_link_down, __entry->location = location; ), -TP_printk ("lnk=%p lgr=%p state=%d dev=%s location=%p" , +TP_printk ("lnk=%p lgr=%p state=%d dev=%s location=%pS" , __entry->lnk, __entry->lgr, __entry->state,__get_str (name), __entry->location)
Signature · 1 line
2.19.1.6.gb485710b
Quoted 10 lines · Tony Lu
This makes the output of
smcr_link_downtracepoint easier to use and understand without additional translating function's pointer address.It prints the function name with offset:
<idle>-0 [000] ..s. 69.087164:
smcr_link_down: lnk=00000000dab41cdc lgr=000000007d5d8e24 state=0 rc=1 dev=mlx5_0 location=smc_wr_tx_tasklet_fn+0x5ef/0x6f0 [smc]Signed-off-by Tony Lu <[email protected]>Reviewed-by Wen Gu <[email protected]>