[PATCH 1/1] contrib: add vmtest-tool to test BPF programs

2025-06-18 Thread Piyush Raj
vmtest-tool/uv.lock: New file. * vmtest-tool/vm.py: New file. Signed-off-by: Piyush Raj --- contrib/vmtest-tool/.gitignore | 23 ++ contrib/vmtest-tool/.pre-commit-config.yaml | 32 ++ contrib/vmtest-tool/.python-version | 1 + contrib/vmtest-tool/README

[PATCH 0/1] contrib: add vmtest-tool to test BPF programs

2025-06-18 Thread Piyush Raj
additional architectures will be added soon. - When testing BPF programs with --bpf-src or --bpf-obj, only the host's root directory can be used as the VM root filesystem. This will also be improved in future updates. Thank you, Piyush Raj Piyush Raj (1): contrib: add vmtest-tool to tes

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-16 Thread Piyush Raj
On 16/07/25 00:55, Jose E. Marchesi wrote: Hi Jose, On 15/07/25 22:55, Jose E. Marchesi wrote: Hi Piyush. This form of the script looks generally good to me. May be a good time to move to the second stage of the project, which if I am not mistaken consists in creating some dejagnu infrastructu

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-16 Thread Piyush Raj
On 15/07/25 23:03, David Faust wrote: +DEVELOPMENT +=== + +Development dependencies are specified in `pyproject.toml`, which can be used +with any suitable Python virtual environment manager. + +To run the test suite: + +python3 -m pytest Can the tests be run without a pyproject.to

[RFC][PATCH 0/1] testsuite: add BPF target board for execution testing

2025-07-17 Thread Piyush Raj
ires manually specifying it each time. This draft board currently works with the tests in gcc/testsuite/gcc.target/bpf/bpf.exp. Are there any other test directories it should support? Also, are there specific DejaGnu directives you expect this board to support? I'll add support for any t

[RFC][PATCH 1/1] testsuite: add BPF target board for execution testing

2025-07-17 Thread Piyush Raj
This patch adds new DejaGnu target board for BPF that enables execution testing of BPF programs using the `bpf-vmtest-tool` script in the contrib directory. Signed-off-by: Piyush Raj --- gcc/Makefile.in | 1 + gcc/testsuite/boards/bpf.exp | 63

Re: [PATCH 1/1] contrib: add vmtest-tool to test BPF programs

2025-07-03 Thread Piyush Raj
On 02/07/25 21:44, Jose E. Marchesi wrote: One can also pass a precompiled BPF object with the desired optimization options to the script to check it with the verifier. Yes, but AFAIK building objects that can be actually loaded in the kernel and verified requires in practice including kernel h

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-10 Thread Piyush Raj
Hi David, On 09/07/25 03:33, David Faust wrote: diff --git a/contrib/bpf-vmtest-tool/.gitignore b/contrib/bpf-vmtest-tool/.gitignore new file mode 100644 index 000..723dfe1d0f4 --- /dev/null +++ b/contrib/bpf-vmtest-tool/.gitignore @@ -0,0 +1,23 @@ +.gitignore_local +.python-version +#

[PATCH v2 0/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-03 Thread Piyush Raj
S and other environment flags (see README) - Added "bpf" directory prefix - Removed dependency on the uv binary and uv-specific files - Fixed typo in README Thank you, Piyush Raj Piyush Raj (1): contrib: add bpf-vmtest-tool to test BPF programs contrib/bpf-vmtest-tool/.gitigno

[PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-03 Thread Piyush Raj
/pyproject.toml: New file. * bpf-vmtest-tool/tests/test_cli.py: New file. * bpf-vmtest-tool/utils.py: New file. * bpf-vmtest-tool/vm.py: New file. Signed-off-by: Piyush Raj --- contrib/bpf-vmtest-tool/.gitignore| 23 +++ contrib/bpf-vmtest-tool/README|

Re: [PATCH 1/1] contrib: add vmtest-tool to test BPF programs

2025-07-02 Thread Piyush Raj
Hi Jose, Apologies for the late reply, I haven't been feeling well for the past few days. > This patch adds the vmtest-tool subdirectory under contrib which tests > BPF programs under a live kernel using a QEMU VM. It automatically > builds the specified kernel version with eBPF support enabled

Re: [PATCH v2 1/1] contrib: add bpf-vmtest-tool to test BPF programs

2025-07-15 Thread Piyush Raj
Hi Jose, On 15/07/25 22:55, Jose E. Marchesi wrote: Hi Piyush. This form of the script looks generally good to me. May be a good time to move to the second stage of the project, which if I am not mistaken consists in creating some dejagnu infrastructure so we can get testsuites running the scr

Re: [RFC][PATCH 0/1] testsuite: add BPF target board for execution testing

2025-07-29 Thread Piyush Raj
Hi, Just following up on this patch. Would appreciate any feedback or suggestions on the implementation approach. Thanks again! Best, Piyush On 17/07/25 17:43, Piyush Raj wrote: Hi, This patch is an attempt to integrate the bpf-vmtest-tool with DejaGnu. Instead of modifying gcc-dg specific