[PATCH v6 08/10] RFC: elf.h changes

Janosch Frank posted 10 patches 3 years, 3 months ago
Maintainers: "Marc-André Lureau" <marcandre.lureau@redhat.com>, Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Eric Farman <farman@linux.ibm.com>, Richard Henderson <richard.henderson@linaro.org>, David Hildenbrand <david@redhat.com>, Cornelia Huck <cohuck@redhat.com>, Thomas Huth <thuth@redhat.com>
[PATCH v6 08/10] RFC: elf.h changes
Posted by Janosch Frank 3 years, 3 months ago
Adding two s390x note types

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
---
 include/elf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/elf.h b/include/elf.h
index 3d6b9062c0..8bf1e72720 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -1650,6 +1650,8 @@ typedef struct elf64_shdr {
 #define NT_TASKSTRUCT	4
 #define NT_AUXV		6
 #define NT_PRXFPREG     0x46e62b7f      /* copied from gdb5.1/include/elf/common.h */
+#define NT_S390_PV_CPU_DATA	0x30e	/* s390 protvirt cpu dump data */
+#define NT_S390_RI_CB	0x30d		/* s390 runtime instrumentation */
 #define NT_S390_GS_CB   0x30b           /* s390 guarded storage registers */
 #define NT_S390_VXRS_HIGH 0x30a         /* s390 vector registers 16-31 */
 #define NT_S390_VXRS_LOW  0x309         /* s390 vector registers 0-15 (lower half) */
-- 
2.34.1
Re: [PATCH v6 08/10] RFC: elf.h changes
Posted by Thomas Huth 3 years, 3 months ago
On 17/10/2022 10.38, Janosch Frank wrote:
> Adding two s390x note types
> 
> Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
> ---
>   include/elf.h | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/include/elf.h b/include/elf.h
> index 3d6b9062c0..8bf1e72720 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -1650,6 +1650,8 @@ typedef struct elf64_shdr {
>   #define NT_TASKSTRUCT	4
>   #define NT_AUXV		6
>   #define NT_PRXFPREG     0x46e62b7f      /* copied from gdb5.1/include/elf/common.h */
> +#define NT_S390_PV_CPU_DATA	0x30e	/* s390 protvirt cpu dump data */
> +#define NT_S390_RI_CB	0x30d		/* s390 runtime instrumentation */
>   #define NT_S390_GS_CB   0x30b           /* s390 guarded storage registers */
>   #define NT_S390_VXRS_HIGH 0x30a         /* s390 vector registers 16-31 */
>   #define NT_S390_VXRS_LOW  0x309         /* s390 vector registers 0-15 (lower half) */

Matches include/uapi/linux/elf.h in the Linux kernel sources:

Reviewed-by: Thomas Huth <thuth@redhat.com>