bpftrace: remove RLIMIT_NOFILE workaround from nixos test

bpftrace 0.24 required more fd than previously for syscalls,
as we found out the hard way with test breaking.
Upstream rolled in an improvement setting ulimit automatically
and removing the need to adjust the test.
This commit is contained in:
Dominique Martinet
2025-10-14 21:47:22 +09:00
committed by illustris
parent 724c79f389
commit 77d48e8943

View File

@@ -21,12 +21,7 @@
# simple BEGIN probe (user probe on bpftrace itself)
print(machine.succeed("bpftrace -e 'BEGIN { print(\"ok\\n\"); exit(); }'"))
# tracepoint
# workaround: this needs more than the default of 1k FD to attach ~350 probes, bump fd limit
# see https://github.com/bpftrace/bpftrace/issues/2110
print(machine.succeed("""
ulimit -n 2048
bpftrace -e 'tracepoint:syscalls:sys_enter_* { print(probe); exit() }'
"""))
print(machine.succeed("bpftrace -e 'tracepoint:syscalls:sys_enter_* { print(probe); exit() }'"))
# kprobe
print(machine.succeed("bpftrace -e 'kprobe:schedule { print(probe); exit() }'"))
# BTF