[2.6 patch] DEBUG_BUGVERBOSE for i386

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 08/30/04

  • Next message: Andrew Morton: "Re: 2.6.9-rc1-mm1 kernel BUG at fs/jbd/checkpoint.c:646!"
    Date:	Mon, 30 Aug 2004 00:59:42 +0200
    To: linux-kernel@vger.kernel.org
    
    

    The patch below implements CONFIG_DEBUG_BUGVERBOSE for i386 (more
    exactly, it allows disabling the verbose BUG() reporting).

    Signed-off-by: Adrian Bunk <bunk@fs.tum.de>

    --- linux-2.6.9-rc1-mm1-full/lib/Kconfig.debug.old 2004-08-29 21:22:20.000000000 +0200
    +++ linux-2.6.9-rc1-mm1-full/lib/Kconfig.debug 2004-08-29 21:28:29.000000000 +0200
    @@ -61,7 +61,7 @@
     
     config DEBUG_BUGVERBOSE
             bool "Verbose BUG() reporting (adds 70K)"
    - depends on DEBUG_KERNEL && (ARM || ARM26 || M68K || SPARC32 || SPARC64)
    + depends on DEBUG_KERNEL && (ARM || ARM26 || M68K || SPARC32 || SPARC64 || (X86 && !X86_64))
             help
               Say Y here to make BUG() panics output the file name and line number
               of the BUG call as well as the EIP and oops trace. This aids
    --- linux-2.6.9-rc1-mm1-full/include/asm-i386/bug.h.old 2004-08-29 21:22:46.000000000 +0200
    +++ linux-2.6.9-rc1-mm1-full/include/asm-i386/bug.h 2004-08-29 21:28:38.000000000 +0200
    @@ -9,7 +9,7 @@
      * undefined" opcode for parsing in the trap handler.
      */
     
    -#if 1 /* Set to zero for a slightly smaller kernel */
    +#ifdef CONFIG_DEBUG_BUGVERBOSE
     #define BUG() \
      __asm__ __volatile__( "ud2\n" \
                             "\t.word %c0\n" \

    -
    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/


  • Next message: Andrew Morton: "Re: 2.6.9-rc1-mm1 kernel BUG at fs/jbd/checkpoint.c:646!"

    Relevant Pages

    • Re: PATCH : ppp + big-endian = kernel crash
      ... > reasonable to identify those bits of net code which the nommu people care ... things like PPP will simply unavailable to some architectures... ... Use something akin to get_unaligned, no trap handler stuff. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Kgdb-bugreport] [PATCH] Kill kgdb_serial
      ... It will split start_kernel command line parsing into early ... parse and late parse, but that's the price we have to pay to do special ... KGDB: Linux Kernel Source Level Debugger ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Kgdb-bugreport] [PATCH] Kill kgdb_serial
      ... It will split start_kernel command line parsing into early ... > parse and late parse, but that's the price we have to pay to do special ... I think modifying the kernel to support this for kgdb is more like the tail ... 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/ ...
      (Linux-Kernel)
    • Re: TSCs are a no-no on i386
      ... >> applications since cmpxchg has a wrong opcode on this early CPU. ... "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: module.viomap support for ppc64
      ... Hotplug still uses the map ... Parsing one big file will not improve performance, ... >> Noone cares about that old junk. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)