Skip to content

Commit

Permalink
libbpf-tools/gethostlatency: correct section name (iovisor#4944)
Browse files Browse the repository at this point in the history

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
  • Loading branch information
ShawnZhong committed Mar 22, 2024
1 parent cb972b9 commit 5f21a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbpf-tools/gethostlatency.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ static int probe_return(struct pt_regs *ctx)
return 0;
}

SEC("kprobe/handle_entry")
SEC("uprobe")
int BPF_KPROBE(handle_entry)
{
return probe_entry(ctx);
}

SEC("kretprobe/handle_return")
SEC("uretprobe")
int BPF_KRETPROBE(handle_return)
{
return probe_return(ctx);
Expand Down

0 comments on commit 5f21a72

Please sign in to comment.