From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 24 18:46:04 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A13D54D2 for ; Thu, 24 Jan 2013 18:46:04 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 6E685DE1 for ; Thu, 24 Jan 2013 18:46:04 +0000 (UTC) Received: from eagle.yuri.org (localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0OIjwJM081678; Thu, 24 Jan 2013 10:45:58 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <51018166.4000706@rawbw.com> Date: Thu, 24 Jan 2013 10:45:58 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: Ryan Stone Subject: Re: Why DTrace sensor is listed but not called? References: <50FEEB6C.7090303@rawbw.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 18:46:04 -0000 On 01/22/2013 16:03, Ryan Stone wrote: > Offhand, I can't of why this isn't working. However there is already a way > to add new DTrace probes to the kernel, and it's quite simple, so you could > try it: Thank you for this information, this works. As for my previous approach, there is a bug in gcc that static empty functions with 'noinline' attributes get eliminated by the optimizer. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56099 Yuri