Skip to content

Commit

Permalink
Remove unused generic_filter_submit function
Browse files Browse the repository at this point in the history
Signed-off-by: Anastasios Papagiannis <[email protected]>
  • Loading branch information
tpapagian committed Jul 21, 2022
1 parent 764928c commit 2073fff
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions bpf/process/generic_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,6 @@ generic_process_event_and_setup(struct pt_regs *ctx,
return generic_process_event0(ctx, heap_map, map, tailcals, config_map);
}

static inline __attribute__((always_inline)) int
generic_filter_submit(void *ctx, struct msg_generic_kprobe *e, long total)
{
/* Post event */
total += generic_kprobe_common_size();
/* Code movement from clang forces us to inline bounds checks here */
asm volatile("%[total] &= 0x7fff;\n"
"if %[total] < 9000 goto +1\n;"
"%[total] = 9000;\n"
:
: [total] "+r"(total)
:);
perf_event_output(ctx, &tcpmon_map, BPF_F_CURRENT_CPU, e, total);
return 0;
}

static inline __attribute__((always_inline)) int
generic_process_event1(void *ctx, struct bpf_map_def *heap_map,
struct bpf_map_def *map, struct bpf_map_def *tailcals,
Expand Down

0 comments on commit 2073fff

Please sign in to comment.