We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ee43e commit 8b28a92Copy full SHA for 8b28a92
pythonbpf/helper/bpf_helper_handler.py
@@ -322,6 +322,7 @@ def bpf_get_current_pid_tgid_emitter(
322
result = builder.call(fn_ptr, [], tail=False)
323
324
# Extract the lower 32 bits (PID) using bitwise AND with 0xFFFFFFFF
325
+ # TODO: return both PID and TGID if we end up needing TGID somewhere
326
mask = ir.Constant(ir.IntType(64), 0xFFFFFFFF)
327
pid = builder.and_(result, mask)
328
return pid, ir.IntType(64)
0 commit comments