From owner-cvs-all@FreeBSD.ORG Fri Jul 20 08:43:42 2007 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 A130B16A418; Fri, 20 Jul 2007 08:43:42 +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 59EEE13C465; Fri, 20 Jul 2007 08:43:42 +0000 (UTC) (envelope-from attilio@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 l6K8hgpg032132; Fri, 20 Jul 2007 08:43:42 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6K8hgDN032131; Fri, 20 Jul 2007 08:43:42 GMT (envelope-from attilio) Message-Id: <200707200843.l6K8hgDN032131@repoman.freebsd.org> From: Attilio Rao Date: Fri, 20 Jul 2007 08:43:42 +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_rwlock.c src/sys/sys rwlock.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: Fri, 20 Jul 2007 08:43:42 -0000 attilio 2007-07-20 08:43:42 UTC FreeBSD src repository Modified files: sys/kern kern_rwlock.c sys/sys rwlock.h Log: Fix some problems with lock profiling in rw locks: - Adjust lock_profiling stubs semantic in the hard functions in order to be more accurate and trustable - As for sx locks, disable shared paths for lock_profiling. Actually, lock_profiling has a subtle race which makes results caming from shared paths not completely trustable. A macro stub (LOCK_PROFILING_SHARED) can be actually used for re-enabling this paths, but is currently intended for developing use only. - style(9) fixes Approved by: jeff, kmacy, jhb[1] Approved by: re [1] Had initial reservations not shared by others, conceded in the end. Revision Changes Path 1.28 +28 -8 src/sys/kern/kern_rwlock.c 1.14 +6 -9 src/sys/sys/rwlock.h