Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Are any kernel Debug options actually nessessary?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 531
Location: Venice FL

PostPosted: Sat Jun 02, 2018 10:03 pm    Post subject: Are any kernel Debug options actually nessessary? Reply with quote

Just happened to read another forum post mentioning debug options in the kernel, so I checked to see what I had that was enabled in my kernel.

Code:
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_BLK_DEBUG_FS=y
CONFIG_X86_DEBUGCTLMSR=y
CONFIG_BATMAN_ADV_DEBUGFS=y
CONFIG_CB710_DEBUG_ASSUMPTIONS=y
CONFIG_NFS_DEBUG=y
CONFIG_SUNRPC_DEBUG=y
CONFIG_DYNAMIC_DEBUG=y
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
CONFIG_SCHED_DEBUG=y


So the question is are any Debug options actually necessary for the kernel to operate properly?

TIA.

George
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43184
Location: 56N 3W

PostPosted: Sat Jun 02, 2018 10:23 pm    Post subject: Reply with quote

thumper,

Maybe :)

Some of the options you have listed are internal symbols.
Code:
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
come free with your ARCH= setting.
On its own, it does nothing. Its used to hide/show other symbols,

Code:
CONFIG_NFS_DEBUG=y
is to generate debug info for Network Filesystem. Most users won't use NFS, never mind want to debug it.
Code:
CONFIG_DEBUG_FS=y
gets you a pseudo filesystem, like /proc and /sys. Its intended to expose debug info.
Code:
CONFIG_DEBUG_KERNEL=y
is a whole menu. There are options that cost nothing there that you wish you had when things are not quite right.

Strictly speaking, when all is well, debug options are not required.

However, if you need to rebuild your kernel to times in dmesg, that's a bin of a waste ... but its your kernel.

On the other hand, some debug options interfere with normal operation or even prevent it altogether.
Most users will want those off.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 531
Location: Venice FL

PostPosted: Sat Jun 02, 2018 11:00 pm    Post subject: Reply with quote

Thanks for the info, and explanation those entries, to my knowledge I've never flipped debug items on in my kernels, so I felt the need to address it further.

Armed with the information you provided, I'll take some time and learn more about the debug options.

Thank you.

George
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum