lkml.org 
[lkml]   [2016]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v11 01/27] elf: Add powerpc specific core note sections
    Date
    From: Anshuman Khandual <khandual@linux.vnet.ibm.com>

    This patch adds twelve ELF core note sections for powerpc
    architecture for various registers and register sets which
    need to be accessed from ptrace interface and then gdb.
    These additions include special purpose registers like TAR,
    PPR, DSCR, TM running and checkpointed state for various
    register sets, EBB related register set, performance monitor
    register set etc. Addition of these new ELF core note
    sections extends the existing ELF ABI on powerpc arch without
    affecting it in any manner.

    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Michael Ellerman <mpe@ellerman.id.au>
    Cc: Shuah Khan <shuahkh@osg.samsung.com>
    Cc: Anton Blanchard <anton@samba.org>
    Cc: Cyril Bur <cyrilbur@gmail.com>
    Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>
    Cc: Simon Guo <wei.guo.simon@gmail.com>
    Cc: Ulrich Weigand <ulrich.weigand@de.ibm.com>
    Cc: Michael Neuling <mikey@neuling.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Rashmica Gupta <rashmicy@gmail.com>
    Cc: Khem Raj <raj.khem@gmail.com>
    Cc: Jessica Yu <jeyu@redhat.com>
    Cc: Jiri Kosina <jkosina@suse.cz>
    Cc: Miroslav Benes <mbenes@suse.cz>
    Cc: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
    Cc: Chris Smart <chris@distroguy.com>
    Cc: linuxppc-dev@lists.ozlabs.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-kselftest@vger.kernel.org
    Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
    Signed-off-by: Simon Guo <wei.guo.simon@gmail.com>
    ---
    include/uapi/linux/elf.h | 13 +++++++++++++
    1 file changed, 13 insertions(+)

    diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
    index cb4a72f..1be3c5f 100644
    --- a/include/uapi/linux/elf.h
    +++ b/include/uapi/linux/elf.h
    @@ -381,6 +381,19 @@ typedef struct elf64_shdr {
    #define NT_PPC_VMX 0x100 /* PowerPC Altivec/VMX registers */
    #define NT_PPC_SPE 0x101 /* PowerPC SPE/EVR registers */
    #define NT_PPC_VSX 0x102 /* PowerPC VSX registers */
    +#define NT_PPC_TAR 0x103 /* Target Address Register */
    +#define NT_PPC_PPR 0x104 /* Program Priority Register */
    +#define NT_PPC_DSCR 0x105 /* Data Stream Control Register */
    +#define NT_PPC_EBB 0x106 /* Event Based Branch Registers */
    +#define NT_PPC_PMU 0x107 /* Performance Monitor Registers */
    +#define NT_PPC_TM_CGPR 0x108 /* TM checkpointed GPR Registers */
    +#define NT_PPC_TM_CFPR 0x109 /* TM checkpointed FPR Registers */
    +#define NT_PPC_TM_CVMX 0x10a /* TM checkpointed VMX Registers */
    +#define NT_PPC_TM_CVSX 0x10b /* TM checkpointed VSX Registers */
    +#define NT_PPC_TM_SPR 0x10c /* TM Special Purpose Registers */
    +#define NT_PPC_TM_CTAR 0x10d /* TM checkpointed Target Address Register */
    +#define NT_PPC_TM_CPPR 0x10e /* TM checkpointed Program Priority Register */
    +#define NT_PPC_TM_CDSCR 0x10f /* TM checkpointed Data Stream Control Register */
    #define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */
    #define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */
    #define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */
    --
    1.8.3.1
    \
     
     \ /
      Last update: 2016-07-17 04:41    [W:3.546 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site