From owner-cvs-src@FreeBSD.ORG Sat Dec 1 22:04:16 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B60C16A417; Sat, 1 Dec 2007 22:04:16 +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 7299D13C4D9; Sat, 1 Dec 2007 22:04:16 +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 lB1M4Goo080613; Sat, 1 Dec 2007 22:04:16 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lB1M4G8s080612; Sat, 1 Dec 2007 22:04:16 GMT (envelope-from rwatson) Message-Id: <200712012204.lB1M4G8s080612@repoman.freebsd.org> From: Robert Watson Date: Sat, 1 Dec 2007 22:04:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: 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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Dec 2007 22:04:16 -0000 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