From owner-freebsd-current@FreeBSD.ORG Wed Apr 4 11:30:29 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 604CC16A401 for ; Wed, 4 Apr 2007 11:30:29 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 7186313C45B for ; Wed, 4 Apr 2007 11:30:28 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so656463ugh for ; Wed, 04 Apr 2007 04:30:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GPylShWA/SeBDVyXzku6/pHASlLZXtQUtbB6SIcURrL1KA55stZpCTGgRU42T0zVfI3BmxJTp9FXTZj4/oXKuC88oFemHAHGQT98YTd9F6Lt8uBI+1xS65HmdgGdIQ7faSNJXTB1QMwtPq2VIJK9oFW8mO9XMx3ybFeKYFZJcsA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BA8lA89IS+HZ9Lx51E+CNO/APl1tkHF6/u2UOryA7z13HIp7tXC+SeWBsMktpNpyItdTTTmfSUNMRT54wAgZ8PXSA6qgxy/t1t7E3J/5+SzTiAXO49E2NKOL78VPG0ySPP7iHgJV1XOGcdsqKP94MPCDHySXAsadfMc6MuCKTbU= Received: by 10.115.88.1 with SMTP id q1mr180161wal.1175686226697; Wed, 04 Apr 2007 04:30:26 -0700 (PDT) Received: by 10.114.241.12 with HTTP; Wed, 4 Apr 2007 04:30:26 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 19:30:26 +0800 From: "Howard Su" To: "Alfred Perlstein" In-Reply-To: <20070404101222.GU61362@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070404101222.GU61362@elvis.mu.org> X-Mailman-Approved-At: Wed, 04 Apr 2007 11:48:58 +0000 Cc: current@freebsd.org Subject: Re: [Review] Remove procfs dependency of truss X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 11:30:29 -0000 On 4/4/07, Alfred Perlstein wrote: > * Howard Su [070404 01:20] wrote: > > Following the suggestion in idea page, I proposed the attached patch. > > I didn't change any kernel part because I think PTRACE(2) is > > functional although man page didn't document it. > > > > I tested the patch under i386 and amd64 box. The help on testing and > > code review will be appreciated. > > wow, well done! any draw backs to using ptrace over procfs? I didn't see. > > have you tested performance? Not yet. Base on the number of kernel syscall, new implementaion keep in a same level. However ptrace calls has a short code path compare to generic read syscall. I suppose there will be some improvement. Anyway, I will try to get perf data. > > -Alfred > > -- -Howard