diff --git a/tools/tcpconnlat.py b/tools/tcpconnlat.py index 8f686211dcb0..be6bbbfa1782 100755 --- a/tools/tcpconnlat.py +++ b/tools/tcpconnlat.py @@ -105,7 +105,7 @@ def positive_float(val): int trace_connect(struct pt_regs *ctx, struct sock *sk) { - u32 pid = bpf_get_current_pid_tgid(); + u32 pid = bpf_get_current_pid_tgid() >> 32; FILTER struct info_t info = {.pid = pid}; info.ts = bpf_ktime_get_ns();