diff mbox series

[1/3] userfaultfd/selftests: Always dump something in modes

Message ID 20201208024709.7701-2-peterx@redhat.com (mailing list archive)
State New, archived
Headers show
Series userfaultfd: selftests: Small fixes | expand

Commit Message

Peter Xu Dec. 8, 2020, 2:47 a.m. UTC
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@redhat.com>
---
 tools/testing/selftests/vm/userfaultfd.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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);