All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
@ 2015-11-09 17:43 ` Yang Shi
  0 siblings, 0 replies; 12+ messages in thread
From: Yang Shi @ 2015-11-09 17:43 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, mark.rutland
  Cc: linux-kernel, linux-arm-kernel, linaro-kernel, yang.shi


According to the discussion on the mailing list, this version adds a new patch
to force select FRAME_POINTER for ARM64.

Change v2 --> v1:
1. Adds a new patch to force select FRAME_POINTER
2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
frame pointers


Yang Shi (2):
      arm64: remove redundant FRAME_POINTER kconfig option
      arm64: force to select FRAME_POINTER

 arch/arm64/Kconfig       | 1 +
 arch/arm64/Kconfig.debug | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
@ 2015-11-09 17:43 ` Yang Shi
  0 siblings, 0 replies; 12+ messages in thread
From: Yang Shi @ 2015-11-09 17:43 UTC (permalink / raw)
  To: linux-arm-kernel


According to the discussion on the mailing list, this version adds a new patch
to force select FRAME_POINTER for ARM64.

Change v2 --> v1:
1. Adds a new patch to force select FRAME_POINTER
2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
frame pointers


Yang Shi (2):
      arm64: remove redundant FRAME_POINTER kconfig option
      arm64: force to select FRAME_POINTER

 arch/arm64/Kconfig       | 1 +
 arch/arm64/Kconfig.debug | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/2] arm64: remove redundant FRAME_POINTER kconfig option
  2015-11-09 17:43 ` Yang Shi
@ 2015-11-09 17:43   ` Yang Shi
  -1 siblings, 0 replies; 12+ messages in thread
From: Yang Shi @ 2015-11-09 17:43 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, mark.rutland
  Cc: linux-kernel, linux-arm-kernel, linaro-kernel, yang.shi

FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine
it in arch/arm64/Kconfig.debug. Actually, the one defined in arm64 directory
is never used.
This adds a dependency on DEBUG_KERNEL for building with frame pointers.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
---
 arch/arm64/Kconfig.debug | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug
index d6285ef..915dea7 100644
--- a/arch/arm64/Kconfig.debug
+++ b/arch/arm64/Kconfig.debug
@@ -2,10 +2,6 @@ menu "Kernel hacking"
 
 source "lib/Kconfig.debug"
 
-config FRAME_POINTER
-	bool
-	default y
-
 config ARM64_PTDUMP
 	bool "Export kernel pagetable layout to userspace via debugfs"
 	depends on DEBUG_KERNEL
-- 
2.0.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 1/2] arm64: remove redundant FRAME_POINTER kconfig option
@ 2015-11-09 17:43   ` Yang Shi
  0 siblings, 0 replies; 12+ messages in thread
From: Yang Shi @ 2015-11-09 17:43 UTC (permalink / raw)
  To: linux-arm-kernel

FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine
it in arch/arm64/Kconfig.debug. Actually, the one defined in arm64 directory
is never used.
This adds a dependency on DEBUG_KERNEL for building with frame pointers.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
---
 arch/arm64/Kconfig.debug | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm64/Kconfig.debug b/arch/arm64/Kconfig.debug
index d6285ef..915dea7 100644
--- a/arch/arm64/Kconfig.debug
+++ b/arch/arm64/Kconfig.debug
@@ -2,10 +2,6 @@ menu "Kernel hacking"
 
 source "lib/Kconfig.debug"
 
-config FRAME_POINTER
-	bool
-	default y
-
 config ARM64_PTDUMP
 	bool "Export kernel pagetable layout to userspace via debugfs"
 	depends on DEBUG_KERNEL
-- 
2.0.2

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/2] arm64: force to select FRAME_POINTER
  2015-11-09 17:43 ` Yang Shi
@ 2015-11-09 17:43   ` Yang Shi
  -1 siblings, 0 replies; 12+ messages in thread
From: Yang Shi @ 2015-11-09 17:43 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, mark.rutland
  Cc: linux-kernel, linux-arm-kernel, linaro-kernel, yang.shi

ARM64 depends on frame pointer to get correct stack backtrace and need
FRAME_POINTER kconfig option enabled all the time.
However, currect implementation makes it could be disabled, so force it
to be selected by ARM64.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 440d906..b554da2 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -27,6 +27,7 @@ config ARM64
 	select CPU_PM if (SUSPEND || CPU_IDLE)
 	select DCACHE_WORD_ACCESS
 	select EDAC_SUPPORT
+	select FRAME_POINTER
 	select GENERIC_ALLOCATOR
 	select GENERIC_CLOCKEVENTS
 	select GENERIC_CLOCKEVENTS_BROADCAST
-- 
2.0.2


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/2] arm64: force to select FRAME_POINTER
@ 2015-11-09 17:43   ` Yang Shi
  0 siblings, 0 replies; 12+ messages in thread
From: Yang Shi @ 2015-11-09 17:43 UTC (permalink / raw)
  To: linux-arm-kernel

ARM64 depends on frame pointer to get correct stack backtrace and need
FRAME_POINTER kconfig option enabled all the time.
However, currect implementation makes it could be disabled, so force it
to be selected by ARM64.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 440d906..b554da2 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -27,6 +27,7 @@ config ARM64
 	select CPU_PM if (SUSPEND || CPU_IDLE)
 	select DCACHE_WORD_ACCESS
 	select EDAC_SUPPORT
+	select FRAME_POINTER
 	select GENERIC_ALLOCATOR
 	select GENERIC_CLOCKEVENTS
 	select GENERIC_CLOCKEVENTS_BROADCAST
-- 
2.0.2

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
  2015-11-09 17:43 ` Yang Shi
@ 2015-11-09 18:14   ` Catalin Marinas
  -1 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2015-11-09 18:14 UTC (permalink / raw)
  To: Yang Shi
  Cc: will.deacon, mark.rutland, linaro-kernel, linux-kernel, linux-arm-kernel

On Mon, Nov 09, 2015 at 09:43:55AM -0800, Yang Shi wrote:
> According to the discussion on the mailing list, this version adds a new patch
> to force select FRAME_POINTER for ARM64.
> 
> Change v2 --> v1:
> 1. Adds a new patch to force select FRAME_POINTER
> 2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
> frame pointers
> 
> 
> Yang Shi (2):
>       arm64: remove redundant FRAME_POINTER kconfig option
>       arm64: force to select FRAME_POINTER

Do you really need two patches for this?

-- 
Catalin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
@ 2015-11-09 18:14   ` Catalin Marinas
  0 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2015-11-09 18:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Nov 09, 2015 at 09:43:55AM -0800, Yang Shi wrote:
> According to the discussion on the mailing list, this version adds a new patch
> to force select FRAME_POINTER for ARM64.
> 
> Change v2 --> v1:
> 1. Adds a new patch to force select FRAME_POINTER
> 2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
> frame pointers
> 
> 
> Yang Shi (2):
>       arm64: remove redundant FRAME_POINTER kconfig option
>       arm64: force to select FRAME_POINTER

Do you really need two patches for this?

-- 
Catalin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
  2015-11-09 18:14   ` Catalin Marinas
@ 2015-11-09 18:16     ` Shi, Yang
  -1 siblings, 0 replies; 12+ messages in thread
From: Shi, Yang @ 2015-11-09 18:16 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: will.deacon, mark.rutland, linaro-kernel, linux-kernel, linux-arm-kernel

On 11/9/2015 10:14 AM, Catalin Marinas wrote:
> On Mon, Nov 09, 2015 at 09:43:55AM -0800, Yang Shi wrote:
>> According to the discussion on the mailing list, this version adds a new patch
>> to force select FRAME_POINTER for ARM64.
>>
>> Change v2 --> v1:
>> 1. Adds a new patch to force select FRAME_POINTER
>> 2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
>> frame pointers
>>
>>
>> Yang Shi (2):
>>        arm64: remove redundant FRAME_POINTER kconfig option
>>        arm64: force to select FRAME_POINTER
>
> Do you really need two patches for this?

I just thought it may be clearer in this way. If nobody thinks it is 
necessary, I definitely could merge them into one.

Thanks,
Yang

>


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
@ 2015-11-09 18:16     ` Shi, Yang
  0 siblings, 0 replies; 12+ messages in thread
From: Shi, Yang @ 2015-11-09 18:16 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/9/2015 10:14 AM, Catalin Marinas wrote:
> On Mon, Nov 09, 2015 at 09:43:55AM -0800, Yang Shi wrote:
>> According to the discussion on the mailing list, this version adds a new patch
>> to force select FRAME_POINTER for ARM64.
>>
>> Change v2 --> v1:
>> 1. Adds a new patch to force select FRAME_POINTER
>> 2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
>> frame pointers
>>
>>
>> Yang Shi (2):
>>        arm64: remove redundant FRAME_POINTER kconfig option
>>        arm64: force to select FRAME_POINTER
>
> Do you really need two patches for this?

I just thought it may be clearer in this way. If nobody thinks it is 
necessary, I definitely could merge them into one.

Thanks,
Yang

>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
  2015-11-09 18:16     ` Shi, Yang
@ 2015-11-09 18:20       ` Catalin Marinas
  -1 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2015-11-09 18:20 UTC (permalink / raw)
  To: Shi, Yang
  Cc: mark.rutland, linaro-kernel, will.deacon, linux-kernel, linux-arm-kernel

On Mon, Nov 09, 2015 at 10:16:32AM -0800, Shi, Yang wrote:
> On 11/9/2015 10:14 AM, Catalin Marinas wrote:
> >On Mon, Nov 09, 2015 at 09:43:55AM -0800, Yang Shi wrote:
> >>According to the discussion on the mailing list, this version adds a new patch
> >>to force select FRAME_POINTER for ARM64.
> >>
> >>Change v2 --> v1:
> >>1. Adds a new patch to force select FRAME_POINTER
> >>2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
> >>frame pointers
> >>
> >>
> >>Yang Shi (2):
> >>       arm64: remove redundant FRAME_POINTER kconfig option
> >>       arm64: force to select FRAME_POINTER
> >
> >Do you really need two patches for this?
> 
> I just thought it may be clearer in this way. If nobody thinks it is
> necessary, I definitely could merge them into one.

Please merge them into one.

-- 
Catalin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it
@ 2015-11-09 18:20       ` Catalin Marinas
  0 siblings, 0 replies; 12+ messages in thread
From: Catalin Marinas @ 2015-11-09 18:20 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Nov 09, 2015 at 10:16:32AM -0800, Shi, Yang wrote:
> On 11/9/2015 10:14 AM, Catalin Marinas wrote:
> >On Mon, Nov 09, 2015 at 09:43:55AM -0800, Yang Shi wrote:
> >>According to the discussion on the mailing list, this version adds a new patch
> >>to force select FRAME_POINTER for ARM64.
> >>
> >>Change v2 --> v1:
> >>1. Adds a new patch to force select FRAME_POINTER
> >>2. Notes that this change adds a dependency on DEBUG_KERNEL for building with
> >>frame pointers
> >>
> >>
> >>Yang Shi (2):
> >>       arm64: remove redundant FRAME_POINTER kconfig option
> >>       arm64: force to select FRAME_POINTER
> >
> >Do you really need two patches for this?
> 
> I just thought it may be clearer in this way. If nobody thinks it is
> necessary, I definitely could merge them into one.

Please merge them into one.

-- 
Catalin

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-11-09 18:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 17:43 [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it Yang Shi
2015-11-09 17:43 ` Yang Shi
2015-11-09 17:43 ` [PATCH 1/2] arm64: remove redundant FRAME_POINTER kconfig option Yang Shi
2015-11-09 17:43   ` Yang Shi
2015-11-09 17:43 ` [PATCH 2/2] arm64: force to select FRAME_POINTER Yang Shi
2015-11-09 17:43   ` Yang Shi
2015-11-09 18:14 ` [PATCH V2 0/2] arm64: cleanup FRAME_POINTER kconfig option and force to select it Catalin Marinas
2015-11-09 18:14   ` Catalin Marinas
2015-11-09 18:16   ` Shi, Yang
2015-11-09 18:16     ` Shi, Yang
2015-11-09 18:20     ` Catalin Marinas
2015-11-09 18:20       ` Catalin Marinas

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.