Home
last modified time | relevance | path

Searched hist:"40 f6852ef2bffcd6fb3634cf71e6fbc2d1d6b768" (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/x86/
H A DMakefilediff 40f6852ef2bffcd6fb3634cf71e6fbc2d1d6b768 Wed Feb 26 02:07:24 CET 2025 Chang S. Bae <chang.seok.bae@intel.com> 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