1. 15 6月, 2009 8 次提交
  2. 13 6月, 2009 3 次提交
    • R
      kmemcheck: include module.h to prevent warnings · 60e38393
      Randy Dunlap 提交于
      kmemcheck/shadow.c needs to include <linux/module.h> to prevent
      the following warnings:
      
      linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c:64: warning : data definition has no type or storage class
      linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c:64: warning : type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
      linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c:64: warning : parameter names (without types) in function declaration
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: vegardno@ifi.uio.no
      Cc: penberg@cs.helsinki.fi
      Cc: akpm <akpm@linux-foundation.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      60e38393
    • V
      kmemcheck: add the kmemcheck core · dfec072e
      Vegard Nossum 提交于
      General description: kmemcheck is a patch to the linux kernel that
      detects use of uninitialized memory. It does this by trapping every
      read and write to memory that was allocated dynamically (e.g. using
      kmalloc()). If a memory address is read that has not previously been
      written to, a message is printed to the kernel log.
      
      Thanks to Andi Kleen for the set_memory_4k() solution.
      
      Andrew Morton suggested documenting the shadow member of struct page.
      Signed-off-by: NVegard Nossum <vegardno@ifi.uio.no>
      Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
      
      [export kmemcheck_mark_initialized]
      [build fix for setup_max_cpus]
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      
      [rebased for mainline inclusion]
      Signed-off-by: NVegard Nossum <vegardno@ifi.uio.no>
      dfec072e
    • V
      x86: add save_stack_trace_bp() for tracing from a specific stack frame · acc6be54
      Vegard Nossum 提交于
      This will help kmemcheck (and possibly other debugging tools) since we
      can now simply pass regs->bp to the stack tracer instead of specifying
      the number of stack frames to skip, which is unreliable if gcc decides
      to inline functions, etc.
      
      Note that this makes the API incomplete for other architectures, but I
      expect that those can be updated lazily, e.g. when they need it.
      
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
      acc6be54
  3. 12 6月, 2009 3 次提交
  4. 11 6月, 2009 9 次提交
  5. 10 6月, 2009 17 次提交