[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201208024709.7701-2-peterx@redhat.com>
Date: Mon, 7 Dec 2020 21:47:07 -0500
From: Peter Xu <peterx@...hat.com>
To: linux-kernel@...r.kernel.org, linux-mm@...ck.org
Cc: Andrea Arcangeli <aarcange@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>, peterx@...hat.com,
Mike Rapoport <rppt@...ux.vnet.ibm.com>
Subject: [PATCH 1/3] userfaultfd/selftests: Always dump something in modes
BOUNCE_POLL is a special bit that if cleared it means "READ" instead. Dump
that too otherwise we'll see tests with empty modes.
Signed-off-by: Peter Xu <peterx@...hat.com>
---
tools/testing/selftests/vm/userfaultfd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c
index 61e5cfeb1350..31f470d12d0b 100644
--- a/tools/testing/selftests/vm/userfaultfd.c
+++ b/tools/testing/selftests/vm/userfaultfd.c
@@ -1230,6 +1230,8 @@ static int userfaultfd_stress(void)
printf(" ver");
if (bounces & BOUNCE_POLL)
printf(" poll");
+ else
+ printf(" read");
printf(", ");
fflush(stdout);
--
2.26.2
Powered by blists - more mailing lists