From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 21 14:47:22 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01D3316A415; Tue, 21 Nov 2006 14:47:22 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA4BE43D64; Tue, 21 Nov 2006 14:46:58 +0000 (GMT) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5EA55.dip.t-dialin.net [84.165.234.85]) by redbull.bpaserver.net (Postfix) with ESMTP id 015632E078; Tue, 21 Nov 2006 15:47:14 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0C8BC5B4C35; Tue, 21 Nov 2006 15:47:15 +0100 (CET) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id kALElElJ018043; Tue, 21 Nov 2006 15:47:14 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 21 Nov 2006 15:47:14 +0100 Message-ID: <20061121154714.03vzlj72sss88k4c@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 21 Nov 2006 15:47:14 +0100 From: Alexander Leidinger To: Robert Watson References: <571883.4868.qm@web72011.mail.tp2.yahoo.com> <86irhlfvg2.fsf@dwp.des.no> <20061120221026.GC20405@obiwan.tataz.chchile.org> <86d57hjhwu.fsf@dwp.des.no> <20061121115333.N50450@fledge.watson.org> <20061121150941.wlwmfw8u0w0c444k@webmail.leidinger.net> <20061121142005.T63599@fledge.watson.org> In-Reply-To: <20061121142005.T63599@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-15.287, required 6, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, SMILEY -0.50, TW_OC 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Tue, 21 Nov 2006 15:31:12 +0000 Cc: trowa-4 , Dag-Erling =?utf-8?b?U23Dg8K4cmdyYXY=?= , Jeremie Le Hen , freebsd-hackers@FreeBSD.org Subject: Re: Process Debugging questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2006 14:47:22 -0000 Quoting Robert Watson (from Tue, 21 Nov 2006 =20 14:21:59 +0000 (GMT)): > > On Tue, 21 Nov 2006, Alexander Leidinger wrote: > >> Quoting Robert Watson (from Tue, 21 Nov 2006 =20 >> 11:55:37 +0000 (GMT)): >> >>> Anyone who wants to start looking at a new API should make sure =20 >>> they look at ptrace() and procfs across a range of platforms, and =20 >>> also look at Mach task ports and what they offer. One of the =20 >>> things we really can't do well with ptrace() today is inspect =20 >>> kernel state for a running process -- things like the VM layout, =20 >>> etc. We should make sure any next generation system allows this, =20 >>> because that feature alone is the reason why I sometimes mount =20 >>> procfs. :-) >> >> Can you please elaborate what features you have in mind which =20 >> DTrace isn't able to deliver? > > /proc/curproc/map With DTrace we have access to a lot of stuff. I think this is only a =20 case of writting the right dtrace script (intercepting =20 malloc/free/sbrk/mmap/... should allow for more sophisticated output). Bye, Alexander. --=20 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137