summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorChang S. Bae <chang.seok.bae@intel.com>2025-02-26 04:07:21 +0300
committerIngo Molnar <mingo@kernel.org>2025-02-26 15:05:28 +0300
commitdbd6b649e7d5b66c7fa95a65d67b59cf5b45f0ac (patch)
treed2869469913beefa4d2cd5272bb5760727c900e7 /tools/perf/scripts/python/task-analyzer.py
parentac3144f91bb4ca6c7e12d321ce9cf13b1fcb4cf2 (diff)
downloadlinux-dbd6b649e7d5b66c7fa95a65d67b59cf5b45f0ac.tar.xz
selftests/x86: Consolidate redundant signal helper functions
The x86 selftests frequently register and clean up signal handlers, but the sethandler() and clearhandler() functions have been redundantly copied across multiple .c files. Move these functions to helpers.h to enable reuse across tests, eliminating around 250 lines of duplicate code. Converge the error handling by using ksft_exit_fail_msg(), which is functionally equivalent with err() within the selftest framework. This change is a prerequisite for the upcoming xstate selftest, which requires signal handling for registering and cleaning up handlers. 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-2-chang.seok.bae@intel.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions