From 4fc0d215586f93e9c5898c04f59bab9a95fe1e85 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 5513fa58848..7fa4da916b0 100644 --- a/bpf/process/types/basic.h +++ b/bpf/process/types/basic.h @@ -2265,7 +2265,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 @@ -2307,7 +2307,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 @@ -2358,7 +2358,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; } /**