Skip to contentSkip to conversation

selftests: net: py: give bpftrace more time to start

PATCH Applied Jakub Kicinski 5 participants 5 messages Mar 15 – Mar 17

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 selftests: net: py: give bpftrace more time to start

After commit under Fixes debug runners in the CI hit the following:

# subprocess.TimeoutExpired: Command '['bpftrace', '-f', 'json', '-q', '-e', 'kprobe:netpoll_poll_dev { @hits = count(); } interval:s:10 { exit(); }']' timed out after 15 seconds # # Exception| net.lib.py.ksft.KsftFailEx: bpftrace failed to run!?: {}

in netpoll_basic.py >10% of the time. Let's give bpftool more time to start, it can take a while on a debug kernel.

Fixes 82562972b854 ("selftests: net: pass bpftrace timeout to cmd()")

---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 tools/testing/selftests/net/lib/py/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/lib/py/utils.py +1 -1
index 17adc2b67ee0..6c44a3d2bbf7 100644
@@ -258,7 +258,7 @@ GLOBAL_DEFER_ARMED = False
         cmd_arr += ['-f', 'json', '-q']
     if timeout:
         expr += ' interval:s:' + str(timeout) + ' { exit(); }'
-        timeout += 5
+        timeout += 20
     cmd_arr += ['-e', expr]
     cmd_obj = cmd(cmd_arr, ns=ns, host=host, shell=False, timeout=timeout)
     if json:
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Jakub Kicinski

After commit under Fixes debug runners in the CI hit the following:

# subprocess.TimeoutExpired: Command '['bpftrace', '-f', 'json', '-q', '-e', 'kprobe:netpoll_poll_dev { @hits = count(); } interval:s:10 { exit(); }']' timed out after 15 seconds # # Exception| net.lib.py.ksft.KsftFailEx: bpftrace failed to run!?: {}

in netpoll_basic.py >10% of the time. Let's give bpftool more time to start, it can take a while on a debug kernel.

Fixes 82562972b854 ("selftests: net: pass bpftrace timeout to cmd()")
Reviewed-by on v1 1/1
#2 lore raw
In reply to Jakub Kicinski
Quoted 10 lines · Jakub Kicinski

After commit under Fixes debug runners in the CI hit the following:

# subprocess.TimeoutExpired: Command '['bpftrace', '-f', 'json', '-q', '-e', 'kprobe:netpoll_poll_dev { @hits = count(); } interval:s:10 { exit(); }']' timed out after 15 seconds # # Exception| net.lib.py.ksft.KsftFailEx: bpftrace failed to run!?: {}

in netpoll_basic.py >10% of the time. Let's give bpftool more time to start, it can take a while on a debug kernel.

Fixes 82562972b854 ("selftests: net: pass bpftrace timeout to cmd()")
Reviewed-by on v1 1/1
#3 lore raw
In reply to Jakub Kicinski
Quoted 10 lines · Jakub Kicinski

After commit under Fixes debug runners in the CI hit the following:

# subprocess.TimeoutExpired: Command '['bpftrace', '-f', 'json', '-q', '-e', 'kprobe:netpoll_poll_dev { @hits = count(); } interval:s:10 { exit(); }']' timed out after 15 seconds # # Exception| net.lib.py.ksft.KsftFailEx: bpftrace failed to run!?: {}

in netpoll_basic.py >10% of the time. Let's give bpftool more time to start, it can take a while on a debug kernel.

Fixes 82562972b854 ("selftests: net: pass bpftrace timeout to cmd()")
#4 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Sun, 15 Mar 2026 09:00:38 -0700 you wrote:

After commit under Fixes debug runners in the CI hit the following:

# subprocess.TimeoutExpired: Command '['bpftrace', '-f', 'json', '-q', '-e', 'kprobe:netpoll_poll_dev { @hits = count(); } interval:s:10 { exit(); }']' timed out after 15 seconds # # Exception| net.lib.py.ksft.KsftFailEx: bpftrace failed to run!?: {}

in netpoll_basic.py >10% of the time. Let's give bpftool more time to start, it can take a while on a debug kernel.

[...]

Here is the summary with links:
- [net-next] selftests: net: py: give bpftrace more time to start

    https://git.kernel.org/netdev/net-next/c/6a33a706265d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html