Skip to content

Commit

Permalink
tetragon: Return zero in generic probe programs
Browse files Browse the repository at this point in the history
Just to keep it consistent. At the moment we don't use the return
value to trigger the return probe, but it's the plan for the future.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
  • Loading branch information
olsajiri committed Feb 8, 2024
1 parent 039d1f3 commit 370051e
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 @@ -2375,7 +2375,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 @@ -2417,7 +2417,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 @@ -2468,7 +2468,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 370051e

Please sign in to comment.