Ugh, that sent too quickly.
Let me clarify:
[root at darkwatch] /data/blockd# cat test2.d
pid$target:libc*:memcpy:entry
{
@[execname] = quantize(arg2);
}
this doesn't work right (it doesn't count events at all) and it has a
100% chance of SIGSEGV'ing the monitored process when you finish
sampling (via ctrl-C.)
-a