diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-17 14:46:17 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-17 14:46:17 +0200 |
commit | c3056a7d1494e9b5511e4dba358834c5ef68949a (patch) | |
tree | 0e29944bd84e9b2338a2894c91cf7ef7ddfe5813 /arch/x86/include | |
parent | Merge tag 'x86-core-2024-09-17' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
parent | x86/elf: Add a new FPU buffer layout info to x86 core files (diff) | |
download | linux-c3056a7d1494e9b5511e4dba358834c5ef68949a.tar.xz linux-c3056a7d1494e9b5511e4dba358834c5ef68949a.zip |
Merge tag 'x86-fpu-2024-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fpu updates from Thomas Gleixner:
"Provide FPU buffer layout in core dumps:
Debuggers have guess the FPU buffer layout in core dumps, which is
error prone. This is because AMD and Intel layouts differ.
To avoid buggy heuristics add a ELF section which describes the buffer
layout which can be retrieved by tools"
* tag 'x86-fpu-2024-09-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/elf: Add a new FPU buffer layout info to x86 core files
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/uapi/asm/elf.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/include/uapi/asm/elf.h b/arch/x86/include/uapi/asm/elf.h new file mode 100644 index 000000000000..468e135fa285 --- /dev/null +++ b/arch/x86/include/uapi/asm/elf.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _UAPI_ASM_X86_ELF_H +#define _UAPI_ASM_X86_ELF_H + +#include <linux/types.h> + +struct x86_xfeat_component { + __u32 type; + __u32 size; + __u32 offset; + __u32 flags; +} __packed; + +_Static_assert(sizeof(struct x86_xfeat_component) % 4 == 0, "x86_xfeat_component is not aligned"); + +#endif /* _UAPI_ASM_X86_ELF_H */ |