Sys::Ebpf is a pure-perl library to read, modify and load eBPF programs and attach them to various hooks in the Linux kernel.In other words eBPF Loader for written in Perl.
Output from './Build test':
Hexadecimal number > 0xffffffff non-portable at t/00_ebpf_asm.t line 128.
t/00_ebpf_asm.t ................ ok
Can't locate _h2ph_pre.ph in @INC (did you run h2ph?) (@INC entries checked: lib /home/cpansand/.cpan/build/2024100413/Sys-Ebpf-0.03-0/blib/arch /home/cpansand/.cpan/build/2024100413/Sys-Ebpf-0.03-0/blib/lib /usr/perl5.40.0/lib/site_perl/5.40.0/aarch64-freebsd /usr/perl5.40.0/lib/site_perl/5.40.0 /usr/perl5.40.0/lib/5.40.0/aarch64-freebsd /usr/perl5.40.0/lib/5.40.0 .) at lib/Sys/Ebpf/Syscall/syscall.ph line 1.
Compilation failed in require at lib/Sys/Ebpf/Syscall.pm line 8.
Compilation failed in require at lib/Sys/Ebpf/Map.pm line 20.
BEGIN failed--compilation aborted at lib/Sys/Ebpf/Map.pm line 20.
Compilation failed in require at t/01_ebpf_create_map.t line 9.
BEGIN failed--compilation aborted at t/01_ebpf_create_map.t line 9.
t/01_ebpf_create_map.t .........
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
... etc ...
On some of my smokers the test suite fails: