]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Print function name in smcr_link_down tracepoint
authorTony Lu <tonylu@linux.alibaba.com>
Wed, 3 Nov 2021 12:48:37 +0000 (20:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Nov 2021 10:14:38 +0000 (10:14 +0000)
commit43da3ef00f1c86f6f14cc13e2c0fab88f672e64c
tree5e2cf492396dd9d41d324ea3ae37f9b2dcde996f
parent513e7e95cbc6bcc9dfa20900e7d6f40b3c955050
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>
net/smc/smc_tracepoint.h