config [31mCONFIG_HAVE_ARCH_KMEMCHECK[0m bool if [31mCONFIG_HAVE_ARCH_KMEMCHECK[0m menuconfig [31mCONFIG_KMEMCHECK[0m bool "kmemcheck: trap use of uninitialized memory" depends on [31mCONFIG_DEBUG_KERNEL[0m depends on ![31mCONFIG_X86_USE_3DNOW[0m depends on [31mCONFIG_SLUB[0m || [31mCONFIG_SLAB[0m depends on ![31mCONFIG_CC_OPTIMIZE_FOR_SIZE[0m depends on ![31mCONFIG_FUNCTION_TRACER[0m select [31mCONFIG_FRAME_POINTER[0m select [31mCONFIG_STACKTRACE[0m default n help This option enables tracing of dynamically allocated kernel memory to see if memory is used before it has been given an initial value. Be aware that this requires half of your memory for bookkeeping and will insert extra code at *every* read and write to tracked memory thus slow down the kernel code (but user code is unaffected). The kernel may be started with kmemcheck=0 or kmemcheck=1 to disable or enable kmemcheck at boot-time. If the kernel is started with kmemcheck=0, the large memory and CPU overhead is not incurred. choice prompt "kmemcheck: default mode at boot" depends on [31mCONFIG_KMEMCHECK[0m default [31mCONFIG_KMEMCHECK_ONESHOT_BY_DEFAULT[0m help This option controls the default behaviour of kmemcheck when the kernel boots and no kmemcheck= parameter is given. config [31mCONFIG_KMEMCHECK_DISABLED_BY_DEFAULT[0m bool "disabled" depends on [31mCONFIG_KMEMCHECK[0m config [31mCONFIG_KMEMCHECK_ENABLED_BY_DEFAULT[0m bool "enabled" depends on [31mCONFIG_KMEMCHECK[0m config [31mCONFIG_KMEMCHECK_ONESHOT_BY_DEFAULT[0m bool "one-shot" depends on [31mCONFIG_KMEMCHECK[0m help In one-shot mode, only the first error detected is reported before kmemcheck is disabled. endchoice config [31mCONFIG_KMEMCHECK_QUEUE_SIZE[0m int "kmemcheck: error queue size" depends on [31mCONFIG_KMEMCHECK[0m default 64 help Select the maximum number of errors to store in the queue. Since errors can occur virtually anywhere and in any context, we need a temporary storage area which is guarantueed not to generate any other faults. The queue will be emptied as soon as a tasklet may be scheduled. If the queue is full, new error reports will be lost. config [31mCONFIG_KMEMCHECK_SHADOW_COPY_SHIFT[0m int "kmemcheck: shadow copy size (5 => 32 bytes, 6 => 64 bytes)" depends on [31mCONFIG_KMEMCHECK[0m range 2 8 default 5 help Select the number of shadow bytes to save along with each entry of the queue. These bytes indicate what parts of an allocation are initialized, uninitialized, etc. and will be displayed when an error is detected to help the debugging of a particular problem. config [31mCONFIG_KMEMCHECK_PARTIAL_OK[0m bool "kmemcheck: allow partially uninitialized memory" depends on [31mCONFIG_KMEMCHECK[0m default y help This option works around certain GCC optimizations that produce 32-bit reads from 16-bit variables where the upper 16 bits are thrown away afterwards. This may of course also hide some real bugs. config [31mCONFIG_KMEMCHECK_BITOPS_OK[0m bool "kmemcheck: allow bit-field manipulation" depends on [31mCONFIG_KMEMCHECK[0m default n help This option silences warnings that would be generated for bit-field accesses where not all the bits are initialized at the same time. This may also hide some real bugs. endif |