]> www.infradead.org Git - users/willy/xarray.git/commit
libbpf: Fix error message in attach_kprobe_multi
authorJiri Olsa <jolsa@kernel.org>
Thu, 2 May 2024 07:55:41 +0000 (09:55 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 May 2024 15:56:24 +0000 (08:56 -0700)
commit7c13ef16e87ac2e44d16c0468b1191bceb06f95c
treeccee84d8045d808a904dcc4b45b5d831e81f6c8b
parent5a3941f84b8f91bb1e111499d803b32188d33e5d
libbpf: Fix error message in attach_kprobe_multi

We just failed to retrieve pattern, so we need to print spec instead.

Fixes: ddc6b04989eb ("libbpf: Add bpf_program__attach_kprobe_multi_opts function")
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/20240502075541.1425761-2-jolsa@kernel.org
tools/lib/bpf/libbpf.c