All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Ricardo Branco <rbranco@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 2/2] userfaultfd: Use two-step handshake to probe features
Date: Thu, 7 May 2026 10:34:46 +0200	[thread overview]
Message-ID: <afxOpm_F4nevB2Gq@yuki.lan> (raw)
In-Reply-To: <20260507083131.28197-2-rbranco@suse.de>

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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-05-07  8:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07  8:31 [LTP] [PATCH v3 1/2] userfaultfd: Add helper for checking UFFD feature support Ricardo Branco
2026-05-07  8:31 ` [LTP] [PATCH v3 2/2] userfaultfd: Use two-step handshake to probe features Ricardo Branco
2026-05-07  8:34   ` Cyril Hrubis [this message]
2026-05-07  8:33 ` [LTP] [PATCH v3 1/2] userfaultfd: Add helper for checking UFFD feature support Cyril Hrubis
2026-05-07  9:40 ` [LTP] " linuxtestproject.agent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afxOpm_F4nevB2Gq@yuki.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    --cc=rbranco@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.