From owner-freebsd-dtrace@FreeBSD.ORG Sat Oct 4 19:25:15 2014 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B1BE563F for ; Sat, 4 Oct 2014 19:25:15 +0000 (UTC) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 874D6B1B for ; Sat, 4 Oct 2014 19:25:15 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id y10so1237959pdj.13 for ; Sat, 04 Oct 2014 12:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=asdATIsN/yZsQ7T4Ec04A8HI9/+7TBMEehFuIFSRN/w=; b=U+bCdgIJXUoMR/icFSZIoX2kUzYn3wkqdkIbw0zkyI/9sNATtBo/YI7Xv+g+NrFKUj MG3K/DRkkwDskGHZFPAnWs9zz/Z6vngh5o3wZ+Buv1hPhTtK/RnU1B38asJXZUCCJ7Z/ nrpj185OYb78C+EPXRSivt0atniZtHRN4mrA76ZgXAzF3yRuUIAKeIn3ahSe065rzmWp Abem3KDgiL70KddaZBbXtzvdN5dozaWU+Ojt/9rr7w5Mpf10hyiK0QjcRrfO4YjTJPyr JoxvkPS1aipKpoCXQoChzosJpiB0/kw0PqcZEm67qzwuxJyWeT/9mVIUNB1QJp+FOa4G +PpQ== X-Received: by 10.67.1.195 with SMTP id bi3mr14934764pad.74.1412450715228; Sat, 04 Oct 2014 12:25:15 -0700 (PDT) Received: from charmander.picturesperfect.net (c-67-182-131-225.hsd1.wa.comcast.net. [67.182.131.225]) by mx.google.com with ESMTPSA id td4sm9562687pab.19.2014.10.04.12.25.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Oct 2014 12:25:14 -0700 (PDT) Sender: Mark Johnston Date: Sat, 4 Oct 2014 12:25:11 -0700 From: Mark Johnston To: Anton Yuzhaninov Subject: Re: Pid provider Message-ID: <20141004192511.GD22999@charmander.picturesperfect.net> References: <5411A7BD.7020705@citrin.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5411A7BD.7020705@citrin.ru> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-dtrace@freebsd.org X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2014 19:25:15 -0000 On Thu, Sep 11, 2014 at 05:46:37PM +0400, Anton Yuzhaninov wrote: > Is PID provider is usable in FreeBSD? > > I try to list probes with > > dtrace -ln 'pid$target:::entry' -p NNN > > And for most processes no function from main binary shown (only functions from > shared libraries are listed). For some only some functions are shown, e. g. for > tcsh only two functions shown: > ID PROVIDER MODULE FUNCTION NAME > 61372 pid57232 tcsh glob entry > 61373 pid57232 tcsh globfree entry > > Also there is bug_or_feature: examined process terminated if dtrace command > terminated, e. g. run: > dtrace -ln 'pid$target:::entry' -p XX | less > then type q to quit from less - process with pid XX will be terminated. This is fixed by r272455: https://svnweb.freebsd.org/base?view=revision&revision=272455