Commit 164c50be authored by Peter Xu's avatar Peter Xu Committed by Linus Torvalds

userfaultfd/selftests: always dump something in modes

Patch series "userfaultfd: selftests: Small fixes".

Some very trivial fixes that I kept locally to userfaultfd selftest
program.

This patch (of 3):

BOUNCE_POLL is a special bit that if cleared it means "READ" instead.
Dump that too otherwise we'll see tests with empty modes.

Link: https://lkml.kernel.org/r/20201208024709.7701-1-peterx@redhat.com
Link: https://lkml.kernel.org/r/20201208024709.7701-2-peterx@redhat.comSigned-off-by: default avatarPeter Xu <peterx@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 77f962e7
...@@ -1291,6 +1291,8 @@ static int userfaultfd_stress(void) ...@@ -1291,6 +1291,8 @@ static int userfaultfd_stress(void)
printf(" ver"); printf(" ver");
if (bounces & BOUNCE_POLL) if (bounces & BOUNCE_POLL)
printf(" poll"); printf(" poll");
else
printf(" read");
printf(", "); printf(", ");
fflush(stdout); fflush(stdout);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment