Has anyone here been able to enable DTrace in pfSense 2.2.2? I need it for a project I am working on. I saw one forum posting indicating the OP would post back instructions, which did not occur.
Thanks in advance,
I think dtrace is installed by default, and this can be verified by entering 'dtrace' in the shell. It is installed in 2.2.2 as it comes with FreeBSD 10 by default.
However, I tried to execute /usr/share/dtrace/toolkit/hotkernel using both './hotkernel' and 'perl hotkernel' and neither command worked.
I'm obviously trying to identify which process(es) are burying one CPU during a specific event, and thought the prepackaged dtrace scripts would be helpful. I can run them using 'perl hotkernel' on a minimal FreeBSD 10.1 install. I assume the perl package doesn't come by default with the pfSense distribution.
So I'll hijack this thread a little to see if anyone knows if/how we can use the canned scripts that come with dtrace or if we have to write our own scripts to achieve the same.
Thanks for the hijack!
I think it is somehow disabled. If one attempts to execute dtrace -l, one gets this:
[2.2.2-RELEASE][email@example.com]/root: dtrace -l dtrace: failed to initialize dtrace: DTrace device not available on system [2.2.2-RELEASE][firstname.lastname@example.org]/root:
Perhaps a non waterlogged person from ESF might help out…
Same with hotkernel
/usr/share/dtrace/toolkit/./hotkernel: not found
Hummm… yeah, you're right. The dtrace kernel modules might not be there for dtrace to access. I got the following error:
dtrace -l | grep 'syscall.*read'
dtrace: failed to initialize dtrace: DTrace device not available on system
Kind of makes it a bit more challenging to gather data....