From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 10 20:40:54 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C8761106564A; Sun, 10 Jun 2012 20:40:54 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 28F8C8FC08; Sun, 10 Jun 2012 20:40:53 +0000 (UTC) Received: by werg1 with SMTP id g1so2070360wer.13 for ; Sun, 10 Jun 2012 13:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IlqnAO46GxFhDmzfB6JnjrDw1iDDNv/67mRWCmymbCU=; b=Vz7CFzU54qLsVxz8knPMCzKQxroQqC2zUgIR6bP0G7fKpgdkS73upMNEvmEW1MYtB2 +ilWATaJpIYnR+6lGVSNO5zTMxCQU79q/4xOMx1EaU1ukssc7CYnFU/7yvvfC1yEFK0E 8OI1MSzZCnSS5P9JfJCALTh9rjfNJW6lxOZXPwI9lmMLotJSvEZzztp4v80xttEqt7cG IrTzF5G0mbUTMFtEAJnXV0SFqz3QqUv36dzy6FB/96fTachdtGOqvm+/+QvqDzJhmuzu jXDj0ky2FgxKGa/gCYrpCO7xaFtF/1Isg4XbDTuxnhqRpAeafURCV1o3o3VLz6kCJ08r xBXw== MIME-Version: 1.0 Received: by 10.216.228.88 with SMTP id e66mr5159147weq.208.1339360852992; Sun, 10 Jun 2012 13:40:52 -0700 (PDT) Received: by 10.180.146.131 with HTTP; Sun, 10 Jun 2012 13:40:52 -0700 (PDT) In-Reply-To: <4FD4CD8B.1080803@FreeBSD.org> References: <4FD490D5.1070207@FreeBSD.org> <20120610152721.3b627896@fabiankeil.de> <4FD4CD8B.1080803@FreeBSD.org> Date: Sun, 10 Jun 2012 16:40:52 -0400 Message-ID: From: Ryan Stone To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, Fabian Keil Subject: Re: decoding of multi-byte nops in dtrace X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jun 2012 20:40:54 -0000 On Sun, Jun 10, 2012 at 12:38 PM, Andriy Gapon wrote: > Interesting observations, thank you. > Do you use -O2 or higher optimization for kernel/modules build? > I use only -O1. > > Here are some stats from my system: > $ dtrace -ln fbt::: | fgrep -c entry > 16876 > $ dtrace -ln fbt::: | fgrep -c return > 16729 > > So, 147 functions without return probe. Try re-compiling with -foptimize-sibling-calls. That enables the tail call optimization in gcc, and therefore you get many functions with no ret instruction (and thus no return probe in DTrace)