diff options
author | Chang S. Bae <chang.seok.bae@intel.com> | 2025-02-26 04:07:24 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-02-26 15:05:29 +0300 |
commit | 40f6852ef2bffcd6fb3634cf71e6fbc2d1d6b768 (patch) | |
tree | aba5ac9ed408a08259bb94cbde2bacf8b0a80f7a /tools/perf/scripts/python/task-analyzer.py | |
parent | 3fcb4d61465613aee76ebd5d86b488778657dda7 (diff) | |
download | linux-40f6852ef2bffcd6fb3634cf71e6fbc2d1d6b768.tar.xz |
selftests/x86/xstate: Refactor context switching test
The existing context switching and ptrace tests in amx.c are not specific
to dynamic states, making them reusable for general xstate testing.
As a first step, move the context switching test to xstate.c. Refactor
the test code to allow specifying which xstate component being tested.
To decouple the test from dynamic states, remove the permission request
code. In fact, The permission request inside the test wrapper was
redundant.
Additionally, replace fatal_error() with ksft_exit_fail_msg() for
consistency in error handling.
Expected output:
$ amx_64
...
[RUN] AMX Tile data: check context switches, 10 iterations, 5 threads.
[OK] No incorrect case was found.
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250226010731.2456-5-chang.seok.bae@intel.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions