Hi,
My script is as follows...
pid$target:::entry
{
@Count[probefunc] = count();
}
pid$target:::return
/Count[probefunc] != 1/
{
---------------
---------------
}
But it gives error.
: in predicate: Count has not yet been declared or assigned
Is it valid?
Thanks,
Ajit
--
This message posted from opensolaris.org
Adam Leventhal
2007-Oct-16 23:24 UTC
[dtrace-discuss] Can we use aggregation in predicate?
> Is it valid?No it''s not. You can''t use an aggregation in a predicate. I suggest you take a look at the chapter in the Solaris Dynamic Tracing Guide on aggregations. Adam -- Adam Leventhal, FishWorks http://blogs.sun.com/ahl