summaryrefslogtreecommitdiff
path: root/net/smc/smc_tracepoint.h
diff options
context:
space:
mode:
authorTony Lu <tonylu@linux.alibaba.com>2021-11-03 20:48:37 +0800
committerDavid S. Miller <davem@davemloft.net>2021-11-05 10:14:38 +0000
commitaf1877b6cad16bdd8d8d93ca1c7b37e8f21ef4e3 (patch)
tree5e2cf492396dd9d41d324ea3ae37f9b2dcde996f /net/smc/smc_tracepoint.h
parentb93c6a911a3fe926b00add28f3b932007827c4ca (diff)
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] Link: https://lore.kernel.org/netdev/11f17a34-fd35-f2ec-3f20-dd0c34e55fde@linux.ibm.com/ Signed-off-by: Tony Lu <tonylu@linux.alibaba.com> Reviewed-by: Wen Gu <guwen@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_tracepoint.h')
-rw-r--r--net/smc/smc_tracepoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_tracepoint.h b/net/smc/smc_tracepoint.h
index b4c36795a928..ec17f29646f5 100644
--- a/net/smc/smc_tracepoint.h
+++ b/net/smc/smc_tracepoint.h
@@ -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)