@@ -103,7 +103,11 @@ def handle_vmlinux_struct_field(
103103 globvar_ir , field_data = self .get_field_type (struct_name , field_name )
104104 builder .function .args [0 ].type = ir .PointerType (ir .IntType (8 ))
105105 field_ptr = self .load_ctx_field (
106- builder , builder .function .args [0 ], globvar_ir , field_data , struct_name
106+ builder ,
107+ builder .function .args [0 ],
108+ globvar_ir ,
109+ field_data ,
110+ struct_name ,
107111 )
108112 return field_ptr , field_data
109113 else :
@@ -125,7 +129,9 @@ def handle_vmlinux_struct_field(
125129 raise RuntimeError ("Variable accessed not found in symbol table" )
126130
127131 @staticmethod
128- def load_struct_field (builder , struct_ptr_int , offset_global , field_data , struct_name = None ):
132+ def load_struct_field (
133+ builder , struct_ptr_int , offset_global , field_data , struct_name = None
134+ ):
129135 """
130136 Generate LLVM IR to load a field from a regular (non-context) struct using standard GEP.
131137
@@ -186,7 +192,7 @@ def load_struct_field(builder, struct_ptr_int, offset_global, field_data, struct
186192 elif field_data .type .__module__ == "vmlinux" :
187193 # For pointers to structs or complex vmlinux types
188194 if field_data .ctype_complex_type is not None and issubclass (
189- field_data .ctype_complex_type , ctypes ._Pointer
195+ field_data .ctype_complex_type , ctypes ._Pointer
190196 ):
191197 int_width = 64 # Pointers are always 64-bit
192198 logger .info ("Field is a pointer type, using 64 bits" )
0 commit comments