From: Christoph Hellwig <hch@lst.de> Date: 2019-06-24 05:47:36
Hi all,
asm-generic/ptrace.h is a little weird in that it doesn't actually
implement any functionality, but it provided multiple layers of macros
that just implement trivial inline functions. We implement those
directly in the few architectures and be off with a much simpler
design.
I'm not sure which tree is the right place, but may this can go through
the asm-generic tree since it removes an asm-generic header?
Changes since v2:
- rebase to latest Linus' tree that added an SPDX tag to
asm-generic/ptrace.h
- collected two more Acks from Oleg
Changes since v1:
- add a missing empty line between functions
From: Christoph Hellwig <hch@lst.de> Date: 2019-06-24 05:47:40
Doing the indirection through macros for the regs accessors just
makes them harder to read, so implement the helpers directly.
Note that only the helpers actually used are implemented now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
---
arch/arm64/include/asm/ptrace.h | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
From: Christoph Hellwig <hch@lst.de> Date: 2019-06-24 05:47:44
Doing the indirection through macros for the regs accessors just
makes them harder to read, so implement the helpers directly.
Note that only the helpers actually used are implemented now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
arch/powerpc/include/asm/ptrace.h | 29 ++++++++++++++++++++++-------
1 file changed, 22 insertions(+), 7 deletions(-)
From: Christoph Hellwig <hch@lst.de> Date: 2019-06-24 05:47:48
Doing the indirection through macros for the regs accessors just
makes them harder to read, so implement the helpers directly.
Note that only the helpers actually used are implemented now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
arch/sh/include/asm/ptrace.h | 29 +++++++++++++++++++++++++----
1 file changed, 25 insertions(+), 4 deletions(-)
From: Christoph Hellwig <hch@lst.de> Date: 2019-06-24 05:47:52
Doing the indirection through macros for the regs accessors just
makes them harder to read, so implement the helpers directly.
Note that only the helpers actually used are implemented now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
---
arch/x86/include/asm/ptrace.h | 30 +++++++++++++++++++++++++-----
1 file changed, 25 insertions(+), 5 deletions(-)
From: Thomas Gleixner <hidden> Date: 2019-06-24 07:23:03
On Mon, 24 Jun 2019, Christoph Hellwig wrote:
Doing the indirection through macros for the regs accessors just
makes them harder to read, so implement the helpers directly.
Note that only the helpers actually used are implemented now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
From: Thomas Gleixner <hidden> Date: 2019-06-24 07:23:20
On Mon, 24 Jun 2019, Christoph Hellwig wrote:
asm-generic/ptrace.h is a little weird in that it doesn't actually
implement any functionality, but it provided multiple layers of macros
that just implement trivial inline functions. We implement those
directly in the few architectures and be off with a much simpler
design.
I'm not sure which tree is the right place, but may this can go through
the asm-generic tree since it removes an asm-generic header?
On Mon, Jun 24, 2019 at 9:23 AM Thomas Gleixner [off-list ref] wrote:
On Mon, 24 Jun 2019, Christoph Hellwig wrote:
quoted
asm-generic/ptrace.h is a little weird in that it doesn't actually
implement any functionality, but it provided multiple layers of macros
that just implement trivial inline functions. We implement those
directly in the few architectures and be off with a much simpler
design.
I'm not sure which tree is the right place, but may this can go through
the asm-generic tree since it removes an asm-generic header?
Makes sense.
Applied and pushed to asm-generic.git/master now, sorry for the delay.
Arnd