From 338d415114e67e911de16232d77edcacdb2b7dac Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Wed, 27 Dec 2023 10:25:31 +0000 Subject: [PATCH] tetragon: Return zero in generic probe programs Signed-off-by: Jiri Olsa --- bpf/process/types/basic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bpf/process/types/basic.h b/bpf/process/types/basic.h index 777bcc8bd23..64246d78022 100644 --- a/bpf/process/types/basic.h +++ b/bpf/process/types/basic.h @@ -2251,7 +2251,7 @@ filter_read_arg(void *ctx, struct bpf_map_def *heap, } tail_call(ctx, tailcalls, TAIL_CALL_SEND); - return 1; + return 0; } static inline __attribute__((always_inline)) long @@ -2293,7 +2293,7 @@ generic_actions(void *ctx, struct bpf_map_def *heap, postit = do_actions(ctx, e, actions, override_tasks); if (postit) tail_call(ctx, tailcalls, TAIL_CALL_SEND); - return 1; + return 0; } static inline __attribute__((always_inline)) long @@ -2344,7 +2344,7 @@ generic_output(void *ctx, struct bpf_map_def *heap, u8 op) : [total] "+r"(total) :); perf_event_output_metric(ctx, op, &tcpmon_map, BPF_F_CURRENT_CPU, e, total); - return 1; + return 0; } /**