diff --git a/agent/src/ebpf/kernel/socket_trace.bpf.c b/agent/src/ebpf/kernel/socket_trace.bpf.c index 1c02955fb08..88e68c32a92 100644 --- a/agent/src/ebpf/kernel/socket_trace.bpf.c +++ b/agent/src/ebpf/kernel/socket_trace.bpf.c @@ -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 }