Re: [dtrace-discuss] Why can't I use stack as index to an array but I can for an aggregation?

2010-12-17 Thread Nicolas Williams
On Fri, Dec 17, 2010 at 03:44:00PM -0500, Brian Utterback wrote: I am aggregating using the stack function as the index: @s[stack()] = count(); This works great. However, I found that in addition to how many times each stack appears, it would also be useful to know which stacks were

Re: [dtrace-discuss] Why can't I use stack as index to an array but I can for an aggregation?

2010-12-17 Thread Adam Leventhal
Why can't I use stack as the index to an associative array when I can use it as the index to an aggregation? Am I doing something wrong? And if I can't use it, does anyone have a suggestion how to store the time of the last call of each stack? If Bryan is monitoring this, he can provide a