I have been doing some modification work on a/the fasttrap provider in DTrace. I have made some modifications to make it work for a/the function usage list. For example
The attached patches solved the problem for me.
dtrace -n 'pid$target:test::return{@func[probefunc]=count();}' -c ./test, will list all functions with the number of times each function is called. Also if a function had more than one return path DTrace would give a Pread() Fail error and the probe for the function would fail.The attached patches solved the problem for me.