Dtrace fasttrap function call usage
pra_udupi
pra_udupi at yahoo.co.in
Sun Oct 20 11:38:31 UTC 2013
I have been doing some modification work on fasttrap provider in Dtrace. i
have made some modifcation to make it work for function usage list.
for example dtrace -n pid$target:test::return{@func[probefunc]=count();}' -c
./test, will list all functions with 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.
dtrace_fasttrap.zip
<http://freebsd.1045724.n5.nabble.com/file/n5853354/dtrace_fasttrap.zip>
--
View this message in context: http://freebsd.1045724.n5.nabble.com/Dtrace-fasttrap-function-call-usage-tp5853354.html
Sent from the freebsd-i386 mailing list archive at Nabble.com.
More information about the freebsd-i386
mailing list