]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Introduce tracepoint for fallback
authorTony Lu <tonylu@linux.alibaba.com>
Mon, 1 Nov 2021 07:39:12 +0000 (15:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2021 13:39:14 +0000 (13:39 +0000)
commitcc903c0d4f9db1dbe1862ce1c1d27ea6ff322f3e
tree4870743d784827044bf115bb0f6ec2ba19484d20
parent1b93ea3366da1553cc5c5fa5af60265e9e7353ea
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>
net/smc/Makefile
net/smc/af_smc.c
net/smc/smc_tracepoint.c [new file with mode: 0644]
net/smc/smc_tracepoint.h [new file with mode: 0644]