diff options
author | Tony Lu <tonylu@linux.alibaba.com> | 2021-11-01 08:39:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-01 14:39:14 +0100 |
commit | aff3083f10bff7a37eaa2b4e6bc5fb627ddd5f84 (patch) | |
tree | 3e35820d6b7860914d97d8a6fbdfef3520067b06 /net/smc/smc_tx.c | |
parent | net/smc: Introduce tracepoint for fallback (diff) | |
download | linux-aff3083f10bff7a37eaa2b4e6bc5fb627ddd5f84.tar.xz linux-aff3083f10bff7a37eaa2b4e6bc5fb627ddd5f84.zip |
net/smc: Introduce tracepoints for tx and rx msg
This introduce two tracepoints for smc tx and rx msg to help us
diagnosis issues of data path. These two tracepoitns don't cover the
path of CORK or MSG_MORE in tx, just the top half of data path.
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_tx.c')
-rw-r--r-- | net/smc/smc_tx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/smc/smc_tx.c b/net/smc/smc_tx.c index 738a4a99c827..be241d53020f 100644 --- a/net/smc/smc_tx.c +++ b/net/smc/smc_tx.c @@ -28,6 +28,7 @@ #include "smc_ism.h" #include "smc_tx.h" #include "smc_stats.h" +#include "smc_tracepoint.h" #define SMC_TX_WORK_DELAY 0 #define SMC_TX_CORK_DELAY (HZ >> 2) /* 250 ms */ @@ -245,6 +246,8 @@ int smc_tx_sendmsg(struct smc_sock *smc, struct msghdr *msg, size_t len) SMC_TX_CORK_DELAY); else smc_tx_sndbuf_nonempty(conn); + + trace_smc_tx_sendmsg(smc, copylen); } /* while (msg_data_left(msg)) */ return send_done; |