OSDN Git Service

selftests: add mincore() tests
authorRicardo Cañuelo <ricardo.canuelo@collabora.com>
Fri, 7 Aug 2020 06:23:51 +0000 (23:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Aug 2020 18:33:27 +0000 (11:33 -0700)
commit7a309195d11cde854eb75559fbd6b48f9e518f25
treed5e9861e784defb6ea070b8d540e57729f0edfaa
parent349d9fbb0b0a6734bcac9c08c5cc21992da5d2e6
selftests: add mincore() tests

Add a test suite for the mincore() syscall.  It tests most of its use
cases as well as its interface.

Tests implemented:

  - basic interface test
  - behavior on anonymous mappings
  - behavior on anonymous mappings with huge tlb pages
  - file-backed mapping with a regular file
  - file-backed mapping with a tmpfs file

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200728100450.4065-1-ricardo.canuelo@collabora.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/mincore/.gitignore [new file with mode: 0644]
tools/testing/selftests/mincore/Makefile [new file with mode: 0644]
tools/testing/selftests/mincore/mincore_selftest.c [new file with mode: 0644]