diff options
author | Tony Lu <tonylu@linux.alibaba.com> | 2021-11-01 10:39:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-01 16:39:14 +0300 |
commit | 4826260868202246a4dba1c682491d7f4b90d747 (patch) | |
tree | 4870743d784827044bf115bb0f6ec2ba19484d20 /net/smc/smc_tracepoint.c | |
parent | 6008889121c0463f51e604426031646d7f0a23ce (diff) | |
download | linux-4826260868202246a4dba1c682491d7f4b90d747.tar.xz |
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.c | 6 |
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); |