[PATCH 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files
Michael Ellerman
mpe at ellerman.id.au
Fri Mar 15 09:13:10 AEDT 2024
Hi Vignesh,
Vignesh Balasubramanian <vigbalas at amd.com> writes:
> Add a new .note section containing type, size, offset and flags of
> every xfeature that is present.
>
> This information will be used by the debuggers to understand the XSAVE
> layout of the machine where the core file is dumped, and to read XSAVE
> registers, especially during cross-platform debugging.
>
> Co-developed-by: Jini Susan George <jinisusan.george at amd.com>
> Signed-off-by: Jini Susan George <jinisusan.george at amd.com>
> Signed-off-by: Vignesh Balasubramanian <vigbalas at amd.com>
> ---
> arch/Kconfig | 9 +++
> arch/powerpc/Kconfig | 1 +
> arch/powerpc/include/asm/elf.h | 2 -
> arch/x86/Kconfig | 1 +
> arch/x86/include/asm/elf.h | 7 +++
> arch/x86/kernel/fpu/xstate.c | 101 +++++++++++++++++++++++++++++++++
> include/linux/elf.h | 2 +-
> include/uapi/linux/elf.h | 1 +
> 8 files changed, 121 insertions(+), 3 deletions(-)
IMHO you should split the changes to replace ARCH_HAVE_EXTRA_ELF_NOTES
with CONFIG_ARCH_HAVE_EXTRA_ELF_NOTES into a lead-up patch.
cheers
More information about the Linuxppc-dev
mailing list