linux/tools/testing/selftests/powerpc/stringloops
Christophe Leroy f0abbfd89f selftests/powerpc: Add test for strlen()
This patch adds a test for strlen()

string.c contains a copy of strlen() from lib/string.c

The test first tests the correctness of strlen() by comparing
the result with libc strlen(). It tests all cases of alignment.

It them tests the duration of an aligned strlen() on a 4 bytes string,
on a 16 bytes string and on a 256 bytes string.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Drop change log from copy of string.c]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-08-07 21:49:30 +10:00
..
asm selftests/powerpc: Update memcmp_64 selftest for VMX implementation 2018-07-24 22:03:22 +10:00
.gitignore
Makefile selftests/powerpc: Add test for strlen() 2018-08-07 21:49:30 +10:00
memcmp_32.S selftests/powerpc: Add test for 32 bits memcmp 2018-08-07 21:49:29 +10:00
memcmp_64.S
memcmp.c selftests/powerpc: Give some tests longer to run 2018-08-07 21:49:26 +10:00
string.c selftests/powerpc: Add test for strlen() 2018-08-07 21:49:30 +10:00
strlen.c selftests/powerpc: Add test for strlen() 2018-08-07 21:49:30 +10:00