From owner-freebsd-current@FreeBSD.ORG Wed Apr 4 12:18:48 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 0865A16A405 for ; Wed, 4 Apr 2007 12:18:48 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.233]) by mx1.freebsd.org (Postfix) with ESMTP id BDBE213C457 for ; Wed, 4 Apr 2007 12:18:47 +0000 (UTC) (envelope-from howard0su@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so81637nza for ; Wed, 04 Apr 2007 05:18:47 -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=rBAbPotBuDha4fFErN39EPrc3aF0a3O8pYLp4GwNoFb56soDZk9Bj5BB4Kh8K82VjCee+4hA2ThrIrgRAPtt5xSxXW/rvZEWExrHcmQKp8Fi5nrHeu3cnaMMMhPuCKhhWW5vy8/T16adX4peBshDo8Rm7KcedMIMhIbnS3yE4d4= 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=V7EHdDyVO62gFEXOWkXD/f2uNUMwDLLftOLNldFKmYlRzI0mRdPYxfTffg1k3ciYRyp3hUcYOH2pZ7O1KerawG9rG2zfliLQSyn4Z9V/emNnAdyOZCFu33gdVz15F0JO1rBYdfYcuxw3n3lp9QBGyoalqPvMe2V0INezrYDRhzA= Received: by 10.114.168.1 with SMTP id q1mr197402wae.1175689126413; Wed, 04 Apr 2007 05:18:46 -0700 (PDT) Received: by 10.114.241.12 with HTTP; Wed, 4 Apr 2007 05:18:45 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 20:18:45 +0800 From: "Howard Su" To: "Ed Schouten" In-Reply-To: <20070404121602.GI14608@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070404121602.GI14608@hoeg.nl> X-Mailman-Approved-At: Wed, 04 Apr 2007 12:44:43 +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 12:18:48 -0000 On 4/4/07, Ed Schouten wrote: > * Howard Su 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. > > Indeed. Looking at sys/ptrace.h, there are a lot of instructions that > aren't documented in the manpage: > > - PT_GETNUMLWPS > - PT_GETLWPLIST > - PT_CLEARSTEP > - PT_SETSTEP > - PT_SUSPEND > - PT_RESUME > - PT_TO_SCE > - PT_TO_SCX > - PT_SYSCALL > - PT_FIRSTMACH As far as i know, PT_TO_SCE, PT_TO_SCX, PT_SYSCALL works well. I use PT_SYSCALL in my patch. -- -Howard