summaryrefslogtreecommitdiff
path: root/net/smc/smc_tracepoint.c
diff options
context:
space:
mode:
authorTony Lu <tonylu@linux.alibaba.com>2021-11-01 10:39:16 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-01 16:39:14 +0300
commita3a0e81b6fd55745e100735c7667cd99a0650811 (patch)
treeb87dd34f6efbe873248fc0ec056267e2877be182 /net/smc/smc_tracepoint.c
parentaff3083f10bff7a37eaa2b4e6bc5fb627ddd5f84 (diff)
downloadlinux-a3a0e81b6fd55745e100735c7667cd99a0650811.tar.xz
net/smc: Introduce tracepoint for smcr link down
SMC-R link down event is important to help us find links' issues, we should track this event, especially in the single nic mode, which means upper layer connection would be shut down. Then find out the direct link-down reason in time, not only increased the counter, also the location of the code who triggered this event. 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.c')
-rw-r--r--net/smc/smc_tracepoint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/smc/smc_tracepoint.c b/net/smc/smc_tracepoint.c
index af031811ddb3..8d47ced5a492 100644
--- a/net/smc/smc_tracepoint.c
+++ b/net/smc/smc_tracepoint.c
@@ -6,3 +6,4 @@
EXPORT_TRACEPOINT_SYMBOL(smc_switch_to_fallback);
EXPORT_TRACEPOINT_SYMBOL(smc_tx_sendmsg);
EXPORT_TRACEPOINT_SYMBOL(smc_rx_recvmsg);
+EXPORT_TRACEPOINT_SYMBOL(smcr_link_down);