Skip to content

Commit

Permalink
tetragon: Return zero in generic probe programs
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri committed Dec 27, 2023
1 parent 3c29c7a commit 503d8fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bpf/process/types/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,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
Expand Down Expand Up @@ -2292,7 +2292,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
Expand Down Expand Up @@ -2343,7 +2343,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;
}

/**
Expand Down

0 comments on commit 503d8fc

Please sign in to comment.