linux-imx/tools/testing/selftests/arm64
Kunwu Chan c4dbe5501f kselftest: arm64: Add a null pointer check
[ Upstream commit 80164282b3 ]

There is a 'malloc' call, which can be unsuccessful.
This patch will add the malloc failure checking
to avoid possible null dereference and give more information
about test fail reasons.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20240423082102.2018886-1-chentao@kylinos.cn
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-27 13:49:02 +02:00
..
abi Merge branch 'for-next/selftests' into for-next/core 2023-08-25 12:36:57 +01:00
bti kselftest/arm64: build BTI tests in output directory 2023-08-16 14:43:47 +01:00
fp kselftest/arm64: Fix output formatting for za-fork 2023-12-03 07:33:06 +01:00
mte kselftest/arm64: Remove spurious comment from MTE test Makefile 2023-01-20 14:30:46 +00:00
pauth kselftest/arm64: pac: Fix skipping of tests on systems without PAC 2021-08-20 12:06:59 +01:00
signal kselftest/arm64: fix a memleak in zt_regs_run() 2023-08-16 14:17:06 +01:00
tags kselftest: arm64: Add a null pointer check 2024-06-27 13:49:02 +02:00
Makefile kselftest/arm64: Make the tools/include headers available 2023-08-04 17:36:52 +01:00
README

KSelfTest ARM64

  • These tests are arm64 specific and so not built or run but just skipped completely when env-variable ARCH is found to be different than 'arm64' and uname -m reports other than 'aarch64'.

  • Holding true the above, ARM64 KSFT tests can be run within the KSelfTest framework using standard Linux top-level-makefile targets:

    $ make TARGETS=arm64 kselftest-clean
    $ make TARGETS=arm64 kselftest
    
    or
    
    $ make -C tools/testing/selftests TARGETS=arm64 \
      INSTALL_PATH=<your-installation-path> install
    
    or, alternatively, only specific arm64/ subtargets can be picked:
    
    $ make -C tools/testing/selftests TARGETS=arm64 ARM64_SUBTARGETS="tags signal" \
      INSTALL_PATH=<your-installation-path> install
    

    Further details on building and running KFST can be found in: Documentation/dev-tools/kselftest.rst