summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/pmu/count_stcx_fail.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* selftests/powerpc: Lower run time of count_stcx_fail testMichael Ellerman2024-11-071-3/+0
| | | | | | | | | | | | | The count_stcx_fail test runs for close to or just over 2 minutes, which means it sometimes times out. That's overkill for a test that just demonstrates some PMU counters are working. Drop the 64 billion instruction case, to lower the runtime to ~30s. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://patch.msgid.link/20241106130453.1741013-1-mpe@ellerman.id.au
* selftests/powerpc: Include asm/cputable.h from utils.hMichael Ellerman2020-09-081-1/+0
| | | | | | | | | utils.h provides have_hwcap() and have_hwcap2() which check for a feature bit. Those bits are defined in asm/cputable.h, so include it in utils.h so users of utils.h don't have to do it manually. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200819015727.1977134-4-mpe@ellerman.id.au
* selftests/powerpc: Skip vmx/vsx/tar/etc tests on older CPUsMichael Ellerman2020-08-031-0/+4
| | | | | | | | | | | Some of our tests use VSX or newer VMX instructions, so need to be skipped on older CPUs to avoid SIGILL'ing. Similarly TAR was added in v2.07, and the PMU event used in the stcx fail test only works on Power8 or later. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200803020719.96114-1-mpe@ellerman.id.au
* selftests/powerpc: Add a test of counting larx/stcxMichael Ellerman2020-05-151-0/+161
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