Commit a77a254b authored by Marko Myllynen's avatar Marko Myllynen

tcpretrans: use user-space PID displayed to the user

PID collected in tcpretrans' trace_event() is displayed under the
label of "PID" to the user so it would seem more appropriate to use
TGID as PID not kernel's PID.
parent 8cc0bda6
......@@ -98,7 +98,7 @@ static int trace_event(struct pt_regs *ctx, struct sock *skp, int type)
{
if (skp == NULL)
return 0;
u32 pid = bpf_get_current_pid_tgid();
u32 pid = bpf_get_current_pid_tgid() >> 32;
// pull in details
u16 family = skp->__sk_common.skc_family;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment