8.1 dtrace Command Description

The dtrace command provides a generic interface to all of the essential services that are provided by the DTrace facility, including options to do the following:

  • List the set of probes and providers currently published by DTrace.

  • Enable probes directly by using any of the probe description specifiers (provider, module, function, name).

  • Run the D compiler and compile one or more D program files or programs written directly on the command line.

  • Generate program stability reports. See Chapter 16, DTrace Stability Features.

  • Modify DTrace tracing and buffering behavior and enable additional D compiler features. See Chapter 10, Options and Tunables.

You can also use the dtrace command to create D scripts by using the command in a #! declaration to create an interpreter file. See Chapter 9, Scripting. Finally, you can use the -e option to dtrace to compile D programs and determine their properties without actually enabling any tracing.