@@ -157,17 +157,16 @@ def bpf_printk_emitter(
157157 if isinstance (call .args [0 ], ast .JoinedStr ):
158158 args = handle_fstring_print (
159159 call .args [0 ],
160- compilation_context . module ,
160+ compilation_context ,
161161 builder ,
162162 func ,
163163 local_sym_tab ,
164- compilation_context .structs_sym_tab ,
165164 )
166165 elif isinstance (call .args [0 ], ast .Constant ) and isinstance (call .args [0 ].value , str ):
167166 # TODO: We are only supporting single arguments for now.
168167 # In case of multiple args, the first one will be taken.
169168 args = simple_string_print (
170- call .args [0 ].value , compilation_context . module , builder , func
169+ call .args [0 ].value , compilation_context , builder , func
171170 )
172171 else :
173172 raise NotImplementedError (
@@ -397,7 +396,7 @@ def bpf_perf_event_output_handler(
397396 ctx_ptr = func .args [0 ] # First argument to the function is ctx
398397
399398 data_ptr , size_val = get_data_ptr_and_size (
400- data_arg , local_sym_tab , compilation_context . structs_sym_tab
399+ data_arg , local_sym_tab , compilation_context
401400 )
402401
403402 # BPF_F_CURRENT_CPU is -1 in 32 bit
@@ -446,7 +445,7 @@ def bpf_ringbuf_output_emitter(
446445 )
447446 data_arg = call .args [0 ]
448447 data_ptr , size_val = get_data_ptr_and_size (
449- data_arg , local_sym_tab , compilation_context . structs_sym_tab
448+ data_arg , local_sym_tab , compilation_context
450449 )
451450 flags_val = ir .Constant (ir .IntType (64 ), 0 )
452451
0 commit comments