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