OSDN Git Service

selftests/mm: UFFDIO_API test
authorPeter Xu <peterx@redhat.com>
Wed, 12 Apr 2023 16:42:57 +0000 (12:42 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Apr 2023 23:30:05 +0000 (16:30 -0700)
commitd5433ce84d2572d43a3c58e5cab21db200669bfd
tree880cf9add6e3e8e6d7878e9441f537cadde4303d
parent78391f6460ee2cb43f64bbdd7a7cf840e5a118a6
selftests/mm: UFFDIO_API test

Add one simple test for UFFDIO_API.  With that, I also added a bunch of
small but handy helpers along the way.

Link: https://lkml.kernel.org/r/20230412164257.328375-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/uffd-unit-tests.c