[LTP] [PATCH v3 2/2] userfaultfd: Use two-step handshake to probe features

Cyril Hrubis chrubis@suse.cz
Thu May 7 10:34:46 CEST 2026


Hi!
>  static void run(void)
>  {
>  	pthread_t thr;
> -	struct uffdio_api uffdio_api;
> +	struct uffdio_api uffdio_api = {};
>  	struct uffdio_register uffdio_register;
>  	struct uffdio_writeprotect uffdio_writeprotect;
>  
> +	CHECK_UFFD_FEATURE(UFFD_FEATURE_PAGEFAULT_FLAG_WP);

Can we please move this into the test setup() so that it's executed only
once if the test is started with -i parameter?


-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list