Commit 6b208d98 authored by Teng Qin's avatar Teng Qin Committed by GitHub

Merge pull request #1965 from myllynen/tcpretrans-pid

tcpretrans: use user-space PID displayed to the user
parents 8cc0bda6 a77a254b
......@@ -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