On Fri, Nov 13, 2009 at 10:27:05AM +0000, Joel Reymont wrote: > Ryan, > > On Nov 13, 2009, at 10:15 AM, Ryan wrote: > > > If you're optimiznig link-time code placement I would think you'd just need > > a set of caller-callee relationships along with their frequency? > > That would give me the "frequency order" but I'd like to have the "call > order" as well.
pid$target:library::entry { @a[usym(ucaller),probefunc] = count(); @b[usym(ucaller),probefunc] = min(timestamp); } If you're worried about multiple threads of execution, then: pid$target:library::entry { @a[usym(ucaller),probefunc] = count(); @b[tid, usym(ucaller),probefunc] = min(timestamp); } will separate them out. Cheers, - jonathan _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org