selftests/net: add packetdrill
Subsystems (3)
cover selftests/net: add packetdrill
From: Willem de Bruijn <[email protected]>
Lay the groundwork to import into kselftests the over 150 packetdrill TCP/IP conformance tests on github.com/google/packetdrill.
1/2: add kselftest infra for TEST_PROGS that need an interpreter
2/2: add the specific packetdrill tests
Both can go through net-next, I imagine. But let me know if the core infra should go through linux-kselftest.
Willem de Bruijn (2):
selftests: support interpreted scripts with ksft_runner.sh selftests/net: integrate packetdrill with ksft
tools/testing/selftests/Makefile | 5 +- tools/testing/selftests/kselftest/runner.sh | 7 ++- .../selftests/net/packetdrill/Makefile | 9 +++ .../testing/selftests/net/packetdrill/config | 1 + .../selftests/net/packetdrill/defaults.sh | 63 +++++++++++++++++++ .../selftests/net/packetdrill/ksft_runner.sh | 40 ++++++++++++ .../net/packetdrill/tcp_inq_client.pkt | 51 +++++++++++++++ .../net/packetdrill/tcp_inq_server.pkt | 51 +++++++++++++++ .../tcp_md5_md5-only-on-client-ack.pkt | 28 +++++++++ 9 files changed, 251 insertions(+), 4 deletions(-) create mode 100644 tools/testing/selftests/net/packetdrill/Makefile create mode 100644 tools/testing/selftests/net/packetdrill/config create mode 100755 tools/testing/selftests/net/packetdrill/defaults.sh create mode 100755 tools/testing/selftests/net/packetdrill/ksft_runner.sh create mode 100644 tools/testing/selftests/net/packetdrill/tcp_inq_client.pkt create mode 100644 tools/testing/selftests/net/packetdrill/tcp_inq_server.pkt create mode 100644 tools/testing/selftests/net/packetdrill/tcp_md5_md5-only-on-client-ack.pkt
Signature · 1 line
2.46.0.469.g59c65b2a67-goog
PATCH 1/2 selftests: support interpreted scripts with ksft_runner.sh
From: Willem de Bruijn <[email protected]>
Support testcases that are themselves not executable, but need an interpreter to run them.
If a test file is not executable, but an executable file ksft_runner.sh exists in the TARGET dir, kselftest will run
./ksft_runner.sh ./$BASENAME_TEST
Packetdrill may add hundreds of packetdrill scripts for testing. These scripts must be passed to the packetdrill process.
Have kselftest run each test directly, as it already solves common runner requirements like parallel execution and isolation (netns). A previous RFC added a wrapper in between, which would have to reimplement such functionality.
--- tools/testing/selftests/kselftest/runner.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
tools/testing/selftests/kselftest/runner.sh +5 -2
@@ -111,8 +111,11 @@ run_one() stdbuf="/usr/bin/stdbuf --output=L " fi eval kselftest_cmd_args="\$${kselftest_cmd_args_ref:-}" - cmd="$stdbuf ./$BASENAME_TEST $kselftest_cmd_args" - if [ ! -x "$TEST" ]; then + if [ -x "$TEST" ]; then + cmd="$stdbuf ./$BASENAME_TEST $kselftest_cmd_args" + elif [ -x "./ksft_runner.sh" ]; then + cmd="$stdbuf ./ksft_runner.sh ./$BASENAME_TEST" + else echo "# Warning: file $TEST is not executable" if [ $(head -n 1 "$TEST" | cut -c -2) = "#!" ]
Signature · 1 line
2.46.0.469.g59c65b2a67-goog
PATCH 2/2 selftests/net: integrate packetdrill with ksft
In reply to Willem de BruijnFrom: Willem de Bruijn <[email protected]>
Lay the groundwork to import into kselftests the over 150 packetdrill TCP/IP conformance tests on github.com/google/packetdrill.
Florian recently added support for packetdrill tests in nf_conntrack, in commit a8a388c2aae49 ("selftests: netfilter: add packetdrill based conntrack tests").
This patch takes a slightly different approach. It relies on ksft_runner.sh to run every *.pkt file in the directory.
Any future imports of packetdrill tests should require no additional coding. Just add the *.pkt files.
Initially import only two features/directories from github. One with a single script, and one with two. This was the only reason to pick tcp/inq and tcp/md5.
The path replaces the directory hierarchy in github with a flat space of files: $(subst /,_,$(wildcard tcp/**/*.pkt)). This is the most straightforward option to integrate with kselftests. The Linked thread reviewed two ways to maintain the hierarchy: TEST_PROGS_RECURSE and PRESERVE_TEST_DIRS. But both introduce significant changes to kselftest infra and with that risk to existing tests.
Implementation notes:
- restore alphabetical order when adding the new directory to tools/testing/selftests/Makefile
- imported *.pkt files and support verbatim from the github project, except for
- update source ./defaults.sh path (to adjust for flat dir)
- add SPDX headers
- remove one author statement
- Acknowledgment: drop an e (checkpatch)
Tested:
make -C tools/testing/selftests \
TARGETS=net/packetdrill \
run_tests
make -C tools/testing/selftests \
TARGETS=net/packetdrill \
install INSTALL_PATH=$KSFT_INSTALL_PATH
# in virtme-ng
export KSELFTEST_PKT_INTERP=./packetdrill_ksft.sh
./run_kselftest.sh -c net/packetdrill
./run_kselftest.sh -t net/packetdrill:tcp_inq_client.pkt---
Changes:
- RFC -> v1
- replace custom runner with ksft_runner.sh (previous patch in series) and ktap_helpers.sh
- flatten the github tcp/**/*.pkt directory structure
- add config for MD5 dependency
- drop unused set_sysctls.py
--- tools/testing/selftests/Makefile | 5 +- .../selftests/net/packetdrill/Makefile | 9 +++ .../testing/selftests/net/packetdrill/config | 1 + .../selftests/net/packetdrill/defaults.sh | 63 +++++++++++++++++++ .../selftests/net/packetdrill/ksft_runner.sh | 41 ++++++++++++ .../net/packetdrill/tcp_inq_client.pkt | 51 +++++++++++++++ .../net/packetdrill/tcp_inq_server.pkt | 51 +++++++++++++++ .../tcp_md5_md5-only-on-client-ack.pkt | 28 +++++++++ 8 files changed, 247 insertions(+), 2 deletions(-) create mode 100644 tools/testing/selftests/net/packetdrill/Makefile create mode 100644 tools/testing/selftests/net/packetdrill/config create mode 100755 tools/testing/selftests/net/packetdrill/defaults.sh create mode 100755 tools/testing/selftests/net/packetdrill/ksft_runner.sh create mode 100644 tools/testing/selftests/net/packetdrill/tcp_inq_client.pkt create mode 100644 tools/testing/selftests/net/packetdrill/tcp_inq_server.pkt create mode 100644 tools/testing/selftests/net/packetdrill/tcp_md5_md5-only-on-client-ack.pkt
tools/testing/selftests/Makefile +3 -2
@@ -65,10 +65,11 @@ TARGETS += net/af_unix TARGETS += net/forwarding TARGETS += net/hsr TARGETS += net/mptcp -TARGETS += net/openvswitch -TARGETS += net/tcp_ao TARGETS += net/netfilter +TARGETS += net/openvswitch +TARGETS += net/packetdrill TARGETS += net/rds +TARGETS += net/tcp_ao TARGETS += nsfs TARGETS += perf_events TARGETS += pidfd
tools/testing/selftests/net/packetdrill/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0 + +TEST_INCLUDES := ksft_runner.sh \ + defaults.sh \ + ../../kselftest/ktap_helpers.sh + +TEST_PROGS := $(wildcard *.pkt) + +include ../../lib.mk
tools/testing/selftests/net/packetdrill/config new file +1 -0
@@ -0,0 +1 @@ +CONFIG_TCP_MD5SIG=y
tools/testing/selftests/net/packetdrill/defaults.sh new file +63 -0
63 lines not on this page · raw message
tools/testing/selftests/net/packetdrill/ksft_runner.sh new file +41 -0
41 lines not on this page · raw message
tools/testing/selftests/net/packetdrill/tcp_inq_client.pkt new file +51 -0
51 lines not on this page · raw message
tools/testing/selftests/net/packetdrill/tcp_inq_server.pkt new file +51 -0
51 lines not on this page · raw message
tools/testing/selftests/net/packetdrill/tcp_md5_md5-only-on-client-ack.pkt new file +28 -0
@@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0 +// Test what happens when client does not provide MD5 on SYN, +// but then does on the ACK that completes the three-way handshake. + +`./defaults.sh` + +// Establish a connection. + 0 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3 + +0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 + +0 bind(3, ..., ...) = 0 + +0 listen(3, 1) = 0 + + +0 < S 0:0(0) win 32792 <mss 1000,sackOK,nop,nop,nop,wscale 10> + +0 > S. 0:0(0) ack 1 <mss 1460,nop,nop,sackOK,nop,wscale 8> +// Ooh, weird: client provides MD5 option on the ACK: + +.01 < . 1:1(0) ack 1 win 514 <md5 000102030405060708090a0b0c0d0e0f,nop,nop> + +.01 < . 1:1(0) ack 1 win 514 <md5 000102030405060708090a0b0c0d0e0f,nop,nop> + +// The TCP listener refcount should be 2, but on buggy kernels it can be 0: + +0 `grep " 0A " /proc/net/tcp /proc/net/tcp6 | grep ":1F90"` + +// Now here comes the legit ACK: + +.01 < . 1:1(0) ack 1 win 514 + +// Make sure the connection is OK: + +0 accept(3, ..., ...) = 4 + + +.01 write(4, ..., 1000) = 1000
Signature · 1 line
2.46.0.469.g59c65b2a67-goog
Jakub Kicinski
maintainerRe: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
tools/testing/selftests/net/packetdrill/config line 1
Quoted 3 lines · On Wed, 4 Sep 2024 23:07:03 -0400 Willem de Bruijn wrote:
+++ b/tools/testing/selftests/net/packetdrill/config
tools/testing/selftests/net/packetdrill/config new file +1
-0@@ -0,0 +1 @@ +CONFIG_TCP_MD5SIG=y
Looks like this is not enough:
# 1..2
# open tun device: No such file or directory # not ok 1 ipv4 # open tun device: No such file or directory
https://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/1-tcp-inq-client-pkt/stdout
Resulting config in the build:
# CONFIG_TUN is not set
https://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/config
Keep in mind the "Important" note here:
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-build
I recommend using a fresh tree or mrproper for testing vng configs.
Feel free to post v2 without the 24h wait, it's a bit tricky to handle new targets in CI, sooner we merge this the less manual work for me..
Re: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
Quoted 20 lines · Jakub Kicinski
tools/testing/selftests/net/packetdrill/config line 1
Quoted 3 lines · On Wed, 4 Sep 2024 23:07:03 -0400 Willem de Bruijn wrote:
+++ b/tools/testing/selftests/net/packetdrill/config
tools/testing/selftests/net/packetdrill/config new file +1
-0@@ -0,0 +1 @@ +CONFIG_TCP_MD5SIG=yLooks like this is not enough:
# 1..2
# open tun device: No such file or directory # not ok 1 ipv4 # open tun device: No such file or directoryhttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/1-tcp-inq-client-pkt/stdout
Resulting config in the build:
#
CONFIG_TUNis not sethttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/config
Quoted 8 lines
Keep in mind the "Important" note here:
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-build
I recommend using a fresh tree or mrproper for testing vng configs.
Feel free to post v2 without the 24h wait, it's a bit tricky to handle new targets in CI, sooner we merge this the less manual work for me..
Oops sorry. Thanks for the pointer.
Sent a v2 with CONFIG_TUN and a few other CONFIGS from reviewing the existing configs and defaults.sh. The above steps work for me now.
Re: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
Quoted 27 lines · Willem de Bruijn
Quoted 26 lines · Jakub Kicinski
tools/testing/selftests/net/packetdrill/config line 1
Quoted 3 lines · On Wed, 4 Sep 2024 23:07:03 -0400 Willem de Bruijn wrote:
+++ b/tools/testing/selftests/net/packetdrill/config
tools/testing/selftests/net/packetdrill/config new file +1
-0@@ -0,0 +1 @@ +CONFIG_TCP_MD5SIG=yLooks like this is not enough:
# 1..2
# open tun device: No such file or directory # not ok 1 ipv4 # open tun device: No such file or directoryhttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/1-tcp-inq-client-pkt/stdout
Resulting config in the build:
#
CONFIG_TUNis not sethttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/config
Keep in mind the "Important" note here:
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-build
I recommend using a fresh tree or mrproper for testing vng configs.
Quoted 7 lines
Quoted 2 lines
Feel free to post v2 without the 24h wait, it's a bit tricky to handle new targets in CI, sooner we merge this the less manual work for me..
Oops sorry. Thanks for the pointer.
Sent a v2 with
CONFIG_TUNand a few other CONFIGS from reviewing the existing configs anddefaults.sh. The above steps work for me now.
Packetdrill scripts are sensitive to timing.
On the dbg build, I just observe a flaky test.
The tool takes --tolerance_usecs and --tolerance_percent arguments. I may have to update ksft_runner.sh to increase one if a dbg build is detected.
Let me know if I should respin now. Else I can also follow-up.
Need to figure out how best to detect debug builds. It is not in uname, and no proc/config.gz. Existence of /sys/kernel/debug/kmemleak is a proxy for current kernel/configs/debug.config, if a bit crude.
Another config affecting timing may be CONFIG_HZ. I did not observe issues with these specific scripts with CONFIG_HZ=250. It may have to be tackled eventually. Or CONFIG_HZ=1000 hardcoded in config.
Re: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
Quoted 43 lines · Willem de Bruijn
Quoted 27 lines · Willem de Bruijn
Quoted 26 lines · Jakub Kicinski
tools/testing/selftests/net/packetdrill/config line 1
Quoted 3 lines · On Wed, 4 Sep 2024 23:07:03 -0400 Willem de Bruijn wrote:
+++ b/tools/testing/selftests/net/packetdrill/config
tools/testing/selftests/net/packetdrill/config new file +1
-0@@ -0,0 +1 @@ +CONFIG_TCP_MD5SIG=yLooks like this is not enough:
# 1..2
# open tun device: No such file or directory # not ok 1 ipv4 # open tun device: No such file or directoryhttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/1-tcp-inq-client-pkt/stdout
Resulting config in the build:
#
CONFIG_TUNis not sethttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/config
Keep in mind the "Important" note here:
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-build
I recommend using a fresh tree or mrproper for testing vng configs.
Quoted 7 lines
Quoted 2 lines
Feel free to post v2 without the 24h wait, it's a bit tricky to handle new targets in CI, sooner we merge this the less manual work for me..
Oops sorry. Thanks for the pointer.
Sent a v2 with
CONFIG_TUNand a few other CONFIGS from reviewing the existing configs anddefaults.sh. The above steps work for me now.Packetdrill scripts are sensitive to timing.
On the dbg build, I just observe a flaky test.The tool takes --tolerance_usecs and --tolerance_percent arguments. I may have to update
ksft_runner.shto increase one if a dbg build is detected.
Quoted 5 lines
Let me know if I should respin now. Else I can also follow-up.
Need to figure out how best to detect debug builds. It is not in uname, and no proc/config.gz. Existence of
/sys/kernel/debug/kmemleakis a proxy for currentkernel/configs/debug.config, if a bit crude.
Should have kept on reading. Will use KSFT_MACHINE_SLOW:
+declare -a optargs
+if [[ "${KSFT_MACHINE_SLOW}" == "yes" ]]; then
+ optargs+=('--tolerance_usecs=10000')
+fi
+
ktap_print_header
ktap_set_plan 2
-packetdrill ${ipv4_args[@]} $(basename $script) > /dev/null \
+packetdrill ${ipv4_args[@]} ${optargs[@]} $(basename $script) > /dev/null \
&& ktap_test_pass "ipv4" || ktap_test_fail "ipv4"
-packetdrill ${ipv6_args[@]} $(basename $script) > /dev/null \
+packetdrill ${ipv6_args[@]} ${optargs[@]} $(basename $script) > /dev/null \
&& ktap_test_pass "ipv6" || ktap_test_fail "ipv6"Quoted 3 lines
Another config affecting timing may be
CONFIG_HZ. I did not observe issues with these specific scripts withCONFIG_HZ=250. It may have to be tackled eventually. OrCONFIG_HZ=1000hardcoded in config.
I will just add the CONFIG for now.
Jakub Kicinski
maintainerRe: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
Quoted 31 lines · On Thu, 05 Sep 2024 21:31:55 -0400 Willem de Bruijn wrote:
Quoted 7 lines
Packetdrill scripts are sensitive to timing.
On the dbg build, I just observe a flaky test.The tool takes --tolerance_usecs and --tolerance_percent arguments. I may have to update
ksft_runner.shto increase one if a dbg build is detected.Quoted 5 lines
Let me know if I should respin now. Else I can also follow-up.
Need to figure out how best to detect debug builds. It is not in uname, and no proc/config.gz. Existence of
/sys/kernel/debug/kmemleakis a proxy for currentkernel/configs/debug.config, if a bit crude.Should have kept on reading. Will use
KSFT_MACHINE_SLOW:(quoted diff) +7
-2+declare -a optargs +if [[ "${KSFT_MACHINE_SLOW}" == "yes" ]]; then + optargs+=('--tolerance_usecs=10000') +fi + ktap_print_header ktap_set_plan 2 -packetdrill ${ipv4_args[@]} $(basename $script) > /dev/null \ +packetdrill ${ipv4_args[@]} ${optargs[@]} $(basename $script) > /dev/null \ && ktap_test_pass "ipv4" || ktap_test_fail "ipv4" -packetdrill ${ipv6_args[@]} $(basename $script) > /dev/null \ +packetdrill ${ipv6_args[@]} ${optargs[@]} $(basename $script) > /dev/null \ && ktap_test_pass "ipv6" || ktap_test_fail "ipv6"
Quoted 5 lines
Quoted 3 lines
Another config affecting timing may be
CONFIG_HZ. I did not observe issues with these specific scripts withCONFIG_HZ=250. It may have to be tackled eventually. OrCONFIG_HZ=1000hardcoded in config.I will just add the CONFIG for now.
Not sure I follow the HZ idea, lowering the frequency helps stability?
We can see how well v2 does overnight, so far it's green:
https://netdev.bots.linux.dev/contest.html?executor=vmksft-packetdrill-dbg
(the net-next-2024-09-05--* branches had v1).
FWIW status page lists two sets of packetdrill runners, probably because I 'reused' an old team-driver runner instead of creating a new one. It should straighten itself out by tomorrow.
Re: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
Quoted 36 lines · Jakub Kicinski
Quoted 35 lines · On Thu, 05 Sep 2024 21:31:55 -0400 Willem de Bruijn wrote:
Quoted 7 lines
Packetdrill scripts are sensitive to timing.
On the dbg build, I just observe a flaky test.The tool takes --tolerance_usecs and --tolerance_percent arguments. I may have to update
ksft_runner.shto increase one if a dbg build is detected.Quoted 5 lines
Let me know if I should respin now. Else I can also follow-up.
Need to figure out how best to detect debug builds. It is not in uname, and no proc/config.gz. Existence of
/sys/kernel/debug/kmemleakis a proxy for currentkernel/configs/debug.config, if a bit crude.Should have kept on reading. Will use
KSFT_MACHINE_SLOW:(quoted diff) +7
-2+declare -a optargs +if [[ "${KSFT_MACHINE_SLOW}" == "yes" ]]; then + optargs+=('--tolerance_usecs=10000') +fi + ktap_print_header ktap_set_plan 2 -packetdrill ${ipv4_args[@]} $(basename $script) > /dev/null \ +packetdrill ${ipv4_args[@]} ${optargs[@]} $(basename $script) > /dev/null \ && ktap_test_pass "ipv4" || ktap_test_fail "ipv4" -packetdrill ${ipv6_args[@]} $(basename $script) > /dev/null \ +packetdrill ${ipv6_args[@]} ${optargs[@]} $(basename $script) > /dev/null \ && ktap_test_pass "ipv6" || ktap_test_fail "ipv6"Quoted 5 lines
Another config affecting timing may be
CONFIG_HZ. I did not observe issues with these specific scripts withCONFIG_HZ=250. It may have to be tackled eventually. OrCONFIG_HZ=1000hardcoded in config.
Quoted 7 lines
Quoted 1 line
I will just add the CONFIG for now.
Not sure I follow the HZ idea, lowering the frequency helps stability?
We can see how well v2 does overnight, so far it's green:
https://netdev.bots.linux.dev/contest.html?executor=vmksft-packetdrill-dbg
(the net-next-2024-09-05--* branches had v1).
Great!
I saw one failure in manual runs and was unable to reproduce it with a few more iterations. Let's see how it goes.
We do adjust these internally, to the same value for KASAN.
Quoted 3 lines
FWIW status page lists two sets of packetdrill runners, probably because I 'reused' an old team-driver runner instead of creating a new one. It should straighten itself out by tomorrow.
Paolo Abeni
maintainerRe: [PATCH net-next 2/2] selftests/net: integrate packetdrill with ksft
In reply to Willem de BruijnQuoted 52 lines · Willem de Bruijn
Quoted 43 lines · Willem de Bruijn
Quoted 27 lines · Willem de Bruijn
Quoted 26 lines · Jakub Kicinski
tools/testing/selftests/net/packetdrill/config line 1
Quoted 3 lines · On Wed, 4 Sep 2024 23:07:03 -0400 Willem de Bruijn wrote:
+++ b/tools/testing/selftests/net/packetdrill/config
tools/testing/selftests/net/packetdrill/config new file +1
-0@@ -0,0 +1 @@ +CONFIG_TCP_MD5SIG=yLooks like this is not enough:
# 1..2
# open tun device: No such file or directory # not ok 1 ipv4 # open tun device: No such file or directoryhttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/1-tcp-inq-client-pkt/stdout
Resulting config in the build:
#
CONFIG_TUNis not sethttps://netdev-3.bots.linux.dev/vmksft-packetdrill/results/759141/config
Keep in mind the "Important" note here:
https://github.com/linux-netdev/nipa/wiki/How-to-run-netdev-selftests-CI-style#how-to-build
I recommend using a fresh tree or mrproper for testing vng configs.
Quoted 7 lines
Quoted 2 lines
Feel free to post v2 without the 24h wait, it's a bit tricky to handle new targets in CI, sooner we merge this the less manual work for me..
Oops sorry. Thanks for the pointer.
Sent a v2 with
CONFIG_TUNand a few other CONFIGS from reviewing the existing configs anddefaults.sh. The above steps work for me now.Packetdrill scripts are sensitive to timing.
On the dbg build, I just observe a flaky test.The tool takes --tolerance_usecs and --tolerance_percent arguments. I may have to update
ksft_runner.shto increase one if a dbg build is detected.Quoted 5 lines
Let me know if I should respin now. Else I can also follow-up.
Need to figure out how best to detect debug builds. It is not in uname, and no proc/config.gz. Existence of
/sys/kernel/debug/kmemleakis a proxy for currentkernel/configs/debug.config, if a bit crude.Should have kept on reading. Will use
KSFT_MACHINE_SLOW:
Review
Quoted 7 lines
(quoted diff) +5
-0+declare -a optargs +if [[ "${KSFT_MACHINE_SLOW}" == "yes" ]]; then + optargs+=('--tolerance_usecs=10000') +fi + ktap_print_header ktap_set_plan 2
I'm sorry for the late reply. FWIW, for mptcp pktdrill tests on slow machines (VMs over cloud) we use tolerance=100000 - put we have to be careful WRT fast retransmissions and timing in the script themself.
Cheers,
Paolo