mirror-linux/tools/testing/selftests/mm
Mark Brown 0518dbe97f selftests/mm: fix cross compilation with LLVM
Currently the MM selftests attempt to work out the target architecture by
using CROSS_COMPILE or otherwise querying the host machine, storing the
target architecture in a variable called MACHINE rather than the usual
ARCH though as far as I can tell (including for x86_64) the value is the
same as we would use for architecture.

When cross compiling with LLVM we don't need a CROSS_COMPILE as LLVM can
support many target architectures in a single build so this logic does not
work, CROSS_COMPILE is not set and we end up selecting tests for the host
rather than target architecture.  Fix this by using the more standard ARCH
to describe the architecture, taking it from the environment if specified.

Link: https://lkml.kernel.org/r/20230614-kselftest-mm-llvm-v1-1-180523f277d3@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Tom Rix <trix@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-06-19 13:19:35 -07:00
..
.gitignore selftests/mm: split uffd tests into uffd-stress and uffd-unit-tests 2023-04-18 16:30:04 -07:00
Makefile selftests/mm: fix cross compilation with LLVM 2023-06-19 13:19:35 -07:00
charge_reserved_hugetlb.sh
check_config.sh selftests/mm: rename COW_EXTRA_LIBS to IOURING_EXTRA_LIBS 2023-04-21 14:52:00 -07:00
compaction_test.c
config
cow.c selftests/mm: reuse read_pmd_pagesize() in COW selftest 2023-04-18 16:30:00 -07:00
gup_test.c selftests/mm: merge util.h into vm_util.h 2023-04-18 16:30:02 -07:00
hmm-tests.c
hugepage-mmap.c
hugepage-mremap.c selftests/mm: uffd_[un]register() 2023-04-18 16:30:05 -07:00
hugepage-shm.c
hugepage-vmemmap.c
hugetlb-madvise.c selftests/mm: merge default_huge_page_size() into one 2023-04-18 16:30:03 -07:00
hugetlb_reparenting_test.sh
khugepaged.c selftests/mm: reuse read_pmd_pagesize() in COW selftest 2023-04-18 16:30:00 -07:00
ksm_functional_tests.c selftests/ksm: ksm_functional_tests: add prctl unmerge test 2023-05-02 17:21:49 -07:00
ksm_tests.c selftests/mm: add new selftests for KSM 2023-04-21 14:52:03 -07:00
madv_populate.c
map_fixed_noreplace.c
map_hugetlb.c
map_populate.c
mdwe_test.c kselftest: vm: fix unused variable warning 2023-03-23 17:18:33 -07:00
memfd_secret.c
migration.c
mkdirty.c selftests/mm: mkdirty: test behavior of (pte|pmd)_mkdirty on VMAs without write permissions 2023-04-18 16:30:00 -07:00
mlock-random-test.c
mlock2-tests.c
mlock2.h
mrelease_test.c selftests/mm: merge util.h into vm_util.h 2023-04-18 16:30:02 -07:00
mremap_dontunmap.c
mremap_test.c
on-fault-limit.c
pkey-helpers.h
pkey-powerpc.h
pkey-x86.h
protection_keys.c selftests: use canonical ftrace path 2023-03-29 06:52:07 -04:00
run_vmtests.sh - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
settings
soft-dirty.c selftests/mm: reuse read_pmd_pagesize() in COW selftest 2023-04-18 16:30:00 -07:00
split_huge_page_test.c selftests/mm: reuse read_pmd_pagesize() in COW selftest 2023-04-18 16:30:00 -07:00
test_hmm.sh
test_vmalloc.sh
thuge-gen.c selftests/mm: merge default_huge_page_size() into one 2023-04-18 16:30:03 -07:00
transhuge-stress.c selftests/mm: merge util.h into vm_util.h 2023-04-18 16:30:02 -07:00
uffd-common.c selftests/mm: drop sys/dev test in uffd-stress test 2023-04-18 16:30:08 -07:00
uffd-common.h selftests/mm: drop sys/dev test in uffd-stress test 2023-04-18 16:30:08 -07:00
uffd-stress.c selftests/mm: add shmem-private test to uffd-stress 2023-04-18 16:30:08 -07:00
uffd-unit-tests.c selftests/mm: add tests for RO pinning vs fork() 2023-04-21 14:52:00 -07:00
va_high_addr_switch.c selftests/mm: add platform independent in code comments 2023-04-18 16:53:51 -07:00
va_high_addr_switch.sh selftests/mm: run hugetlb testcases of va switch 2023-04-18 16:53:52 -07:00
virtual_address_range.c selftests/mm: change NR_CHUNKS_HIGH for aarch64 2023-04-05 19:42:59 -07:00
vm_util.c selftests/mm: move zeropage test into uffd unit tests 2023-04-18 16:30:07 -07:00
vm_util.h selftests/mm: move zeropage test into uffd unit tests 2023-04-18 16:30:07 -07:00
write_hugetlb_memory.sh
write_to_hugetlbfs.c