Re: [PATCH] selftests/bpf: Fix compilation error in get_uprobe_offset()

From: Yonghong Song
Date: Wed Dec 18 2024 - 20:29:17 EST





On 12/18/24 9:57 AM, Jerome Marchand wrote:
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@xxxxxxxxxx>

Acked-by: Yonghong Song <yonghong.song@xxxxxxxxx>