When you run dtrace -G it places nops at the probe sites. One of those nops will then be replaced with a trap instruction when the probe is enabled by your D script.
I've been meaning to write up a blog entry describing how USDT works, but I've been afraid that only James McIlree and I would find it interesting. Adam On Mon, Jun 16, 2008 at 09:34:26PM +0100, Rafael Vanoni wrote: > I was looking at some assembly on mdb and noticed that calls to > DTRACE_PROBE1() were seen as ~5 nops. > > Could anyone explain me why's that ? > > thanks > Rafael > _______________________________________________ > dtrace-discuss mailing list > [email protected] -- Adam Leventhal, Fishworks http://blogs.sun.com/ahl _______________________________________________ dtrace-discuss mailing list [email protected]
