OSDN Git Service

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)
commit4826260868202246a4dba1c682491d7f4b90d747
tree4870743d784827044bf115bb0f6ec2ba19484d20
parent6008889121c0463f51e604426031646d7f0a23ce
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]