diff options
author | Chang S. Bae <chang.seok.bae@intel.com> | 2025-02-26 04:07:22 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2025-02-26 15:05:28 +0300 |
commit | 0f6d91a327db4a36d6febb74d833cdc668c8661b (patch) | |
tree | d35d187bfd40b3c8fc25bc32a4caf5162f90a08b /tools/perf/scripts/python/task-analyzer.py | |
parent | dbd6b649e7d5b66c7fa95a65d67b59cf5b45f0ac (diff) | |
download | linux-0f6d91a327db4a36d6febb74d833cdc668c8661b.tar.xz |
selftests/x86/xstate: Refactor XSAVE helpers for general use
The AMX test introduced several XSAVE-related helper functions, but so
far, it has been the only user of them. These helpers can be generalized
for broader test of multiple xstate features.
Move most XSAVE-related code into xsave.h, making it shareable. The
restructuring includes:
* Establishing low-level XSAVE helpers for saving and restoring register
states, as well as handling XSAVE buffers.
* Generalizing state data manipuldations: set_rand_data()
* Introducing a generic feature query helper: get_xstate_info()
While doing so, remove unused defines in amx.c.
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-3-chang.seok.bae@intel.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions