linux/tools/testing/selftests/powerpc/pmu
Michael Ellerman 7481cad474 selftests/powerpc: Add a test of counting larx/stcx
This is based on the count_instructions test.

However this one also counts the number of failed stcx's, and in
conjunction with knowing the size of the stcx loop, can calculate the
total number of instructions executed even in the face of
non-deterministic stcx failures.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200426114410.3917383-1-mpe@ellerman.id.au
2020-05-15 11:58:55 +10:00
..
ebb powerpc/mm: Replace zero-length array with flexible-array 2020-05-15 11:58:54 +10:00
.gitignore selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
count_instructions.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
count_stcx_fail.c selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
event.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
event.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
l3_bank_test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
lib.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
loop.S selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
Makefile selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
per_event_excludes.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00