Files
python-bpf/tests/failing_tests/license.py
2025-09-30 23:50:36 +05:30

12 lines
255 B
Python

from pythonbpf import compile, bpf, section, bpfglobal
from ctypes import c_void_p, c_int64
# FAILS WHEN THERE IS NO LICENSE. which is wrong.
@bpf
@section("sometag1")
def sometag(ctx: c_void_p) -> c_int64:
a = 1 + 2
return c_int64(0)
compile()