[LTP] [PATCH] epoll_pwait06: Skip BPF map file descriptor
Cyril Hrubis
chrubis@suse.cz
Wed Sep 24 10:56:12 CEST 2025
Hi!
> Older kernels don't support waiting for BPF map file descriptors using
> epoll. Skip the subtest, other file descriptor types are sufficient.
>
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
> ---
>
> epoll_ctl(EPOLL_CTL_ADD) returns EPERM for BPF map file descriptor
> on kernel v4.12.
>
> testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c b/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
> index 3bedc2cf5..d47327bed 100644
> --- a/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
> +++ b/testcases/kernel/syscalls/epoll_pwait/epoll_pwait06.c
> @@ -36,6 +36,7 @@ static void run(void)
> case TST_FD_DIR:
> case TST_FD_DEV_ZERO:
> case TST_FD_PROC_MAPS:
> + case TST_FD_BPF_MAP:
> case TST_FD_FSOPEN:
> case TST_FD_FSPICK:
> case TST_FD_OPEN_TREE:
Can we make this kernel version dependent? I do not like disabling tests
that work on newer kernels just because it does not work on something
that is eight years old.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list