add int type conversion for all vmlinux struct field int types.

This commit is contained in:
2025-11-05 18:01:41 +05:30
parent c5fdd3bce2
commit 2f4785b796
2 changed files with 39 additions and 8 deletions

View File

@ -1,5 +1,5 @@
from ctypes import c_int64
from pythonbpf import bpf, section, bpfglobal, compile
from pythonbpf import bpf, section, bpfglobal, compile, compile_to_ir
from vmlinux import struct_xdp_md
from vmlinux import XDP_PASS
import logging
@ -20,4 +20,5 @@ def LICENSE() -> str:
return "GPL"
compile_to_ir("i32_test_fail_2.py", "i32_test_fail_2.ll")
compile(logging.INFO)