Re: [PATCH v3 0/2] Consolidate redundant register/stack access code

2016-02-09 Thread David Long
On 02/09/2016 04:45 AM, Ingo Molnar wrote: * Michael Ellerman wrote: On Tue, 2016-02-09 at 00:38 -0500, David Long wrote: From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch su

Re: [PATCH v3 0/2] Consolidate redundant register/stack access code

2016-02-09 Thread David Long
On 02/09/2016 04:36 AM, Michael Ellerman wrote: On Tue, 2016-02-09 at 00:38 -0500, David Long wrote: From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common ke

[PATCH v3 2/2] Consolidate redundant register/stack access code

2016-02-08 Thread David Long
From: "David A. Long" Several architectures have identical or functionally equivalent code implementing parts of the HAVE_REGS_AND_STACK_ACCESS_API feature. Move that code out of the architecture directories. Signed-off-by: David A. Long --- arch/arm/include/asm/ptrace.h | 6 --- ar

[PATCH v3 1/2] Move the pt_regs_offset struct definition from arch to common include file

2016-02-08 Thread David Long
From: "David A. Long" The pt_regs_offset structure is used for the HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files. It seems unlikely that definition would ever need to be changed regardless of architecture so lets move it into in

[PATCH v3 0/2] Consolidate redundant register/stack access code

2016-02-08 Thread David Long
From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files. I'm sending this out again (with updated distribution list) because v2 just never got pulled in, even though

[PATCH v2 2/2] Consolidate redundant register/stack access code

2015-07-26 Thread David Long
From: "David A. Long" Several architectures have identical or functionally equivalent code implementing parts of the HAVE_REGS_AND_STACK_ACCESS_API feature. Move that code out of the architecture directories. Signed-off-by: David A. Long --- arch/arm/include/asm/ptrace.h | 6 --- ar

[PATCH v2 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-07-26 Thread David Long
From: "David A. Long" The pt_regs_offset structure is used for the HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files. It seems unlikely that definition would ever need to be changed regardless of architecture so lets move it into in

[PATCH v2 0/2] Consolidate redundant register/stack access code

2015-07-26 Thread David Long
From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files. Changes since v1: Move the REG_OFFSET_NAME and REG_OFFSET_END macros to architecture- independent in

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-07-22 Thread David Long
On 07/22/15 01:11, Michael Ellerman wrote: On Wed, 2015-07-22 at 00:46 -0400, David Long wrote: On 06/29/15 23:29, Michael Ellerman wrote: On Wed, 2015-06-17 at 14:30 -0400, David Long wrote: On 06/16/15 09:17, Rob Herring wrote: On Mon, Jun 15, 2015 at 11:42 AM, David Long wrote

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-07-21 Thread David Long
On 06/29/15 23:29, Michael Ellerman wrote: On Wed, 2015-06-17 at 14:30 -0400, David Long wrote: On 06/16/15 09:17, Rob Herring wrote: On Mon, Jun 15, 2015 at 11:42 AM, David Long wrote: #define REG_OFFSET_NAME(r) \ {.name = #r, .offset = offsetof(struct pt_regs, ARM_##r

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-26 Thread David Long
On 06/19/15 12:58, Kees Cook wrote: On Fri, Jun 19, 2015 at 7:12 AM, David Long wrote: On 06/19/15 00:19, Michael Ellerman wrote: On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-24 Thread David Long
On 06/24/15 00:07, Michael Ellerman wrote: On Tue, 2015-06-23 at 09:48 -0400, David Long wrote: On 06/22/15 23:32, Michael Ellerman wrote: On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: On 06/19/15 00:19, Michael Ellerman wrote: On Mon, 2015-06-15 at 12:42 -0400, David Long wrote

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-23 Thread David Long
On 06/22/15 23:32, Michael Ellerman wrote: On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: On 06/19/15 00:19, Michael Ellerman wrote: On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-19 Thread David Long
On 06/19/15 00:19, Michael Ellerman wrote: On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-17 Thread David Long
On 06/16/15 09:17, Rob Herring wrote: On Mon, Jun 15, 2015 at 11:42 AM, David Long wrote: From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files. It seem

Re: [PATCH 0/2] Consolidate redundant register/stack access code

2015-06-15 Thread David Long
On 06/15/15 16:44, Kees Cook wrote: On Mon, Jun 15, 2015 at 9:42 AM, David Long wrote: From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files.

[PATCH 2/2] Consolidate redundant register/stack access code

2015-06-15 Thread David Long
From: "David A. Long" Several architectures have identical or functionally equivalent code implementing parts of the HAVE_REGS_AND_STACK_ACCESS_API feature. Move that code out of the architecture directories. Signed-off-by: David A. Long --- arch/arm/include/asm/ptrace.h | 6 --- ar

[PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-15 Thread David Long
From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files. It seems unlikely that definition would ever need to be changed regardless of architecture so lets move it into inclu

[PATCH 0/2] Consolidate redundant register/stack access code

2015-06-15 Thread David Long
From: "David A. Long" Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files. Note: Help regression testing s390, hexagon, and sh would be appreciated. Powerpc builds but I have no