add base for ir gen

This commit is contained in:
2025-10-15 02:00:23 +05:30
parent d3f0e3b2ef
commit 11e8e72188
3 changed files with 43 additions and 3 deletions

View File

@ -1,9 +1,11 @@
from pythonbpf import bpf, map, section, bpfglobal, compile_to_ir
from pythonbpf.maps import HashMap
from pythonbpf.helper import XDP_PASS
# from vmlinux import struct_request
from vmlinux import struct_trace_event_raw_sys_enter
from vmlinux import struct_xdp_md
from vmlinux import struct_trace_event_raw_sys_enter # noqa: F401
from vmlinux import struct_ring_buffer_per_cpu # noqa: F401
# from vmlinux import struct_trace_event_raw_sys_enter # noqa: F401
# from vmlinux import struct_ring_buffer_per_cpu # noqa: F401
from ctypes import c_int64