]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Fix compilation error in get_uprobe_offset()
authorJerome Marchand <jmarchan@redhat.com>
Wed, 18 Dec 2024 17:57:24 +0000 (18:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Jan 2025 09:34:10 +0000 (10:34 +0100)
commitf7ef892250f820913db32f0a97fbb92c9dcea313
tree0a1b927f86ccb925f09beebba7e90b1058b18b20
parent2175b66c7fc0db28e50ba4b1f39119165bb1b655
selftests/bpf: Fix compilation error in get_uprobe_offset()

[ Upstream commit 716f2bca1ce93bb95364f1fc0555c1650507b588 ]

In get_uprobe_offset(), the call to procmap_query() use the constant
PROCMAP_QUERY_VMA_EXECUTABLE, even if PROCMAP_QUERY is not defined.

Define PROCMAP_QUERY_VMA_EXECUTABLE when PROCMAP_QUERY isn't.

Fixes: 4e9e07603ecd ("selftests/bpf: make use of PROCMAP_QUERY ioctl if available")
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20241218175724.578884-1-jmarchan@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/trace_helpers.c