dump infinite_map in trace event
Subsystems (3)
cover dump infinite_map in trace event
Small patches for dumping newly added infinite_map in trace event.
Geliang Tang (2):
mptcp: dump infinite_map field in mptcp_dump_mpext
mptcp: add tracepoint in mptcp_sendmsg_frag
include/trace/events/mptcp.h | 10 ++++++++-- net/mptcp/protocol.c | 1 + 2 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 mptcp: dump infinite_map field in mptcp_dump_mpext
In trace event class mptcp_dump_mpext, dump the newly added infinite_map field of struct mptcp_dump_mpext too.
--- include/trace/events/mptcp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
include/trace/events/mptcp.h +4 -2
@@ -84,6 +84,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, __field(u8, reset_transient) __field(u8, reset_reason) __field(u8, csum_reqd) +__field (u8, infinite_map) ), TP_fast_assign(
@@ -102,9 +103,10 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, __entry->reset_transient = mpext->reset_transient; __entry->reset_reason = mpext->reset_reason; __entry->csum_reqd = mpext->csum_reqd; + __entry->infinite_map = mpext->infinite_map; ), - TP_printk("data_ack=%llu data_seq=%llu subflow_seq=%u data_len=%u csum=%x use_map=%u dsn64=%u data_fin=%u use_ack=%u ack64=%u mpc_map=%u frozen=%u reset_transient=%u reset_reason=%u csum_reqd=%u", + TP_printk("data_ack=%llu data_seq=%llu subflow_seq=%u data_len=%u csum=%x use_map=%u dsn64=%u data_fin=%u use_ack=%u ack64=%u mpc_map=%u frozen=%u reset_transient=%u reset_reason=%u csum_reqd=%u infinite_map=%u", __entry->data_ack, __entry->data_seq, __entry->subflow_seq, __entry->data_len, __entry->csum, __entry->use_map,
@@ -112,7 +114,7 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, __entry->use_ack, __entry->ack64, __entry->mpc_map, __entry->frozen, __entry->reset_transient, __entry->reset_reason, - __entry->csum_reqd) + __entry->csum_reqd, __entry->infinite_map) ); DEFINE_EVENT(mptcp_dump_mpext, get_mapping_status,
Signature · 1 line
2.34.1
PATCH 2/2 mptcp: add tracepoint in mptcp_sendmsg_frag
In reply to Geliang TangThe 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.
--- include/trace/events/mptcp.h | 4 ++++ net/mptcp/protocol.c | 1 + 2 files changed, 5 insertions(+)
include/trace/events/mptcp.h +4 -0
@@ -117,6 +117,10 @@ DECLARE_EVENT_CLASS(mptcp_dump_mpext, __entry->csum_reqd, __entry->infinite_map) ); +DEFINE_EVENT (mptcp_dump_mpext, mptcp_sendmsg_frag, + TP_PROTO(struct mptcp_ext *mpext), +TP_ARGS (mpext)); +DEFINE_EVENT (mptcp_dump_mpext, get_mapping_status, TP_PROTO(struct mptcp_ext *mpext),TP_ARGS (mpext));
net/mptcp/protocol.c +1 -0
@@ -1371,6 +1371,7 @@ static int mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk,mptcp_update_data_checksum (skb, copy);if (mptcp_subflow_ctx (ssk)->send_infinite_map)mptcp_update_infinite_map (msk, ssk, mpext); +trace_mptcp_sendmsg_frag (mpext);mptcp_subflow_ctx (ssk)->rel_write_seq += copy;return copy; }
Signature · 1 line
2.34.1
Quoted 10 lines · Geliang Tang
Small patches for dumping newly added
infinite_mapin trace event.Geliang Tang (2):
mptcp: dumpinfinite_mapfield inmptcp_dump_mpext
mptcp: add tracepoint inmptcp_sendmsg_frag
include/trace/events/mptcp.h| 10 ++++++++--net/mptcp/protocol.c| 1 +2 files changed, 9 insertions(+), 2 deletions(-)
Thanks Geliang, I tried out the trace events and all worked as expected for both mptcp_sendmsg_frag and get_mapping_status events with infinite_map output.
--
Mat Martineau
Intel
Hi Geliang, Mat,
Quoted 5 lines · Geliang Tang
Small patches for dumping newly added
infinite_mapin trace event.Geliang Tang (2):
mptcp: dumpinfinite_mapfield inmptcp_dump_mpext
mptcp: add tracepoint inmptcp_sendmsg_frag
Thank you for the patches and the reviews!
Just applied in our tree -- feat. for net-next, just after your infinite mapping series as the first patch is linked to that -- with Mat's RvB tag:
- c1def824105b: mptcp: dump infinite_map field in mptcp_dump_mpext
- d40888c52c52: mptcp: add tracepoint in mptcp_sendmsg_frag
- Results: 49fef9d3e44a..19d141cf146b
Builds and tests are now in progress:
https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20220215T100005
https://github.com/multipath-tcp/mptcp_net-next/actions/workflows/build-validation.yml?query=branch:export
Cheers,
Matt
Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions www.tessares.net