From: "Dmitry V. Levin" <ldv@altlinux.org> To: linux-kernel@vger.kernel.org Cc: Elvira Khabirova <lineprinter@altlinux.org>, Eugene Syromyatnikov <esyr@redhat.com>, Oleg Nesterov <oleg@redhat.com>, Andy Lutomirski <luto@kernel.org>, Vineet Gupta <vgupta@synopsys.com>, Alexey Brodkin <alexey.brodkin@synopsys.com>, linux-snps-arc@lists.infradead.org Subject: [PATCH v7 04/22] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Date: Mon, 7 Jan 2019 05:53:05 +0300 [thread overview] Message-ID: <20190107025305.GD1207@altlinux.org> (raw) In-Reply-To: 20190107025101.GA1182@altlinux.org These should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_ARCOMPACT and EM_ARCV2 in order to define AUDIT_ARCH_ARCOMPACT and AUDIT_ARCH_ARCV2 which are needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by: Vineet Gupta <vgupta@synopsys.com> Cc: Elvira Khabirova <lineprinter@altlinux.org> Cc: Eugene Syromyatnikov <esyr@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Alexey Brodkin <alexey.brodkin@synopsys.com> Cc: linux-snps-arc@lists.infradead.org Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> --- Notes: v7: unchanged v6: unchanged v5: added Cc v2: added Acked-by arch/arc/include/asm/elf.h | 6 +----- include/uapi/linux/elf-em.h | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arc/include/asm/elf.h b/arch/arc/include/asm/elf.h index aa2d6da9d187..2b80c184c9c8 100644 --- a/arch/arc/include/asm/elf.h +++ b/arch/arc/include/asm/elf.h @@ -10,13 +10,9 @@ #define __ASM_ARC_ELF_H #include <linux/types.h> +#include <linux/elf-em.h> #include <uapi/asm/elf.h> -/* These ELF defines belong to uapi but libc elf.h already defines them */ -#define EM_ARCOMPACT 93 - -#define EM_ARCV2 195 /* ARCv2 Cores */ - #define EM_ARC_INUSE (IS_ENABLED(CONFIG_ISA_ARCOMPACT) ? \ EM_ARCOMPACT : EM_ARCV2) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 0c3000faedba..081675ed89cb 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -34,6 +34,7 @@ #define EM_M32R 88 /* Renesas M32R */ #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ +#define EM_ARCOMPACT 93 /* ARCompact processor */ #define EM_XTENSA 94 /* Tensilica Xtensa Architecture */ #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */ @@ -42,6 +43,7 @@ #define EM_TILEPRO 188 /* Tilera TILEPro */ #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ #define EM_TILEGX 191 /* Tilera TILE-Gx */ +#define EM_ARCV2 195 /* ARCv2 Cores */ #define EM_RISCV 243 /* RISC-V */ #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ #define EM_CSKY 252 /* C-SKY */ -- ldv
WARNING: multiple messages have this Message-ID (diff)
From: ldv@altlinux.org (Dmitry V. Levin) To: linux-snps-arc@lists.infradead.org Subject: [PATCH v7 04/22] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Date: Mon, 7 Jan 2019 05:53:05 +0300 [thread overview] Message-ID: <20190107025305.GD1207@altlinux.org> (raw) In-Reply-To: 20190107025101.GA1182@altlinux.org These should never have been defined in the arch tree to begin with, and now uapi/linux/audit.h header is going to use EM_ARCOMPACT and EM_ARCV2 in order to define AUDIT_ARCH_ARCOMPACT and AUDIT_ARCH_ARCV2 which are needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. Acked-by: Vineet Gupta <vgupta at synopsys.com> Cc: Elvira Khabirova <lineprinter at altlinux.org> Cc: Eugene Syromyatnikov <esyr at redhat.com> Cc: Oleg Nesterov <oleg at redhat.com> Cc: Andy Lutomirski <luto at kernel.org> Cc: Alexey Brodkin <alexey.brodkin at synopsys.com> Cc: linux-snps-arc at lists.infradead.org Signed-off-by: Dmitry V. Levin <ldv at altlinux.org> --- Notes: v7: unchanged v6: unchanged v5: added Cc v2: added Acked-by arch/arc/include/asm/elf.h | 6 +----- include/uapi/linux/elf-em.h | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arc/include/asm/elf.h b/arch/arc/include/asm/elf.h index aa2d6da9d187..2b80c184c9c8 100644 --- a/arch/arc/include/asm/elf.h +++ b/arch/arc/include/asm/elf.h @@ -10,13 +10,9 @@ #define __ASM_ARC_ELF_H #include <linux/types.h> +#include <linux/elf-em.h> #include <uapi/asm/elf.h> -/* These ELF defines belong to uapi but libc elf.h already defines them */ -#define EM_ARCOMPACT 93 - -#define EM_ARCV2 195 /* ARCv2 Cores */ - #define EM_ARC_INUSE (IS_ENABLED(CONFIG_ISA_ARCOMPACT) ? \ EM_ARCOMPACT : EM_ARCV2) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 0c3000faedba..081675ed89cb 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -34,6 +34,7 @@ #define EM_M32R 88 /* Renesas M32R */ #define EM_MN10300 89 /* Panasonic/MEI MN10300, AM33 */ #define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */ +#define EM_ARCOMPACT 93 /* ARCompact processor */ #define EM_XTENSA 94 /* Tensilica Xtensa Architecture */ #define EM_BLACKFIN 106 /* ADI Blackfin Processor */ #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */ @@ -42,6 +43,7 @@ #define EM_TILEPRO 188 /* Tilera TILEPro */ #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ #define EM_TILEGX 191 /* Tilera TILE-Gx */ +#define EM_ARCV2 195 /* ARCv2 Cores */ #define EM_RISCV 243 /* RISC-V */ #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ #define EM_CSKY 252 /* C-SKY */ -- ldv
next prev parent reply other threads:[~2019-01-07 2:53 UTC|newest] Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-01-07 2:51 [PATCH v7 00/22] ptrace: add PTRACE_GET_SYSCALL_INFO request Dmitry V. Levin 2019-01-07 2:51 ` Dmitry V. Levin 2019-01-07 2:51 ` Dmitry V. Levin 2019-01-07 2:51 ` [OpenRISC] " Dmitry V. Levin 2019-01-07 2:51 ` Dmitry V. Levin 2019-01-07 2:51 ` Dmitry V. Levin 2019-01-07 2:51 ` Dmitry V. Levin 2019-01-07 2:52 ` [PATCH v7 01/22] asm-generic/syscall.h: prepare for inclusion by other files Dmitry V. Levin 2019-01-07 2:52 ` Dmitry V. Levin 2019-01-07 2:52 ` [PATCH v7 02/22] asm-generic/syscall.h: turn syscall_[gs]et_arguments into wrappers Dmitry V. Levin 2019-01-07 2:52 ` [PATCH v7 03/22] alpha: define remaining syscall_get_* functions Dmitry V. Levin 2019-01-07 7:25 ` kbuild test robot 2019-01-07 2:53 ` Dmitry V. Levin [this message] 2019-01-07 2:53 ` [PATCH v7 04/22] Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 05/22] arc: define syscall_get_arch() Dmitry V. Levin 2019-01-07 2:53 ` Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 06/22] c6x: " Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 07/22] h8300: define remaining syscall_get_* functions Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 08/22] Move EM_HEXAGON to uapi/linux/elf-em.h Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 09/22] hexagon: define remaining syscall_get_* functions Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 10/22] Move EM_NDS32 to uapi/linux/elf-em.h Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 11/22] nds32: define syscall_get_arch() Dmitry V. Levin 2019-01-07 2:53 ` [PATCH v7 12/22] nios2: " Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 13/22] m68k: add asm/syscall.h Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 14/22] mips: define syscall_get_error() Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 15/22] parisc: " Dmitry V. Levin 2019-02-28 19:38 ` Dmitry V. Levin 2019-02-28 21:39 ` Helge Deller 2019-01-07 2:54 ` [PATCH v7 16/22] powerpc: " Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-02-28 19:39 ` Dmitry V. Levin 2019-02-28 19:39 ` Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 17/22] riscv: define syscall_get_arch() Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 18/22] Move EM_UNICORE to uapi/linux/elf-em.h Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 19/22] unicore32: add asm/syscall.h Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 20/22] syscall_get_arch: add "struct task_struct *" argument Dmitry V. Levin 2019-01-07 2:54 ` [OpenRISC] " Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin 2019-01-07 2:54 ` [PATCH v7 21/22] ptrace: add PTRACE_GET_SYSCALL_INFO request Dmitry V. Levin 2019-01-07 2:54 ` Dmitry V. Levin [not found] ` <20190107025455.GU1207-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> 2019-01-07 6:21 ` kbuild test robot 2019-01-07 12:54 ` [PATCH] nds32: fix asm/syscall.h Dmitry V. Levin 2019-02-28 21:58 ` Dmitry V. Levin 2019-01-07 7:05 ` [PATCH v7 21/22] ptrace: add PTRACE_GET_SYSCALL_INFO request kbuild test robot 2019-01-07 14:58 ` Dmitry V. Levin 2019-01-07 2:55 ` [PATCH v7 22/22] selftests/ptrace: add a test case for PTRACE_GET_SYSCALL_INFO Dmitry V. Levin 2019-01-07 2:55 ` Dmitry V. Levin 2019-01-07 2:55 ` ldv
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190107025305.GD1207@altlinux.org \ --to=ldv@altlinux.org \ --cc=alexey.brodkin@synopsys.com \ --cc=esyr@redhat.com \ --cc=lineprinter@altlinux.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-snps-arc@lists.infradead.org \ --cc=luto@kernel.org \ --cc=oleg@redhat.com \ --cc=vgupta@synopsys.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.