Skip to content

Commit 8b28a92

Browse files
committed
Add helpful TODO to PID_TGID emitter
1 parent f9ee43e commit 8b28a92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pythonbpf/helper/bpf_helper_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ def bpf_get_current_pid_tgid_emitter(
322322
result = builder.call(fn_ptr, [], tail=False)
323323

324324
# 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
325326
mask = ir.Constant(ir.IntType(64), 0xFFFFFFFF)
326327
pid = builder.and_(result, mask)
327328
return pid, ir.IntType(64)

0 commit comments

Comments
 (0)