From owner-cvs-all@FreeBSD.ORG Thu Apr 10 20:15:37 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06CB21065673; Thu, 10 Apr 2008 20:15:37 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E94D68FC21; Thu, 10 Apr 2008 20:15:36 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3AKFap6019668; Thu, 10 Apr 2008 20:15:36 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3AKFa9D019667; Thu, 10 Apr 2008 20:15:36 GMT (envelope-from rwatson) Message-Id: <200804102015.m3AKFa9D019667@repoman.freebsd.org> From: Robert Watson Date: Thu, 10 Apr 2008 20:15:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/kern kern_linker.c src/sys/sys linker.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 20:15:37 -0000 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 Log: 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 1.149.2.1 +87 -13 src/sys/kern/kern_linker.c 1.46.2.1 +8 -0 src/sys/sys/linker.h