linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Arm64 defconfig-debug
@ 2021-10-27 19:45 Qian Cai
  2021-10-28  7:49 ` Will Deacon
  0 siblings, 1 reply; 3+ messages in thread
From: Qian Cai @ 2021-10-27 19:45 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon; +Cc: linux-arm-kernel, linux-kernel

Hi there, some general debugging features like kmemleak, KASAN, lockdep,
UBSAN etc help fix many bugs like a microscope. On the other hand, those
features are scatter around and mixed up with more situational debugging
options making them difficult to consume properly.

Since I have been deal with those options on a daily basis for the last
a few years and accumulated the knowledge of their pros and cons, I am
thinking about to create an initial defconfig-debug available inside the
tree, so that it could amplify the general debugging/testing efforts for
arm64 across the broad.

The downside is that this might open a gate for other people to push yet
another subject-specific defconfig, but I don't see anything as
important as general debugging/testing at the moment. Then, there are
two defconfig need to be modified for some common changes, but I think
that is quite trivial to do. We could even create a simple script to
sync if that is not overkill.

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

* Re: Arm64 defconfig-debug
  2021-10-27 19:45 Arm64 defconfig-debug Qian Cai
@ 2021-10-28  7:49 ` Will Deacon
  2021-10-28 12:39   ` Qian Cai
  0 siblings, 1 reply; 3+ messages in thread
From: Will Deacon @ 2021-10-28  7:49 UTC (permalink / raw)
  To: Qian Cai; +Cc: Catalin Marinas, linux-arm-kernel, linux-kernel

On Wed, Oct 27, 2021 at 03:45:32PM -0400, Qian Cai wrote:
> Hi there, some general debugging features like kmemleak, KASAN, lockdep,
> UBSAN etc help fix many bugs like a microscope. On the other hand, those
> features are scatter around and mixed up with more situational debugging
> options making them difficult to consume properly.
> 
> Since I have been deal with those options on a daily basis for the last
> a few years and accumulated the knowledge of their pros and cons, I am
> thinking about to create an initial defconfig-debug available inside the
> tree, so that it could amplify the general debugging/testing efforts for
> arm64 across the broad.
> 
> The downside is that this might open a gate for other people to push yet
> another subject-specific defconfig, but I don't see anything as
> important as general debugging/testing at the moment. Then, there are
> two defconfig need to be modified for some common changes, but I think
> that is quite trivial to do. We could even create a simple script to
> sync if that is not overkill.

I'm not in favour of adding a whole new debug-flavoured defconfig for arm64,
but you might be able to add some reduced config file containing just the
options you're interested in to kernel/configs/. That said, I'm not sure the
existing files under there are well-maintained at all. The Android ones,
especially, looks like they should just be removed.

Will

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

* Re: Arm64 defconfig-debug
  2021-10-28  7:49 ` Will Deacon
@ 2021-10-28 12:39   ` Qian Cai
  0 siblings, 0 replies; 3+ messages in thread
From: Qian Cai @ 2021-10-28 12:39 UTC (permalink / raw)
  To: Will Deacon; +Cc: Catalin Marinas, linux-arm-kernel, linux-kernel



On 10/28/21 3:49 AM, Will Deacon wrote:
> I'm not in favour of adding a whole new debug-flavoured defconfig for arm64,
> but you might be able to add some reduced config file containing just the
> options you're interested in to kernel/configs/. That said, I'm not sure the
> existing files under there are well-maintained at all. The Android ones,
> especially, looks like they should just be removed.

Thanks for the pointer, Will. I'll dig into that direction then.

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

end of thread, other threads:[~2021-10-28 12:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 19:45 Arm64 defconfig-debug Qian Cai
2021-10-28  7:49 ` Will Deacon
2021-10-28 12:39   ` Qian Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).