summaryrefslogtreecommitdiffstats
path: root/net/smc/smc_tracepoint.c
diff options
context:
space:
mode:
authorTony Lu <tonylu@linux.alibaba.com>2021-11-01 15:39:12 +0800
committerDavid S. Miller <davem@davemloft.net>2021-11-01 13:39:14 +0000
commit4826260868202246a4dba1c682491d7f4b90d747 (patch)
tree4870743d784827044bf115bb0f6ec2ba19484d20 /net/smc/smc_tracepoint.c
parent6008889121c0463f51e604426031646d7f0a23ce (diff)
downloadlinux-4826260868202246a4dba1c682491d7f4b90d747.tar.bz2
net/smc: Introduce tracepoint for fallback
This introduces tracepoint for smc fallback to TCP, so that we can track which connection and why it fallbacks, and map the clcsocks' pointer with /proc/net/tcp to find more details about TCP connections. Compared with kprobe or other dynamic tracing, tracepoints are stable and easy to use. 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/smc/smc_tracepoint.c b/net/smc/smc_tracepoint.c
new file mode 100644
index 000000000000..861a41644971
--- /dev/null
+++ b/net/smc/smc_tracepoint.c
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#define CREATE_TRACE_POINTS
+#include "smc_tracepoint.h"
+
+EXPORT_TRACEPOINT_SYMBOL(smc_switch_to_fallback);