Date: Mon, 29 Feb 2016 13:49:23 -0800 From: hiren panchasara <hiren@strugglingcoder.info> To: Mark Johnston <markj@FreeBSD.org> Cc: freebsd-dtrace@freebsd.org, sbruno@FreeBSD.org Subject: Re: Functions not getting picked up by dtrace Message-ID: <20160229214923.GF82027@strugglingcoder.info> In-Reply-To: <20160229214910.GA67805@wkstn-mjohnston.west.isilon.com> References: <20160229213933.GE82027@strugglingcoder.info> <20160229214910.GA67805@wkstn-mjohnston.west.isilon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--VaKJWhUROU/xPxjb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 02/29/16 at 01:49P, Mark Johnston wrote: > 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 > >=20 > > Other functions with similar signature are listed in 'dtrace -l'. >=20 > 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. >=20 > >=20 > > Is is because of some optimization? How do I undo it for testing > > purposes? >=20 > There's a __noinline attribute that you can use for this. Thanks, Mark. cem on irc also explained the "why" part. Cheers, Hiren --VaKJWhUROU/xPxjb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJW1LziXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNEUyMEZBMUQ4Nzg4RjNGMTdFNjZGMDI4 QjkyNTBFMTU2M0VERkU1AAoJEIuSUOFWPt/lULAH/RqTBf9dXngpXEWKclMu3OGI TBpnuJxNgOgPvA8svMedcjpYGA8iEopiZR7cETV/+4zht5iDtRIiNblyC9zqofrW TGt11pcbtF3BCjlWKyp2n7l2uILaC2ZhYg+mQr9eZp7/fweBvoVu+OKM4n6vPP3M 5qbZcCggGuYxiIZ+/w8h0nd29axOIHKXHojpAOLGC8Ri0iP0UM6pWI8nR/kZBPuc vcbn193jLSZ8HctNKHDnsyWrlXrDf1yzd11IShFp97hn9PkGA3UThdqByiwKOvSM Be9Q3mCxOFCUv2Yw0C0B/YLya2R/VmZloMAOVXnCzPOT7UHdLTsGCvmiAs13n5E= =/8zb -----END PGP SIGNATURE----- --VaKJWhUROU/xPxjb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160229214923.GF82027>