diff options
author | Jiri Olsa <jolsa@kernel.org> | 2024-09-10 14:53:36 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-09-10 11:35:13 -0700 |
commit | 8c8b4759740359a6f2e7ffdf6531dea871130c63 (patch) | |
tree | 05927811c0ec86e093f21a5bc1e5e0ad164fe5a8 /tools/bpf/bpftool/net.c | |
parent | 41d0c4677feee1ea063e0f2c2af72dc953b1f1cc (diff) |
libbpf: Fix uretprobe.multi.s programs auto attachment
As reported by Andrii we don't currently recognize uretprobe.multi.s
programs as return probes due to using (wrong) strcmp function.
Using str_has_pfx() instead to match uretprobe.multi prefix.
Tests are passing, because the return program was executed
as entry program and all counts were incremented properly.
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240910125336.3056271-1-jolsa@kernel.org
Diffstat (limited to 'tools/bpf/bpftool/net.c')
0 files changed, 0 insertions, 0 deletions