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 Feb 6, 2024
1 parent 7cb116d commit 4fc0d21
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 @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 4fc0d21

Please sign in to comment.