[illumos-Developer] dtrace signed sum
Adam Leventhal
ahl at delphix.com
Tue Jun 21 18:28:15 PDT 2011
Hey Richard,
I'm not sure I understand what you mean. The sum() aggregating action is signed:
# dtrace -n BEGIN'{ @ = sum(-45); @ = sum(5); exit(0); }'
dtrace: description 'BEGIN' matched 1 probe
CPU ID FUNCTION:NAME
2 1 :BEGIN
-40
Adam
On Tue, Jun 21, 2011 at 4:07 PM, Richard Elling
<richard.elling at gmail.com> wrote:
> I have a desire for a the sum() aggregation to be signed. The reason is to count up and down.
> Perhaps a signed count() would also be better? Increment/decrement?
> Thoughts?
> -- richard
>
>
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer
>
--
Adam Leventhal, Delphix
http://dtrace.org/blogs/ahl
275 Middlefield Road, Suite 50
Menlo Park, CA 94025
http://www.delphix.com
More information about the Developer
mailing list