I'm trying to execute the following very simple use of DTrace from the terminal in OS X 10.8.
sudo dtrace -n 'syscall:::entry { @counts["System Call Entry"] = count(); }'
When I hit ^C I expect the aggregate @counts
to be printed out, but instead I just get a blank line printed out. Could someone please tell me why the aggregate isn't being printed?
It's really odd because if I execute the following script, I do see a printout of the aggregation, so the aggregation does have values stored in it.
sudo dtrace -n 'syscall:::entry { @counts[probefunc] = count(); } tick-1sec { printa(@counts); exit(0); }'