cvs commit: src/sys/kern kern_linker.c src/sys/sys linker.h

Robert Watson rwatson at
Thu Apr 10 20:15:37 UTC 2008

rwatson     2008-04-10 20:15:35 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             kern_linker.c 
    sys/sys              linker.h 
  Merge kern_linker.c:1.153, linker.h:1.50 from HEAD to RELENG_7:
    The kernel linker includes a number of utility functions to look up symbol
    information in support of DDB(4); these functions bypass normal linker
    locking as they may run in contexts where locking is unsafe (such as the
    kernel debugger).
    Add a new interface linker_ddb_search_symbol_name(), which looks up a
    symbol name and offset given an address, and also
    linker_search_symbol_name() which does the same but *does* follow the
    locking conventions of the linker.
    Unlike existing functions, these functions place the name in a
    caller-provided buffer, which is stable even after linker locks have been
    released.  These functions will be used in upcoming revisions to stack(9)
    to support kernel stack trace generation in contexts as part of a live,
    rather than suspended, kernel.
  Revision   Changes    Path  +87 -13    src/sys/kern/kern_linker.c   +8 -0      src/sys/sys/linker.h

More information about the cvs-all mailing list