From owner-svn-doc-head@FreeBSD.ORG Thu Mar 12 01:23:08 2015 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 09FE4615; Thu, 12 Mar 2015 01:23:08 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE7FFC8C; Thu, 12 Mar 2015 01:23:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2C1N7Si055145; Thu, 12 Mar 2015 01:23:07 GMT (envelope-from gjb@FreeBSD.org) Received: (from gjb@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2C1N7q2055144; Thu, 12 Mar 2015 01:23:07 GMT (envelope-from gjb@FreeBSD.org) Message-Id: <201503120123.t2C1N7q2055144@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: gjb set sender to gjb@FreeBSD.org using -f From: Glen Barber Date: Thu, 12 Mar 2015 01:23:07 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46336 - head/en_US.ISO8859-1/books/developers-handbook/kerneldebug X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 01:23:08 -0000 Author: gjb Date: Thu Mar 12 01:23:06 2015 New Revision: 46336 URL: https://svnweb.freebsd.org/changeset/doc/46336 Log: Fix a few grammatical nits. Change wording referencing the previous section of the kerneldebug book. Reword the 'Add these options' sentence. Consistify spacing in the KERNCONF addition list. Fix a typo. Sponsored by: The FreeBSD Foundation Modified: head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml Modified: head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml Wed Mar 11 12:55:55 2015 (r46335) +++ head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml Thu Mar 12 01:23:06 2015 (r46336) @@ -744,26 +744,29 @@ Debugger (msg=0xf01b0383 "Boot flags req Debugging Deadlocks - You may experience so called deadlocks, the situation where + You may experience so called deadlocks, a situation where a system stops doing useful work. To provide a helpful bug report - in this situation, use &man.ddb.4; as described above. + in this situation, use &man.ddb.4; as described in the previous + section. Include the output of ps and trace for suspected processes in the report. - If possible, consider doing further investigation. The receipt + If possible, consider doing further investigation. The recipe below is especially useful if you suspect that a deadlock occurs in the - VFS layer. Add the following options - makeoptions DEBUG=-g - options INVARIANTS - options INVARIANT_SUPPORT - options WITNESS - options WITNESS_SKIPSPIN - options DEBUG_LOCKS - options DEBUG_VFS_LOCKS - options DIAGNOSTIC + VFS layer. Add these options to the kernel configuration + file. - to the kernel configuration file. When a deadlock occurs, in addition to the + makeoptions DEBUG=-g +options INVARIANTS +options INVARIANT_SUPPORT +options WITNESS +options WITNESS_SKIPSPIN +options DEBUG_LOCKS +options DEBUG_VFS_LOCKS +options DIAGNOSTIC + + When a deadlock occurs, in addition to the output of the ps command, provide information from the show pcpu, show allpcpu, show locks, show alllocks,