]> www.infradead.org Git - users/hch/xfs.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)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Dec 2024 12:24:39 +0000 (13:24 +0100)
commit716f2bca1ce93bb95364f1fc0555c1650507b588
tree8925b1cfc40f8a0090a2cd8434bf947080abb41a
parent29d44cce324dab2bd86c447071a596262e7109b6
selftests/bpf: Fix compilation error in get_uprobe_offset()

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
tools/testing/selftests/bpf/trace_helpers.c