From owner-cvs-src-old@FreeBSD.ORG Tue May 11 18:25:40 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5537106566C for ; Tue, 11 May 2010 18:25:40 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C2BEF8FC08 for ; Tue, 11 May 2010 18:25:40 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o4BIPe4x054497 for ; Tue, 11 May 2010 18:25:40 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4BIPexn054496 for cvs-src-old@freebsd.org; Tue, 11 May 2010 18:25:40 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <201005111825.o4BIPexn054496@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Tue, 11 May 2010 18:24:22 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_mutex.c subr_pcpu.c subr_witness.c src/sys/sys lock.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2010 18:25:40 -0000 attilio 2010-05-11 18:24:22 UTC FreeBSD src repository Modified files: sys/kern kern_mutex.c subr_pcpu.c subr_witness.c sys/sys lock.h Log: SVN rev 207929 on 2010-05-11 18:24:22Z by attilio Right now, WITNESS just blindly pipes all the output to the (TOCONS | TOLOG) mask even when called from DDB points. That breaks several output, where the most notable is textdump output. Fix this by having configurable callbacks passed to witness_list_locks() and witness_display_spinlock() for printing out datas. Reported by: several broken textdump outputs Tested by: Giovanni Trematerra MFC after: 7 days X-MFC: r207922 Revision Changes Path 1.219 +1 -1 src/sys/kern/kern_mutex.c 1.17 +1 -1 src/sys/kern/subr_pcpu.c 1.274 +18 -14 src/sys/kern/subr_witness.c 1.81 +4 -2 src/sys/sys/lock.h