selftests/sparc64: remove ARRAY_SIZE define from adi-testARRAY_SIZE is defined in several selftests. Remove definition fromindividual test files and include header file for the define instead.ARR
selftests/sparc64: remove ARRAY_SIZE define from adi-testARRAY_SIZE is defined in several selftests. Remove definition fromindividual test files and include header file for the define instead.ARRAY_SIZE define is added in a separate patch to prepare for thischange.Remove ARRAY_SIZE from adi-test and pickup the one defined inkselftest.h.Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
show more ...
.gitignore: add SPDX License IdentifierAdd SPDX License Identifier to all .gitignore files.Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfou
.gitignore: add SPDX License IdentifierAdd SPDX License Identifier to all .gitignore files.Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
selftests: sparc64: Add missing SPDX License IdentifiersAdd missing SPDX License Identifiers to Makefile(s).Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>Reviewed-by: Tom Hromatka <t
selftests: sparc64: Add missing SPDX License IdentifiersAdd missing SPDX License Identifiers to Makefile(s).Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
selftests: sparc64: delete RUN_TESTS and EMIT_TESTS overridesDelete RUN_TESTS and EMIT_TESTS overrides and use common defines inlib.mk. Common defines work just fine and there is no need to define
selftests: sparc64: delete RUN_TESTS and EMIT_TESTS overridesDelete RUN_TESTS and EMIT_TESTS overrides and use common defines inlib.mk. Common defines work just fine and there is no need to definecustom overrides.Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
selftests: sparc64: Fix to do nothing on non-sparc64sparc64 test fails with the following errors on non-sparc64 systems. Fixthe Makefile to do nothing on non-sparc64 systems to suppress the errors
selftests: sparc64: Fix to do nothing on non-sparc64sparc64 test fails with the following errors on non-sparc64 systems. Fixthe Makefile to do nothing on non-sparc64 systems to suppress the errors:make run_testsadi-test.c: Assembler messages:adi-test.c:302: Error: no such instruction: `rd %tick,%r13'adi-test.c:304: Error: no such instruction: `rd %tick,%rbp'adi-test.c:190: Error: no such instruction: `rd %tick,%rbp'adi-test.c:192: Error: no such instruction: `rd %tick,%rdx'adi-test.c:273: Error: no such instruction: `rd %tick,%rbx'adi-test.c:276: Error: no such instruction: `rd %tick,%rdx'adi-test.c:217: Error: no such instruction: `rd %tick,%rbp'adi-test.c:220: Error: no such instruction: `rd %tick,%rdx'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'adi-test.c:246: Error: no such instruction: `rd %tick,%rbp'adi-test.c:248: Error: no such instruction: `rd %tick,%rdx'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'adi-test.c:79: Error: no such instruction: `rd %tick,%rax'<builtin>: recipe for target 'adi-test' failedmake[1]: *** [adi-test] Error 1adi: [FAIL]./drivers_test.sh: 24: ./drivers_test.sh: ./adi-test: not found../lib.mk:73: recipe for target 'run_tests' failedmake: *** [run_tests] Error 1Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>Acked-by: David S. Miller <davem@davemloft.net>Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
selftests: sparc64: char: Selftest for privileged ADI driverAdd a selftest for the sparc64 privileged ADI driver. Thesetests verify the read(), pread(), write(), pwrite(), and seek()functionalit
selftests: sparc64: char: Selftest for privileged ADI driverAdd a selftest for the sparc64 privileged ADI driver. Thesetests verify the read(), pread(), write(), pwrite(), and seek()functionality of the driver. The tests also report simpleperformance statistics: Syscall Call AvgTime AvgSize Count (ticks) (bytes) ------------------------------- read 3 119638 8133 pread 4 118164 6741 write 3 339442 8133 pwrite 4 280134 6741 seek 10 2919 0 Pass 8 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>Reviewed-by: Allen Pais <allen.pais@oracle.com>Reviewed-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>Signed-off-by: David S. Miller <davem@davemloft.net>