Skip to content

Commit 5f21a72

Browse files
authored
libbpf-tools/gethostlatency: correct section name (#4944)
handle_entry and handle_return are attached to uprobes getaddrinfo, gethostbyname, and gethostbyname2, so it doesn't make sense to have the section name be kprobe
1 parent cb972b9 commit 5f21a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libbpf-tools/gethostlatency.bpf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ static int probe_return(struct pt_regs *ctx)
6060
return 0;
6161
}
6262

63-
SEC("kprobe/handle_entry")
63+
SEC("uprobe")
6464
int BPF_KPROBE(handle_entry)
6565
{
6666
return probe_entry(ctx);
6767
}
6868

69-
SEC("kretprobe/handle_return")
69+
SEC("uretprobe")
7070
int BPF_KRETPROBE(handle_return)
7171
{
7272
return probe_return(ctx);

0 commit comments

Comments
 (0)