Skip to content

Commit

Permalink
fix: agent - eBPF Kernels below v5.2 cannot retrieve IO events
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiping authored and sharang committed Nov 19, 2024
1 parent 28afcae commit b7b8e3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent/src/ebpf/kernel/socket_trace.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,8 @@ static __inline int process_data(struct pt_regs *ctx, __u64 id,
!= SOCK_CHECK_TYPE_ERROR))) {
#if defined(LINUX_VER_KFUNC) || defined(LINUX_VER_5_2_PLUS)
return trace_io_event_common(ctx, offset, args, direction, id);
#else
return -1;
#endif
}

Expand Down

0 comments on commit b7b8e3e

Please sign in to comment.