Skip to content

Commit a1bc813

Browse files
committed
Small fix to enum va
1 parent fefd684 commit a1bc813

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pythonbpf/bpf_helper_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ def bpf_perf_event_output_handler(call, map_ptr, module, builder, func, local_sy
367367
raise ValueError(
368368
f"Metadata for variable {data_name} not found in local variable metadata.")
369369

370-
# BPF_F_CURRENT_CPU is 0
371-
flags_val = ir.Constant(ir.IntType(64), 0)
370+
# BPF_F_CURRENT_CPU is -1 in 32 bit
371+
flags_val = ir.Constant(ir.IntType(64), 0xFFFFFFFF)
372372

373373
map_void_ptr = builder.bitcast(map_ptr, ir.PointerType())
374374
data_void_ptr = builder.bitcast(data_ptr, ir.PointerType())

0 commit comments

Comments
 (0)