libbpf: Fix error message in attach_kprobe_session
authorJiri Olsa <jolsa@kernel.org>
Thu, 2 May 2024 07:55:40 +0000 (09:55 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 May 2024 15:56:23 +0000 (08:56 -0700)
commit5a3941f84b8f91bb1e111499d803b32188d33e5d
treeb17b5aeba04269535dff4f7436c3503cf96c67fc
parentac2f438c2a85acd07e0ac7dc2f69d45bda1bb498
libbpf: Fix error message in attach_kprobe_session

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

Fixes: 2ca178f02b2f ("libbpf: Add support for kprobe session attach")
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-1-jolsa@kernel.org
tools/lib/bpf/libbpf.c