Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Enabling DTrace

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 3 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      almabes
      last edited by

      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,

      Anthony

      1 Reply Last reply Reply Quote 0
      • A Offline
        almabes
        last edited by

        Dude…nothing?!

        1 Reply Last reply Reply Quote 0
        • T Offline
          tim.mcmanus
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • A Offline
            almabes
            last edited by

            Thanks for the hijack!
            I think it is somehow disabled.  If one attempts to execute dtrace -l, one gets this:

            [2.2.2-RELEASE][admin@pfsense.customer.local]/root: dtrace -l
            dtrace: failed to initialize dtrace: DTrace device not available on system
            [2.2.2-RELEASE][admin@pfsense.customer.local]/root:
            
            

            Perhaps a non waterlogged person from ESF might help out…

            1 Reply Last reply Reply Quote 0
            • S Offline
              Supermule Banned
              last edited by

              Same with hotkernel

              $ /usr/share/dtrace/toolkit/./hotkernel
              /usr/share/dtrace/toolkit/./hotkernel: not found

              1 Reply Last reply Reply Quote 0
              • T Offline
                tim.mcmanus
                last edited by

                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....

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.