selftests: soft-dirty: add test for mprotect
authorPeter Xu <peterx@redhat.com>
Mon, 25 Jul 2022 14:20:47 +0000 (10:20 -0400)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:18 +0000 (18:07 -0700)
commitc942f5bd17b3a520710c6b80634be5c44aaa109e
tree86f6b7a1cd8133a6453976aa8640f145add829e0
parent76aefad628aae152207ee624a7981b9aa1a267d8
selftests: soft-dirty: add test for mprotect

Add two soft-dirty test cases for mprotect() on both anon or file.

Link: https://lkml.kernel.org/r/20220725142048.30450-3-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Nadav Amit <nadav.amit@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/vm/soft-dirty.c