selftests/powerpc: Add cache_shape sniff test
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Feb 2017 10:13:28 +0000 (21:13 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Mar 2017 08:02:49 +0000 (19:02 +1100)
commitb8b6ff019689ec7e61f0d3fa97929214507f7427
tree5f9876317f4b26e88f44bf47960de2b9c6af3673
parente3028437cb45c04a9caae4d6372bfe08e70293cd
selftests/powerpc: Add cache_shape sniff test

This is a very basic test of the new cache shape AUXV entries. All it
does at the moment is look for the entries and error out if we don't
find all the ones we expect. Primarily intended for folks bringing up a
new chip to check that the cache info is making it all the way to
userspace correctly.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/Makefile
tools/testing/selftests/powerpc/cache_shape/.gitignore [new file with mode: 0644]
tools/testing/selftests/powerpc/cache_shape/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/cache_shape/cache_shape.c [new file with mode: 0644]