From owner-cvs-src-old@FreeBSD.ORG Sat Apr 2 06:13:53 2011 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 5B249106566C for ; Sat, 2 Apr 2011 06:13:53 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2D38FC12 for ; Sat, 2 Apr 2011 06:13:53 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p326DrEK036486 for ; Sat, 2 Apr 2011 06:13:53 GMT (envelope-from dchagin@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p326Drs6036485 for cvs-src-old@freebsd.org; Sat, 2 Apr 2011 06:13:53 GMT (envelope-from dchagin@repoman.freebsd.org) Message-Id: <201104020613.p326Drs6036485@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to dchagin@repoman.freebsd.org using -f From: Dmitry Chagin Date: Sat, 2 Apr 2011 06:13:31 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/kern kern_exec.c kern_fork.c kern_ktrace.c src/sys/sys ktrace.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: Sat, 02 Apr 2011 06:13:53 -0000 dchagin 2011-04-02 06:13:31 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern kern_exec.c kern_fork.c kern_ktrace.c sys/sys ktrace.h Log: SVN rev 220262 on 2011-04-02 06:13:31Z by dchagin MFC r219041: ktrace_resize_pool() locking slightly reworked: 1) do not take a lock around the single atomic operation. 2) do not lose the invariant of lock by dropping/acquiring ktrace_mtx around free() or malloc(). MFC r219042: Introduce preliminary support of the show description of the ABI of traced process by adding two new events which records value of process sv_flags to the trace file at process creation/execing/exiting time. MFC r219311: Partially rework r219042. The reason for this is a bug at ktrops() where process dereferenced without having a lock. This might cause a panic if ktrace was runned with -p flag and the specified process exited between the dropping a lock and writing sv_flags. Since it is impossible to acquire sx lock while holding mtx switch to use asynchronous enqueuerequest() instead of writerequest(). Rename ktr_getrequest_ne() to more understandable name. MFC r219312: Fix indentation in comment, double ';' in variable declaration. Revision Changes Path 1.337.2.9 +6 -0 src/sys/kern/kern_exec.c 1.306.2.9 +4 -4 src/sys/kern/kern_fork.c 1.130.2.4 +83 -29 src/sys/kern/kern_ktrace.c 1.35.2.3 +17 -0 src/sys/sys/ktrace.h