2008-03-20 19:35:55

by Toralf Förster

[permalink] [raw]
Subject: Why does "make oldconfig" always set CONFIG_SLUB_DEBUG=y ?

I'm wondering why this option is always set after "make oldconfig" :

tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG=y .config
CONFIG_SLUB_DEBUG=y
tfoerste@n22 ~/devel/linux-2.6 $ sed -i -e 's/_SLUB_DEBUG=y/_SLUB_DEBUG=n/' .config
tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG= .config
CONFIG_SLUB_DEBUG=n
tfoerste@n22 ~/devel/linux-2.6 $ make oldconfig 1>/dev/null
tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG= .config
CONFIG_SLUB_DEBUG=y

I attached the .config

--
MfG/Sincerely

Toralf F?rster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3


Attachments:
(No filename) (0.00 B)
signature.asc (189.00 B)
This is a digitally signed message part.
Download all attachments

2008-03-20 20:18:57

by Randy Dunlap

[permalink] [raw]
Subject: Re: Why does "make oldconfig" always set CONFIG_SLUB_DEBUG=y ?

On Thu, 20 Mar 2008 20:35:41 +0100 Toralf F?rster wrote:

> I'm wondering why this option is always set after "make oldconfig" :
>
> tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG=y .config
> CONFIG_SLUB_DEBUG=y
> tfoerste@n22 ~/devel/linux-2.6 $ sed -i -e 's/_SLUB_DEBUG=y/_SLUB_DEBUG=n/' .config
> tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG= .config
> CONFIG_SLUB_DEBUG=n
> tfoerste@n22 ~/devel/linux-2.6 $ make oldconfig 1>/dev/null
> tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG= .config
> CONFIG_SLUB_DEBUG=y
>
> I attached the .config

Because it defaults to y and you can't change it unless you
enable EMBEDDED.

---
~Randy

2008-03-20 20:19:53

by Dave Jones

[permalink] [raw]
Subject: Re: Why does "make oldconfig" always set CONFIG_SLUB_DEBUG=y ?

On Thu, Mar 20, 2008 at 08:35:41PM +0100, Toralf F?rster wrote:
> I'm wondering why this option is always set after "make oldconfig" :
>
> tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG=y .config
> CONFIG_SLUB_DEBUG=y
> tfoerste@n22 ~/devel/linux-2.6 $ sed -i -e 's/_SLUB_DEBUG=y/_SLUB_DEBUG=n/' .config
> tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG= .config
> CONFIG_SLUB_DEBUG=n
> tfoerste@n22 ~/devel/linux-2.6 $ make oldconfig 1>/dev/null
> tfoerste@n22 ~/devel/linux-2.6 $ grep _SLUB_DEBUG= .config
> CONFIG_SLUB_DEBUG=y

CONFIG_SLUB_DEBUG is only optional if CONFIG_EMBEDDED is set.
There's little to no cost other than codesize to having it enabled.

Dave

--
http://www.codemonkey.org.uk