From owner-freebsd-dtrace@freebsd.org Mon Feb 29 21:46:11 2016 Return-Path: Delivered-To: freebsd-dtrace@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 528BEAB89AC for ; Mon, 29 Feb 2016 21:46:11 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26AF41EB1; Mon, 29 Feb 2016 21:46:11 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pa0-x22b.google.com with SMTP id fl4so98793946pad.0; Mon, 29 Feb 2016 13:46:11 -0800 (PST) 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-disposition:in-reply-to:user-agent; bh=/cl5l1WYVlk7QlIJWU4nwYYJMX4QUp4nHAPfvqAaJu8=; b=OWAoLvFtKspG5HaS7LvHv6yTcQa13q5TzW1j4SJwpiwrtW5U5ZBTq5rHg12kgGxkWn HNW4BpdtdppYioEXwK0Px6T9NZTFMavs2LfnJffyz0p1nt2CMtAx69ioJesfzXlWCiye UAwpmQoynzVWfdi0XQSED/tjuzJmYHFDE0S5cwSVGVv96oc5ky461yrgxc9cqaMeXaQs HkgocDLypU2BaYkmIFMp55ja8GrqyRsLynFf2zX9yK638NTl67sgg+HT3g2+ZWAWh4jO PzV1yLw00lQNJe0+j+Hg22PmTlgf3gHlOqS+hDjH7XIBwn5qS0v1PSKMbAnN7D2jXjHL y3XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=/cl5l1WYVlk7QlIJWU4nwYYJMX4QUp4nHAPfvqAaJu8=; b=TNkMMGQzDBRrh+2mMngpg87N4Ge7QFmvSNRIR8d5wd1pPUD4jMvCRfLvs1WB75sW8q Vz9J/xdqHdFtuboiuqqV01n/8IntPbCx1zqNCifLoixdG8k3FkVz/xDqoT2R6G1SK8Zm vq6wcHWqHnUlcdeYv7/5gwoLVZc7Xk7YYx7fG5q9w/t6gxFJkFUUEG8JPWumDWQBr3Uh LA5VBhSJV303YXYCTGSN64cJ264qmSJOBR8RnCzE2tEdAfWBQZPKLfFjrmUN6qDVLto5 fEAQKAPtZI3IJT/QV2BcZunvH3WKPfvYo0xEivKJ4ryceaLTWV9UuS4skGi2H/NJz+kp jYmw== X-Gm-Message-State: AD7BkJKk6UxxcaaeVoCi0lnL1NCjkWgrhIWYeIKWVum1DX1wnTspFYl9w4e2HBTGRJaFeg== X-Received: by 10.66.102.104 with SMTP id fn8mr25217680pab.129.1456782370653; Mon, 29 Feb 2016 13:46:10 -0800 (PST) Received: from wkstn-mjohnston.west.isilon.com (c-67-182-131-225.hsd1.wa.comcast.net. [67.182.131.225]) by smtp.gmail.com with ESMTPSA id v3sm9632820par.17.2016.02.29.13.46.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Feb 2016 13:46:10 -0800 (PST) Sender: Mark Johnston Date: Mon, 29 Feb 2016 13:49:10 -0800 From: Mark Johnston To: hiren panchasara Cc: freebsd-dtrace@freebsd.org, sbruno@FreeBSD.org Subject: Re: Functions not getting picked up by dtrace Message-ID: <20160229214910.GA67805@wkstn-mjohnston.west.isilon.com> References: <20160229213933.GE82027@strugglingcoder.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160229213933.GE82027@strugglingcoder.info> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.20 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: Mon, 29 Feb 2016 21:46:11 -0000 On Mon, Feb 29, 2016 at 01:39:33PM -0800, hiren panchasara wrote: > I've seen this earlier with others too but this one is the latest > confusing me: em_xmit() in $src/dev/e1000/if_em.c > > Other functions with similar signature are listed in 'dtrace -l'. em_xmit() is a static function with a single call site, so it's getting inlined into its caller. DTrace FBT can't instrument inlined functions. > > Is is because of some optimization? How do I undo it for testing > purposes? There's a __noinline attribute that you can use for this.