selftests/mincore: fix skip condition for check_huge_pages testThe check_huge_pages test was failing instead of skipping on qemu-armv7because the skip condition wasn't handled properly. Add an add
selftests/mincore: fix skip condition for check_huge_pages testThe check_huge_pages test was failing instead of skipping on qemu-armv7because the skip condition wasn't handled properly. Add an additionalcheck to fix it.Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>Tested-by: Anders Roxell <anders.roxell@linaro.org>Closes: https://lore.kernel.org/all/CA+G9fYuoB8Ug8PcTU-YGmemL7_eeEksXFihvxWF6OikD7sK7pA@mail.gmail.comSigned-off-by: Shuah Khan <skhan@linuxfoundation.org>
show more ...
selftests: skip mincore.check_file_mmap when fs lacks needed supportReport mincore.check_file_mmap as SKIP instead of FAIL if the underlyingfilesystem lacks support of O_TMPFILE or fallocate since
selftests: skip mincore.check_file_mmap when fs lacks needed supportReport mincore.check_file_mmap as SKIP instead of FAIL if the underlyingfilesystem lacks support of O_TMPFILE or fallocate since such failuresare not really related to mincore functionality.Cc: Ricardo Cañuelo <ricardo.canuelo@collabora.com>Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
selftests: remove duplicate include'assert.h' included in 'sparsebit.c' is duplicated.It is also included in the 161th line.'string.h' included in 'mincore_selftest.c' is duplicated.It is also i
selftests: remove duplicate include'assert.h' included in 'sparsebit.c' is duplicated.It is also included in the 161th line.'string.h' included in 'mincore_selftest.c' is duplicated.It is also included in the 15th line.'sched.h' included in 'tlbie_test.c' is duplicated.It is also included in the 33th line.Link: https://lkml.kernel.org/r/20210316073336.426255-1-zhang.yunkai@zte.com.cnSigned-off-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>Cc: Paolo Bonzini <pbonzini@redhat.com>Cc: Shuah Khan <shuah@kernel.org>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
selftests: add mincore() testsAdd a test suite for the mincore() syscall. It tests most of its usecases as well as its interface.Tests implemented: - basic interface test - behavior on ano
selftests: add mincore() testsAdd a test suite for the mincore() syscall. It tests most of its usecases 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 fileSigned-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.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>