selftest: add simple test for soft-dirty bit
commit58c7be84fec87b3a96964d65129b36c0e8c59a19
authorPavel Emelyanov <xemul@parallels.com>
Tue, 30 Apr 2013 22:27:06 +0000 (30 15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:01 +0000 (30 17:04 -0700)
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.

[akpm@linux-foundation.org: alphasort the Makefile TARGETS to reduce rejects]
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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]