From owner-freebsd-current@FreeBSD.ORG Mon Nov 16 15:18:27 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAFE0106568F; Mon, 16 Nov 2009 15:18:27 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 013BA8FC24; Mon, 16 Nov 2009 15:18:26 +0000 (UTC) Received: by fxm27 with SMTP id 27so6115049fxm.3 for ; Mon, 16 Nov 2009 07:18:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=BeIpS/i+8HFnUDB8gAtPk9tDRQqLUGs1XGAHMEkmfj0=; b=aXtdHsy5i+FXBRAKjRWBrDnpiVvU1yh09wmp4OR0HJygsbZq6tjvXlF2+n3zOCeWXa QIcFCv3ngF2ZznE5+pvl8PPI8AHy/vj5K0R1jbAPq4WkTVCZzdqMLbTiJWW7gdSHM017 MOxmBMcecgzuSRTe61L8LgsBlMrxu3c+1YVqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=kHGgjUL8pZPPzVmdM/moODXAGUnsmOL7D2hHRI+53RtScICj61/Apwcj0H3qcbNwc7 5INa0KBNpegThMZEEixMmXdPx+cdmCBAhA/Ev3wiKAurVxeFcGb+3Zk3wmaV3s3A41dE RhniBCbYioLrgQmJkdJ6mpqKlmi3PPFBIhneU= MIME-Version: 1.0 Sender: asmrookie@gmail.com Received: by 10.223.97.132 with SMTP id l4mr1151516fan.100.1258384705627; Mon, 16 Nov 2009 07:18:25 -0800 (PST) Date: Mon, 16 Nov 2009 16:18:25 +0100 X-Google-Sender-Auth: b3fb3e81f439f799 Message-ID: <3bbf2fe10911160718j7784b311g2980aa02c79bc9ec@mail.gmail.com> From: Attilio Rao To: freebsd-current@freebsd.org, Alexander Kabaev , Alfred Perlstein , Ed Maste Content-Type: text/plain; charset=UTF-8 Cc: Subject: [PATCH] Let gcore use ptrace interface rather than the procfs 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: Mon, 16 Nov 2009 15:18:27 -0000 This patch allows gcore to use the ptrace interface rather than procfs: http://www.freebsd.org/~attilio/Sandvine/STABLE_8/gcore/gcore.diff The main visible effect of that is that gcore can now work on a per-thread scope, offering a granularity procfs can't reach. A downside, though, is that the process to be targeted is going to be stopped with ptrace. This patch has been contributed back by Sandvine Incorporated. Comments, reviews and testing are welcome. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein