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 Jan 31, 2024
1 parent 26274c3 commit 8a67472
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 @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 8a67472

Please sign in to comment.