Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2013 04:38:30 -0700 (PDT)
From:      pra_udupi <pra_udupi@yahoo.co.in>
To:        freebsd-i386@freebsd.org
Subject:   Dtrace fasttrap function call usage
Message-ID:  <1382269110605-5853354.post@n5.nabble.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1382269110605-5853354.post>