Neelam wrote:> Does Dtrace support any Hash Table kind of construct to
> capture single instances of data? I want to capture
> some data which can have repetitive values, but I would
> like to store single instances. Is there any way to do
> it in Dtrace?
>
> Thanks,
> Neelam
>
I''m not sure if I understood your question correctly, but
either an aggregation or an associative array will allow you
do track occurrences. For example:
dtrace -n syscall::write:entry''{@a[pid]=count();}''
will print the pid of each process making a write(2) system
call and the number of times it did so while this dtrace
script was left running....
- Bart
--
Bart Smaalders Solaris Kernel Performance
barts at cyber.eng.sun.com http://blogs.sun.com/barts