Skip to content

selftests: mptcp: get counters from nstat history

Matthieu Baerts (NGI0) mptcp 1 version In review

Get series with b4
b4 am [email protected] change-id 20251101-slft-nstat-cache-db4d2962c5ce

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5selftests: mptcp: lib: introduce 'nstat_{init,get}'tools/testing/selftests/net/mptcp/mptcp_connect.sh tools/testing/selftests/net/mptcp/mptcp_join.sh tools/testing/selftests/net/mptcp/mptcp_lib.sh +2 more+30 -320 replies
2/5selftests: mptcp: lib: remove stats files argstools/testing/selftests/net/mptcp/mptcp_connect.sh tools/testing/selftests/net/mptcp/mptcp_join.sh tools/testing/selftests/net/mptcp/mptcp_lib.sh +2 more+14 -130 replies
3/5selftests: mptcp: lib: stats: remove nstat rate columnstools/testing/selftests/net/mptcp/mptcp_lib.sh+2 -20 replies
4/5selftests: mptcp: join: dump stats from historytools/testing/selftests/net/mptcp/mptcp_join.sh tools/testing/selftests/net/mptcp/mptcp_lib.sh+17 -50 replies
5/5selftests: mptcp: lib: get counters from nstat historytools/testing/selftests/net/mptcp/mptcp_connect.sh tools/testing/selftests/net/mptcp/mptcp_lib.sh+46 -550 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH mptcp-next 0/5] selftests: mptcp: get counters from nstat history

When debugging MPTCP Join selftest with a "debug" kernel config, I noticed checking all the different counters was sometimes slower than the test itself. Fetching the counters once, then reading them from the history file that was already there seems to save more than 5 minutes when running the whole MPTCP Join selftest.

- Patch 1: move code to mptcp_lib.sh to prepare the new features.

- Patch 2: simplify mptcp_lib_pr_err_stats helper use.

- Patch 3: remove unused last column from nstat output.

- Patch 4: improve stats dump in mptcp_join.sh.

- Patch 5: get counters from nstat history.

Based-on: <[email protected]>

---
Matthieu Baerts (NGI0) (5):
selftests: mptcp: lib: introduce 'nstat_{init,get}'
selftests: mptcp: lib: remove stats files args
selftests: mptcp: lib: stats: remove nstat rate columns
selftests: mptcp: join: dump stats from history
selftests: mptcp: lib: get counters from nstat history

 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 100 ++++++++-------------
 tools/testing/selftests/net/mptcp/mptcp_join.sh    |  31 ++++---
 tools/testing/selftests/net/mptcp/mptcp_lib.sh     |  45 ++++++++--
 tools/testing/selftests/net/mptcp/mptcp_sockopt.sh |  15 ++--
 tools/testing/selftests/net/mptcp/simult_flows.sh  |  15 ++--
 5 files changed, 104 insertions(+), 102 deletions(-)

---
base-commit: 1b41f9e417a8db60baf3686b81346131d2d81f30
change-id: 20251101-slft-nstat-cache-db4d2962c5ce

Best regards,

Signature · 1 line
Matthieu Baerts (NGI0) <[email protected]>