Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mptcp: add tracepoint in mptcp_sendmsg_frag

The tracepoint in get_mapping_status() only dumped the incoming mpext
fields. This patch added a new tracepoint in mptcp_sendmsg_frag() to dump
the outgoing mpext too.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Geliang Tang and committed by
Jakub Kicinski
0eb4e7ee d307eab5

+5
+4
include/trace/events/mptcp.h
··· 115 115 __entry->csum_reqd) 116 116 ); 117 117 118 + DEFINE_EVENT(mptcp_dump_mpext, mptcp_sendmsg_frag, 119 + TP_PROTO(struct mptcp_ext *mpext), 120 + TP_ARGS(mpext)); 121 + 118 122 DEFINE_EVENT(mptcp_dump_mpext, get_mapping_status, 119 123 TP_PROTO(struct mptcp_ext *mpext), 120 124 TP_ARGS(mpext));
+1
net/mptcp/protocol.c
··· 1356 1356 out: 1357 1357 if (READ_ONCE(msk->csum_enabled)) 1358 1358 mptcp_update_data_checksum(skb, copy); 1359 + trace_mptcp_sendmsg_frag(mpext); 1359 1360 mptcp_subflow_ctx(ssk)->rel_write_seq += copy; 1360 1361 return copy; 1361 1362 }