aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <[email protected]>2024-03-27 16:17:17 +0500
committerIngo Molnar <[email protected]>2024-03-29 08:33:40 +0100
commit99c84311e35f9399bdce666f6306a048e2a5b404 (patch)
treeb883a3247eec374d5790f6cb34ccc49df9da0743 /tools/perf/scripts/python/export-to-postgresql.py
parentcd2236c2f49eb46443fd7573d0ddad5373577b11 (diff)
x86/selftests: Skip the tests if prerequisites aren't fulfilled
Skip instead of failing when prerequisite conditions aren't fulfilled, such as invalid xstate values etc. Make the tests show as 'SKIP' when run: make -C tools/testing/selftests/ TARGETS=x86 run_tests ... # timeout set to 45 # selftests: x86: amx_64 # # xstate cpuid: invalid tile data size/offset: 0/0 ok 42 selftests: x86: amx_64 # SKIP # timeout set to 45 # selftests: x86: lam_64 # # Unsupported LAM feature! ok 43 selftests: x86: lam_64 # SKIP ... In the AMX test, Move away from check_cpuid_xsave() and start using arch_prctl() to find out if AMX support is present or not. In the kernels where AMX isn't present, arch_prctl() returns -EINVAL, hence it is backward compatible. Signed-off-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Chang S. Bae <[email protected]> Reviewed-by: Binbin Wu <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions