Skip to content

Commit

Permalink
tetragon: Rename entry point of retkprobe function
Browse files Browse the repository at this point in the history
Renaming entry point of retkprobe function so it won't get
confused in bpftool stats output with the regular kprobe
program.

We used the 'generic_kprobe_event' to make things easier
in previous libbpf loader code. Now when it's gone we can
have unique name for retkprobe program.

Signed-off-by: Jiri Olsa <[email protected]>
  • Loading branch information
olsajiri authored and jrfastab committed Aug 1, 2022
1 parent 0a5263c commit 059052b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/process/bpf_generic_retkprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct bpf_map_def __attribute__((section("maps"), used)) config_map = {
};

__attribute__((section("kprobe/generic_retkprobe"), used)) int
BPF_KRETPROBE(generic_kprobe_event, unsigned long ret)
BPF_KRETPROBE(generic_retkprobe_event, unsigned long ret)
{
struct execve_map_value *enter;
struct msg_generic_kprobe *e;
Expand Down

0 comments on commit 059052b

Please sign in to comment.