support most bitfields

This commit is contained in:
2025-10-16 04:12:09 +05:30
parent 0f5c1fa752
commit f21837aefe
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,6 @@ from ..dependency_handler import DependencyHandler
from .debug_info_gen import debug_info_generation
from ..dependency_node import DependencyNode
import llvmlite.ir as ir
from typing import Optional
logger = logging.getLogger(__name__)
@ -132,7 +131,7 @@ class IRGenerator:
field_index: int,
is_indexed: bool = False,
index: int = 0,
containing_type_size: Optional[int] = None,
containing_type_size: int = 0,
) -> str:
if is_indexed:
name = (

View File

@ -3,6 +3,7 @@ from pythonbpf.maps import HashMap
from pythonbpf.helper import XDP_PASS
from vmlinux import TASK_COMM_LEN # noqa: F401
from vmlinux import struct_trace_event_raw_sys_enter # noqa: F401
from vmlinux import struct_posix_cputimers # noqa: F401
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