lkml.org 
[lkml]   [2002]   [Dec]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
From"Joseph D. Wagner" <>
SubjectPOSSIBLE BUG: Debugging Not Automatically Activated in Slab.c
DateFri, 6 Dec 2002 21:55:38 -0600
Before I submit this as an actually bug, I'd like the input of some people
who know a little more about the Slab Allocator and Kernel Debugging.

The Slab Allocator includes this line:

#ifdef CONFIG_DEBUG_SLAB

in slab.c (line 89) to activate debugging.

However, I couldn't find anywhere in the code where CONFIG_DEBUG_SLAB is
linked to CONFIG_DEBUG_KERNEL.  In other words, setting the kernel as a
debug kernel doesn't automatically set the Slab Allocator to debug too.

1) Am I missing something?

2) Is this intentional or by design?

If this is an actually bug, it can be fixed by inserting the following code
in slab.h immediately following the #include statements:

#ifdef CONFIG_DEBUG_KERNEL
#define CONFIG_DEBUG_SLAB
#endif

Joseph Wagner

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:31    [from the cache]
©2003-2008