selftest: add simple test for soft-dirty bit
authorPavel Emelyanov <[email protected]>
Tue, 30 Apr 2013 22:27:06 +0000 (15:27 -0700)
committerLinus Torvalds <[email protected]>
Wed, 1 May 2013 00:04:01 +0000 (17:04 -0700)
commit58c7be84fec87b3a96964d65129b36c0e8c59a19
tree8a4c9fe5a1b23bd481542e371410b62ae3393e4e
parent835f2f51608fd80e1aef5a8955dabcc36ea528a4
selftest: add simple test for soft-dirty bit

It creates a mapping of 3 pages and checks that reads, writes and
clear-refs result in present and soft-dirt bits reported from pagemap2
set as expected.

[[email protected]: alphasort the Makefile TARGETS to reduce rejects]
Signed-off-by: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
tools/testing/selftests/Makefile
tools/testing/selftests/soft-dirty/Makefile [new file with mode: 0644]
tools/testing/selftests/soft-dirty/soft-dirty.c [new file with mode: 0644]