From owner-cvs-all@FreeBSD.ORG Tue Apr 10 19:45:44 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1D52816A484 for ; Tue, 10 Apr 2007 19:45:44 +0000 (UTC) (envelope-from ed.maste@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.freebsd.org (Postfix) with ESMTP id D15EE13C468 for ; Tue, 10 Apr 2007 19:45:43 +0000 (UTC) (envelope-from ed.maste@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1816204wxc for ; Tue, 10 Apr 2007 12:45:43 -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=B8jFDKT1rn142rqi8sujr4sHXMSeI+UaQVYJxjY+G05Gojcn0/PYglew+NcFwIoiLyzWjnt1TdGYuIc0crg1uIHTaSTaXjWYOI4b/8dTmIJ3EoCV5DIDvbXvxl72TWyyf6QseJU2yh8l3v9r7XRH8rpcpIuXUclJEYGbR66da/k= 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=EiOWwKbD9tLW6KQJYdKOAbOzBB04yCAVaf88hhBz/VfTb0/FkJT6wzuYf6l9tzh449HbOYntimSWDwEUCBeEKNQl26sTRZ0oV3vgV5AlcBCuMIf/vQzTYEzktreO7uwm99HR7Prkg2lzSTrs+zugahsCSZmTRiIJzefZTPPMG1U= Received: by 10.78.183.15 with SMTP id g15mr1134696huf.1176232620316; Tue, 10 Apr 2007 12:17:00 -0700 (PDT) Received: by 10.78.188.7 with HTTP; Tue, 10 Apr 2007 12:17:00 -0700 (PDT) Message-ID: <88607eb20704101217x4e3c81f9xf914f7da7714daf8@mail.gmail.com> Date: Tue, 10 Apr 2007 15:17:00 -0400 From: "Ed Maste" To: "Xin LI" In-Reply-To: <200704100403.l3A43ZnL057659@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200704100403.l3A43ZnL057659@repoman.freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/truss Makefile amd64-fbsd.c extern.h i386-fbsd.c i386-linux.c ia64-fbsd.c main.c powerpc-fbsd.c setup.c sparc64-fbsd.c syscall.h syscalls.c truss.1 truss.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 10 Apr 2007 19:45:44 -0000 On 10/04/07, Xin LI wrote: > Make use of ptrace(2) instead of procfs in truss(1), eliminating > yet another need of an available /proc/ mount. I've started to do the same thing to gcore(1), in order to make it work properly with threaded applications. I've removed its dependency on /proc/pid/mem, /proc/pid/regs, and /proc/pid/fpregs. However, it still relies on /proc/pid/status and /proc/pid/map which are not directly available via ptrace(2). This would make the -s option to gcore redundant (since the process will be stopped after attaching anyway). I don't know how useful a core from a non-stopped process is, anyhow. -ed