From owner-cvs-src@FreeBSD.ORG Sun Dec 2 21:52:18 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 C719916A477; Sun, 2 Dec 2007 21:52:18 +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 B685A13C478; Sun, 2 Dec 2007 21:52:18 +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 lB2LqIx4088513; Sun, 2 Dec 2007 21:52:18 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lB2LqIGE088508; Sun, 2 Dec 2007 21:52:18 GMT (envelope-from rwatson) Message-Id: <200712022152.lB2LqIGE088508@repoman.freebsd.org> From: Robert Watson Date: Sun, 2 Dec 2007 21:52:18 +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/sys/kern kern_proc.c src/sys/sys sysctl.h user.h 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: Sun, 02 Dec 2007 21:52:18 -0000 rwatson 2007-12-02 21:52:18 UTC FreeBSD src repository Modified files: sys/kern kern_proc.c sys/sys sysctl.h user.h Log: Add another new sysctl in support of the forthcoming procstat(1) to support its -k argument: kern.proc.kstack - dump the kernel stack of a process, if debugging is permitted. This sysctl is present if either "options DDB" or "options STACK" is compiled into the kernel. Having support for tracing the kernel stacks of processes from user space makes it much easier to debug (or understand) specific wmesg's while avoiding the need to enter DDB in order to determine the path by which a process came to be blocked on a particular wait channel or lock. Revision Changes Path 1.257 +106 -0 src/sys/kern/kern_proc.c 1.154 +1 -0 src/sys/sys/sysctl.h 1.72 +19 -0 src/sys/sys/user.h