On Mon, 2008-03-24 at 12:37 -0500, Nicolas Williams wrote: > On Mon, Mar 24, 2008 at 10:35:43AM -0700, Roman Shaposhnik wrote: > > Any suggestions? > > Either don't use DTrace if you need to iterate, or start the target via > DTrace so you can keep track of all the LWPs in your D script.
And how exactly starting the target via DTrace is going to make it easier? As far as I can tell I have two problems to deal with: 1. reporting N values every X milliseconds. 2. getting N values #1 can be sort of solved by using aggregations (although what I would really like to have is a %A specifier in printf for formating and outputting associative arrays). #2 is way trickier and I really don't know how to solve it short of digging all the functions inside the kernel that actually modify the attributes I'm looking for and using fbt::funcs:entry to keep my array/aggregation in sync with what's going on inside the kernel structures. If you happen to think that starting the target via DTrace can help address #2 -- please tell me more. Thanks, Roman. _______________________________________________ dtrace-discuss mailing list [email protected]
