From de19c8fc9008b4d9cd05abde646097e53ad483c1 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Sat, 18 Oct 2025 22:15:58 +0530 Subject: [PATCH] rename passing test --- .../vmlinux/{xdp_pass.py => simple_struct_test.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename tests/passing_tests/vmlinux/{xdp_pass.py => simple_struct_test.py} (78%) diff --git a/tests/passing_tests/vmlinux/xdp_pass.py b/tests/passing_tests/vmlinux/simple_struct_test.py similarity index 78% rename from tests/passing_tests/vmlinux/xdp_pass.py rename to tests/passing_tests/vmlinux/simple_struct_test.py index 6211b05..99fc7a1 100644 --- a/tests/passing_tests/vmlinux/xdp_pass.py +++ b/tests/passing_tests/vmlinux/simple_struct_test.py @@ -6,9 +6,9 @@ from ctypes import c_int64 # Instructions to how to run this program # 1. Install PythonBPF: pip install pythonbpf -# 2. Run the program: python examples/xdp_pass.py -# 3. Run the program with sudo: sudo tools/check.sh run examples/xdp_pass.o -# 4. Attach object file to any network device with something like ./check.sh xdp examples/xdp_pass.o tailscale0 +# 2. Run the program: python examples/simple_struct_test.py +# 3. Run the program with sudo: sudo tools/check.sh run examples/simple_struct_test.o +# 4. Attach object file to any network device with something like ./check.sh run examples/simple_struct_test.o tailscale0 # 5. send traffic through the device and observe effects @bpf @section("tracepoint/syscalls/sys_enter_execve") @@ -23,5 +23,5 @@ def LICENSE() -> str: return "GPL" -compile_to_ir("xdp_pass.py", "xdp_pass.ll") +compile_to_ir("simple_struct_test.py", "simple_struct_test.ll") compile()