On Fri, Jun 12, 2009 at 03:48:42PM -0400, James Carlson wrote: > rickey c weisner writes: > > In the kernel. > > I am executing in function foo. > > > > foo calls putnext. > > > > I want a predicate that allows my > > fbt::putnext:entry > > to fire only when the parent is foo. > > > > Any suggestions ? > > fbt::foo:entry > { > self->flag++; > } > > fbt::putnext:entry > /self->flag/ > { > printf("hi there"); > } > > fbt::foo:return
Always predicate this with '/self->flag/', or threads which are currently in 'foo' when tracing is started will trace all activity after it returns. > { > self->flag--; > } Cheers, - jonathan _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org