linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on
@ 2013-10-26 20:58 Krzysztof Mazur
  2013-10-27  3:30 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Mazur @ 2013-10-26 20:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: Krzysztof Mazur, Jason Baron, Greg Kroah-Hartman

Depending on options that are configured later makes them hard
to enable unless the user knows that he must go backwards.

Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 06344d9..d5c9247 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -48,7 +48,7 @@ config DYNAMIC_DEBUG
 	bool "Enable dynamic printk() support"
 	default n
 	depends on PRINTK
-	depends on DEBUG_FS
+	select DEBUG_FS
 	help
 
 	  Compiles debug level messages into the kernel, which would not
-- 
1.8.4.1.635.g55556a5


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

* Re: [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on
  2013-10-26 20:58 [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on Krzysztof Mazur
@ 2013-10-27  3:30 ` Greg Kroah-Hartman
  2013-10-27  8:01   ` Krzysztof Mazur
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2013-10-27  3:30 UTC (permalink / raw)
  To: Krzysztof Mazur; +Cc: linux-kernel, Jason Baron

On Sat, Oct 26, 2013 at 10:58:13PM +0200, Krzysztof Mazur wrote:
> Depending on options that are configured later makes them hard
> to enable unless the user knows that he must go backwards.

Really?  We've had this for well over 2 years, people are confused about
this?

Where?


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

* Re: [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on
  2013-10-27  3:30 ` Greg Kroah-Hartman
@ 2013-10-27  8:01   ` Krzysztof Mazur
  2013-10-27 14:38     ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Mazur @ 2013-10-27  8:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel, Jason Baron

On Sat, Oct 26, 2013 at 08:30:00PM -0700, Greg Kroah-Hartman wrote:
> On Sat, Oct 26, 2013 at 10:58:13PM +0200, Krzysztof Mazur wrote:
> > Depending on options that are configured later makes them hard
> > to enable unless the user knows that he must go backwards.
> 
> Really?  We've had this for well over 2 years, people are confused about
> this?
> 
> Where?

The v3.10 is ok - CONFIG_DYNAMIC_DEBUG is after CONFIG_DEBUG_FS.

Maybe it's just me, because on my config I have CONFIG_DEBUG_FS=y,
and on the system I was testing usbatm I had CONFIG_DEBUG_FS=n.

BTW, on x86_64 to disable CONFIG_DEBUG_FS you need to disable
CONFIG_AMD_IOMMU_STATS, which is enabled by default in the
x86_64_defconfig (I think that CONFIG_AMD_IOMMU_STATS=n it's
a better default). If you enable CONFIG_DEBUG_KERNEL you
need to disable CONFIG_FTRACE which is enabled by default.
So a lot of users will have CONFIG_DEBUG_FS already selected.

Thanks,
Krzysiek

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

* Re: [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on
  2013-10-27  8:01   ` Krzysztof Mazur
@ 2013-10-27 14:38     ` Randy Dunlap
  2013-10-27 15:57       ` Krzysztof Mazur
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2013-10-27 14:38 UTC (permalink / raw)
  To: Krzysztof Mazur, Greg Kroah-Hartman; +Cc: linux-kernel, Jason Baron

On 10/27/13 01:01, Krzysztof Mazur wrote:
> On Sat, Oct 26, 2013 at 08:30:00PM -0700, Greg Kroah-Hartman wrote:
>> On Sat, Oct 26, 2013 at 10:58:13PM +0200, Krzysztof Mazur wrote:
>>> Depending on options that are configured later makes them hard
>>> to enable unless the user knows that he must go backwards.
>>
>> Really?  We've had this for well over 2 years, people are confused about
>> this?
>>
>> Where?
> 
> The v3.10 is ok - CONFIG_DYNAMIC_DEBUG is after CONFIG_DEBUG_FS.
> 
> Maybe it's just me, because on my config I have CONFIG_DEBUG_FS=y,
> and on the system I was testing usbatm I had CONFIG_DEBUG_FS=n.
> 
> BTW, on x86_64 to disable CONFIG_DEBUG_FS you need to disable
> CONFIG_AMD_IOMMU_STATS, which is enabled by default in the
> x86_64_defconfig (I think that CONFIG_AMD_IOMMU_STATS=n it's
> a better default). If you enable CONFIG_DEBUG_KERNEL you
> need to disable CONFIG_FTRACE which is enabled by default.
> So a lot of users will have CONFIG_DEBUG_FS already selected.

You are making a good argument for not using 'select' at all.

-- 
~Randy

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

* Re: [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on
  2013-10-27 14:38     ` Randy Dunlap
@ 2013-10-27 15:57       ` Krzysztof Mazur
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Mazur @ 2013-10-27 15:57 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Greg Kroah-Hartman, linux-kernel, Jason Baron

On Sun, Oct 27, 2013 at 07:38:08AM -0700, Randy Dunlap wrote:
> On 10/27/13 01:01, Krzysztof Mazur wrote:
> > On Sat, Oct 26, 2013 at 08:30:00PM -0700, Greg Kroah-Hartman wrote:
> >> On Sat, Oct 26, 2013 at 10:58:13PM +0200, Krzysztof Mazur wrote:
> >>> Depending on options that are configured later makes them hard
> >>> to enable unless the user knows that he must go backwards.
> >>
> >> Really?  We've had this for well over 2 years, people are confused about
> >> this?
> >>
> >> Where?
> > 
> > The v3.10 is ok - CONFIG_DYNAMIC_DEBUG is after CONFIG_DEBUG_FS.
> > 
> > Maybe it's just me, because on my config I have CONFIG_DEBUG_FS=y,
> > and on the system I was testing usbatm I had CONFIG_DEBUG_FS=n.
> > 
> > BTW, on x86_64 to disable CONFIG_DEBUG_FS you need to disable
> > CONFIG_AMD_IOMMU_STATS, which is enabled by default in the
> > x86_64_defconfig (I think that CONFIG_AMD_IOMMU_STATS=n it's
> > a better default). If you enable CONFIG_DEBUG_KERNEL you
> > need to disable CONFIG_FTRACE which is enabled by default.
> > So a lot of users will have CONFIG_DEBUG_FS already selected.
> 
> You are making a good argument for not using 'select' at all.
> 

I don't think that using 'select' is bad, but 'select' + 'default y'
+ defconfigs currently enable a lot of unwanted features. The
'select' chain that enables DEBUG_FS is even better: EMBEDDED selects EXPERT,
EXPERT selects DEBUG_KERNEL, DEBUG_KERNEL enables FTRACE by 'default y'
and FTRACE selects DEBUG_FS.

I don't care if we add select DEBUG_FS in DYNAMIC_DEBUG or change
the order of "printk and dmesg options" and "Compile-time checks and
compiler options" submenus, or just do nothing. I just used
'select DEBUG_FS' because everything else in the lib/Kconfig.debug
already use it.

Maybe "make menuconfig" and "make xconfig" are just broken, because
"make config" does the right thing, the configurator is restarted and
you will be asked for all earlier options that you missed.

Krzysiek

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

end of thread, other threads:[~2013-10-27 15:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-26 20:58 [PATCH] DYNAMIC_DEBUG: use select DEBUG_FS instead of depends on Krzysztof Mazur
2013-10-27  3:30 ` Greg Kroah-Hartman
2013-10-27  8:01   ` Krzysztof Mazur
2013-10-27 14:38     ` Randy Dunlap
2013-10-27 15:57       ` Krzysztof Mazur

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).