From owner-cvs-all@FreeBSD.ORG Fri Jul 2 03:51:42 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E50116A4CE; Fri, 2 Jul 2004 03:51:42 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 305D543D2D; Fri, 2 Jul 2004 03:51:42 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i623ommk007581; Fri, 2 Jul 2004 03:50:48 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i623omDt007580; Fri, 2 Jul 2004 03:50:48 GMT (envelope-from jhb) Message-Id: <200407020350.i623omDt007580@repoman.freebsd.org> From: John Baldwin Date: Fri, 2 Jul 2004 03:50:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern subr_prof.c subr_trap.c src/sys/sys resourcevar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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, 02 Jul 2004 03:51:42 -0000 jhb 2004-07-02 03:50:48 UTC FreeBSD src repository Modified files: sys/kern subr_prof.c subr_trap.c sys/sys resourcevar.h Log: Tidy up uprof locking. Mostly the fields are protected by both the proc lock and sched_lock so they can be read with either lock held. Document the locking as well. The one remaining bogosity is that pr_addr and pr_ticks should be per-thread but profiling of multithreaded apps is currently undefined. Revision Changes Path 1.73 +18 -10 src/sys/kern/subr_prof.c 1.267 +6 -8 src/sys/kern/subr_trap.c 1.42 +17 -11 src/sys/sys/resourcevar.h