From owner-freebsd-current@FreeBSD.ORG Wed Apr 4 21:30:02 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 0751C16A402 for ; Wed, 4 Apr 2007 21:30:02 +0000 (UTC) (envelope-from ed.maste@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id B569113C448 for ; Wed, 4 Apr 2007 21:30:00 +0000 (UTC) (envelope-from ed.maste@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so842214ugh for ; Wed, 04 Apr 2007 14:29:58 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EE+zZyWJPpsP88ZiwxM/zc1P8BRKpQf5/YmddTKHv3lFIDe1COld+xDB/kaGbtLYGWenv8BT7LNW54/qvNRcGv7IEZbprRAYK2i1pa5yALUBcSFYrCffPbD9wI7XQEt1g7gGn+5EgJIxibglo5sU3+TvBFtNZ5s0CiUxq1GA7w4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JrgYcyoNvgIpR/J3cVBmAV4U0bdgYVHMkxXU8N2irFD0LMxdI16Xb2giIza6CnlOIVbPFxgK4WYhqak0evqNzmbVutmhHmEw/cgD1N8xtfb5H+ZXmHnRI/5HGH/nMEMn+wuR7vvnqAS2wZ467U7q4zJ8O1J29T3IgSnrsIZXJP4= Received: by 10.78.124.13 with SMTP id w13mr206831huc.1175720781931; Wed, 04 Apr 2007 14:06:21 -0700 (PDT) Received: by 10.78.188.7 with HTTP; Wed, 4 Apr 2007 14:06:21 -0700 (PDT) Message-ID: <88607eb20704041406ka4902fdqe0f2897a2f9f15d9@mail.gmail.com> Date: Wed, 4 Apr 2007 17:06:21 -0400 From: "Ed Maste" To: "Ed Maste" , "Ed Schouten" , "Howard Su" , current@freebsd.org In-Reply-To: <20070404203221.GA88767@sandvine.com> 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> <20070404203221.GA88767@sandvine.com> X-Mailman-Approved-At: Thu, 05 Apr 2007 01:28:31 +0000 Cc: 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 21:30:02 -0000 On Wed, Apr 04, 2007 at 02:16:02PM +0200, Ed Schouten wrote: > Indeed. Looking at sys/ptrace.h, there are a lot of instructions that > aren't documented in the manpage: > > - PT_GETNUMLWPS > - PT_GETLWPLIST [...] Yeah, it's unfortunate that these aren't documented and ptrace seems to be somewhat mysterious. I ran across this while starting to work on switching gcore from procfs to ptrace, in the context of getting it to understand threads. (Procfs provides /proc/pid/regs, which returns only the register set for the first thread in the process. There are other XXXKSE gotchas in the procfs source too.) Ed Maste