From owner-freebsd-current@FreeBSD.ORG Thu May 5 23:43:54 2011 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 97289106566B for ; Thu, 5 May 2011 23:43:54 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4EA558FC0A for ; Thu, 5 May 2011 23:43:54 +0000 (UTC) Received: by qwc9 with SMTP id 9so2399936qwc.13 for ; Thu, 05 May 2011 16:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OZ4IZWKMQMRck9O4jwYz1SIGnL27rev97K27PEwHgRw=; b=qQj7KVeOrRHcpm8PfcYxeU3N3VJBb+IQii0q9tMqZIFBb1CwLw4wH+AN77QaR43SNh rcfbzs5o5r+ElOHIizZi6KYQHZsb1iwJKwyz8jAVl7R5QcyqPnpLP65K1LjmSQSCzH9d I0Xvur32iOz+m+/wEJKRMI+LywvYWu/vqnLvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=xM/fhpc05Oe1Yogw8rwS0bsrR6fLEr9E4Rlg2nwsDX+sKJG7cDL84V2O+75jrBib9b yDSGbSbJSUgeiYXvjkUs3Wz0fzPeMsMhtz4wQxW4ohidoGbDrCuZM6WoUVkEcVNPwLvO uNgnds35qcATQpFdb0wQunTKIJoS3/w9guEcE= MIME-Version: 1.0 Received: by 10.224.184.140 with SMTP id ck12mr3004933qab.137.1304639033648; Thu, 05 May 2011 16:43:53 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.229.95.140 with HTTP; Thu, 5 May 2011 16:43:53 -0700 (PDT) In-Reply-To: <5D267A3F22FD854F8F48B3D2B523819360D799A517@IRVEXCHCCR01.corp.ad.broadcom.com> References: <5D267A3F22FD854F8F48B3D2B523819360D799A42B@IRVEXCHCCR01.corp.ad.broadcom.com> <5D267A3F22FD854F8F48B3D2B523819360D799A517@IRVEXCHCCR01.corp.ad.broadcom.com> Date: Thu, 5 May 2011 16:43:53 -0700 X-Google-Sender-Auth: QS4uGeawdAPW2Jklo9X-HqqLPm8 Message-ID: From: Artem Belevich To: David Christensen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-current@freebsd.org" Subject: Re: Using Dtrace for Performance Evaluation 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: Thu, 05 May 2011 23:43:54 -0000 On Thu, May 5, 2011 at 4:33 PM, David Christensen wr= ote: >> > After building dtrace into the kernel and loading the dtraceall >> > kernel module, when I load my bxe kernel module and run "dtrace -l" >> > to list all supported probes I notice that many functions have an >> > entry probe but no exit probe. =A0This effectively prevents me from >> > calculating timestamps on "fbt:if_bxe::return" probes. =A0Why am I >> > seeing this behavior? >> >> Tail call optimization could do that to you: >> http://en.wikipedia.org/wiki/Tail_call > > How to disable tail call optimization when building my driver? Google is your friend: Either compile with -O0/-O1, or use -fno-optimize-sibling-calls. http://stackoverflow.com/questions/3679435/how-do-i-disable-tailcall-optimi= zations-in-gcc --Artem