diff options
| author | Heiko Carstens <[email protected]> | 2024-02-05 16:48:44 +0100 |
|---|---|---|
| committer | Heiko Carstens <[email protected]> | 2024-02-09 13:58:16 +0100 |
| commit | 8d16ce148858669f05b8e117a0634010397e17d6 (patch) | |
| tree | 5a95abf3cecd0a6e4684c71d32eb2d16fc60e59c /tools/perf/scripts/python/task-analyzer.py | |
| parent | fd7eea27a3aed79b63b1726c00bde0d50cf207e2 (diff) | |
s390/fpu: make use of __uninitialized macro
Code sections in s390 specific kernel code which use floating point or
vector registers all come with a 520 byte stack variable to save already in
use registers, if required.
With INIT_STACK_ALL_PATTERN or INIT_STACK_ALL_ZERO enabled this variable
will always be initialized on function entry in addition to saving register
contents, which contradicts the intention (performance improvement) of such
code sections.
Therefore provide a DECLARE_KERNEL_FPU_ONSTACK() macro which provides
struct kernel_fpu variables with an __uninitialized attribute, and convert
all existing code to use this.
This way only this specific type of stack variable will not be initialized,
regardless of config options.
Reviewed-by: Nathan Chancellor <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions