cvs commit: src/share/man/man9 Makefile stack.9 src/sys/kern kern_lock.c subr_stack.c src/sys/sys stack.h src/sys/vm redzone.c

Robert Watson rwatson at FreeBSD.org
Sat Dec 1 14:04:16 PST 2007


rwatson     2007-12-01 22:04:16 UTC

  FreeBSD src repository

  Modified files:
    share/man/man9       Makefile stack.9 
    sys/kern             kern_lock.c subr_stack.c 
    sys/sys              stack.h 
    sys/vm               redzone.c 
  Log:
  Modify stack(9) stack_print() and stack_sbuf_print() routines to use new
  linker interfaces for looking up function names and offsets from
  instruction pointers.  Create two variants of each call: one that is
  "DDB-safe" and avoids locking in the linker, and one that is safe for
  use in live kernels, by virtue of observing locking, and in particular
  safe when kernel modules are being loaded and unloaded simultaneous to
  their use.  This will allow them to be used outside of debugging
  contexts.
  
  Modify two of three current stack(9) consumers to use the DDB-safe
  interfaces, as they run in low-level debugging contexts, such as inside
  lockmgr(9) and the kernel memory allocator.
  
  Update man page.
  
  Revision  Changes    Path
  1.320     +1 -0      src/share/man/man9/Makefile
  1.4       +15 -2     src/share/man/man9/stack.9
  1.114     +1 -1      src/sys/kern/kern_lock.c
  1.4       +79 -24    src/sys/kern/subr_stack.c
  1.3       +2 -0      src/sys/sys/stack.h
  1.2       +4 -4      src/sys/vm/redzone.c


More information about the cvs-src mailing list