All of lore.kernel.org
 help / color / mirror / Atom feed
* Introduce "make debugconfig"
@ 2021-10-28 13:32 Qian Cai
  2021-10-28 14:03 ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Qian Cai @ 2021-10-28 13:32 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: linux-kbuild, linux-kernel

Hi there, some general debugging features like kmemleak, KASAN, lockdep,

UBSAN etc help fix many viruses 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 "make debugconfig" target, so that
it could amplify the general debugging/testing efforts and help
establish sensitive default values for those options across the broad.


The idea is to have a debugconfig inside kernel/configs/ and update
scripts/kconfig/Makefile and Documentation/admin-guide/README.rst
accordingly. I am still trying to figure out a few implementation
details like how to convert an existing .config to debugconfig, but want
to gather some feedback before I dive in too deep.

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

* Re: Introduce "make debugconfig"
  2021-10-28 13:32 Introduce "make debugconfig" Qian Cai
@ 2021-10-28 14:03 ` Masahiro Yamada
  2021-10-28 14:14   ` Qian Cai
  2021-10-28 15:08   ` Qian Cai
  0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2021-10-28 14:03 UTC (permalink / raw)
  To: Qian Cai; +Cc: Linux Kbuild mailing list, Linux Kernel Mailing List

On Thu, Oct 28, 2021 at 10:32 PM Qian Cai <quic_qiancai@quicinc.com> wrote:
>
> Hi there, some general debugging features like kmemleak, KASAN, lockdep,
>
> UBSAN etc help fix many viruses 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 "make debugconfig" target, so that
> it could amplify the general debugging/testing efforts and help
> establish sensitive default values for those options across the broad.
>
>
> The idea is to have a debugconfig inside kernel/configs/ and update
> scripts/kconfig/Makefile

Please do not wire it up to Makefile.




> and Documentation/admin-guide/README.rst
> accordingly. I am still trying to figure out a few implementation
> details like how to convert an existing .config to debugconfig, but want
> to gather some feedback before I dive in too deep.



-- 
Best Regards
Masahiro Yamada

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

* Re: Introduce "make debugconfig"
  2021-10-28 14:03 ` Masahiro Yamada
@ 2021-10-28 14:14   ` Qian Cai
  2021-10-28 15:08   ` Qian Cai
  1 sibling, 0 replies; 4+ messages in thread
From: Qian Cai @ 2021-10-28 14:14 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Linux Kbuild mailing list, Linux Kernel Mailing List



On 10/28/21 10:03 AM, Masahiro Yamada wrote:
>> The idea is to have a debugconfig inside kernel/configs/ and update
>> scripts/kconfig/Makefile
> 
> Please do not wire it up to Makefile.

Masahiro, I am afraid I don't follow here. I meant that in order for
"make help" to show things like:

debug.config - Enable Kconfig items for running kernel for general debugging

It needs to modify scripts/kconfig/Makefile or use a arch-specific
Makefile like kvm_guest.config. Do you mean you would prefer the latter?

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

* Re: Introduce "make debugconfig"
  2021-10-28 14:03 ` Masahiro Yamada
  2021-10-28 14:14   ` Qian Cai
@ 2021-10-28 15:08   ` Qian Cai
  1 sibling, 0 replies; 4+ messages in thread
From: Qian Cai @ 2021-10-28 15:08 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: Linux Kbuild mailing list, Linux Kernel Mailing List



On 10/28/21 10:03 AM, Masahiro Yamada wrote:
>> The idea is to have a debugconfig inside kernel/configs/ and update
>> scripts/kconfig/Makefile
> 
> Please do not wire it up to Makefile.

Okay, I guess you mean that like android-base.config, and don't need to
show up in "make help". I am fine with that and that would make things
simplier, and I'll bake a debug.config to kernel/configs for review.
Please let me know if I am missing anything.

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 13:32 Introduce "make debugconfig" Qian Cai
2021-10-28 14:03 ` Masahiro Yamada
2021-10-28 14:14   ` Qian Cai
2021-10-28 15:08   ` Qian Cai

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.