From owner-freebsd-arch@freebsd.org Thu Nov 26 07:36:50 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06307A36FE2 for ; Thu, 26 Nov 2015 07:36:50 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 194231480; Thu, 26 Nov 2015 07:36:48 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA17531; Thu, 26 Nov 2015 09:31:47 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1a1r1v-000GOI-8u; Thu, 26 Nov 2015 09:31:47 +0200 Subject: Re: zero-cost SDT probes To: Mark Johnston , Konstantin Belousov References: <20151122024542.GA44664@wkstn-mjohnston.west.isilon.com> <20151123113511.GX58629@kib.kiev.ua> <20151125001136.GB70878@wkstn-mjohnston.west.isilon.com> <20151125131533.GB3448@kib.kiev.ua> <20151125232524.GB67865@wkstn-mjohnston.west.isilon.com> Cc: freebsd-arch@FreeBSD.org From: Andriy Gapon Message-ID: <5656B52B.90203@FreeBSD.org> Date: Thu, 26 Nov 2015 09:30:51 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151125232524.GB67865@wkstn-mjohnston.west.isilon.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2015 07:36:50 -0000 On 26/11/2015 01:25, Mark Johnston wrote: > On Wed, Nov 25, 2015 at 03:15:33PM +0200, Konstantin Belousov wrote: >> Several variations of the approach allow to control each probe site >> individually, while still avoiding jumps and reducing the cache consumption. >> And, of course, the biggest advantage is avoiding the need to change the >> text at runtime. [snip] > I see. I think this could be made to work, but there's still the > complication of passing arguments to the probe. Copying them into some > block in curthread is one way to do this, but it seems more expensive > than the standard calling convention on amd64 at least. Besides, the FBT probes are not going anywhere and they require the run-time text modification. -- Andriy Gapon