xref: /freebsd/cddl/contrib/opensolaris/cmd/dtrace/dtrace.1 (revision f0af0b312fd38c5ca57c35d30383f3d3e655a6f8)
12be1a816SJohn Birrell.\" CDDL HEADER START
22be1a816SJohn Birrell.\"
32be1a816SJohn Birrell.\" The contents of this file are subject to the terms of the
42be1a816SJohn Birrell.\" Common Development and Distribution License (the "License").
52be1a816SJohn Birrell.\" You may not use this file except in compliance with the License.
62be1a816SJohn Birrell.\"
72be1a816SJohn Birrell.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
82be1a816SJohn Birrell.\" or http://www.opensolaris.org/os/licensing.
92be1a816SJohn Birrell.\" See the License for the specific language governing permissions
102be1a816SJohn Birrell.\" and limitations under the License.
112be1a816SJohn Birrell.\"
122be1a816SJohn Birrell.\" When distributing Covered Code, include this CDDL HEADER in each
132be1a816SJohn Birrell.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
142be1a816SJohn Birrell.\" If applicable, add the following below this CDDL HEADER, with the
152be1a816SJohn Birrell.\" fields enclosed by brackets "[]" replaced with your own identifying
162be1a816SJohn Birrell.\" information: Portions Copyright [yyyy] [name of copyright owner]
172be1a816SJohn Birrell.\"
182be1a816SJohn Birrell.\" CDDL HEADER END
192be1a816SJohn Birrell.\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
203f3c4e0bSMark Johnston.\"
213f3c4e0bSMark Johnston.\" $FreeBSD$
223f3c4e0bSMark Johnston.\"
23*f0af0b31SMark Johnston.Dd August 16, 2018
243f3c4e0bSMark Johnston.Dt DTRACE 1
253f3c4e0bSMark Johnston.Os
263f3c4e0bSMark Johnston.Sh NAME
273f3c4e0bSMark Johnston.Nm dtrace
283f3c4e0bSMark Johnston.Nd dynamic tracing compiler and tracing utility
293f3c4e0bSMark Johnston.Sh SYNOPSIS
303f3c4e0bSMark Johnston.Nm
313f3c4e0bSMark Johnston.Op Fl 32 | Fl 64
323f3c4e0bSMark Johnston.Op Fl aACeFGhHlqSvVwZ
333f3c4e0bSMark Johnston.Op Fl b Ar bufsz
343f3c4e0bSMark Johnston.Op Fl c Ar cmd
353f3c4e0bSMark Johnston.Op Fl D Ar name Op Ns = Ns value
363f3c4e0bSMark Johnston.Op Fl I Ar path
373f3c4e0bSMark Johnston.Op Fl L Ar path
383f3c4e0bSMark Johnston.Op Fl o Ar output
393f3c4e0bSMark Johnston.Op Fl s Ar script
403f3c4e0bSMark Johnston.Op Fl U Ar name
413f3c4e0bSMark Johnston.Op Fl x Ar arg Op Ns = Ns value
423f3c4e0bSMark Johnston.Op Fl X Cm a | c | s | t
433f3c4e0bSMark Johnston.Op Fl p Ar pid
443f3c4e0bSMark Johnston.Op Fl P Ar provider Oo Oo Ar predicate Oc Ar action Oc
453f3c4e0bSMark Johnston.Op Fl m Oo Ar provider : Oc Ar module Oo Oo Ar predicate Oc Ar action Oc
463f3c4e0bSMark Johnston.Op Fl f Oo Oo Ar provider : Oc Ar module : Oc Ar function Oo Oo Ar predicate \
473f3c4e0bSMark Johnston    Oc Ar action Oc
483f3c4e0bSMark Johnston.Op Fl n Oo Oo Oo Ar provider : Oc Ar module : Oc Ar function : Oc Ar name \
493f3c4e0bSMark Johnston    Oo Oo Ar predicate Oc Ar action Oc
503f3c4e0bSMark Johnston.Op Fl i Ar probe-id Oo Oo Ar predicate Oc Ar action Oc
513f3c4e0bSMark Johnston.Sh DESCRIPTION
523f3c4e0bSMark JohnstonDTrace is a comprehensive dynamic tracing framework ported from Solaris.
533f3c4e0bSMark JohnstonDTrace provides a powerful infrastructure that permits administrators,
543f3c4e0bSMark Johnstondevelopers, and service personnel to concisely answer arbitrary questions about
553f3c4e0bSMark Johnstonthe behavior of the operating system and user programs.
563f3c4e0bSMark Johnston.Pp
573f3c4e0bSMark JohnstonThe
583f3c4e0bSMark Johnston.Nm
593f3c4e0bSMark Johnstoncommand provides a generic interface to the essential services provided by the
603f3c4e0bSMark JohnstonDTrace facility, including:
613f3c4e0bSMark Johnston.Bl -bullet -offset indent
623f3c4e0bSMark Johnston.It
632be1a816SJohn BirrellOptions that list the set of probes and providers currently published by DTrace
643f3c4e0bSMark Johnston.It
653f3c4e0bSMark JohnstonOptions that enable probes directly using any of the probe description
663f3c4e0bSMark Johnstonspecifiers (provider, module, function, name)
673f3c4e0bSMark Johnston.It
683f3c4e0bSMark JohnstonOptions that run the D compiler and compile one or more D program files or
693f3c4e0bSMark Johnstonprograms written directly on the command line
703f3c4e0bSMark Johnston.It
712be1a816SJohn BirrellOptions that generate anonymous tracing programs
723f3c4e0bSMark Johnston.It
732be1a816SJohn BirrellOptions that generate program stability reports
743f3c4e0bSMark Johnston.It
753f3c4e0bSMark JohnstonOptions that modify DTrace tracing and buffering behavior and enable
763f3c4e0bSMark Johnstonadditional D compiler features
773f3c4e0bSMark Johnston.El
783f3c4e0bSMark Johnston.Pp
793f3c4e0bSMark JohnstonYou can use
803f3c4e0bSMark Johnston.Nm
813f3c4e0bSMark Johnstonto create D scripts by using it in a shebang declaration to create an
823f3c4e0bSMark Johnstoninterpreter file.
833f3c4e0bSMark JohnstonYou can also use
843f3c4e0bSMark Johnston.Nm
853f3c4e0bSMark Johnstonto attempt to compile D programs and determine their properties without
863f3c4e0bSMark Johnstonactually enabling traces using the
873f3c4e0bSMark Johnston.Fl e
883f3c4e0bSMark Johnstonoption.
893f3c4e0bSMark Johnston.Sh OPTIONS
903f3c4e0bSMark JohnstonThe arguments accepted by the
913f3c4e0bSMark Johnston.Fl P ,
923f3c4e0bSMark Johnston.Fl m ,
933f3c4e0bSMark Johnston.Fl f ,
943f3c4e0bSMark Johnston.Fl n ,
953f3c4e0bSMark Johnstonand
963f3c4e0bSMark Johnston.Fl i
973f3c4e0bSMark Johnstonoptions can include an optional D language
983f3c4e0bSMark Johnston.Ar predicate
993f3c4e0bSMark Johnstonenclosed in slashes and an optional D language
1003f3c4e0bSMark Johnston.Ar action
1013f3c4e0bSMark Johnstonstatement list enclosed in braces.
1023f3c4e0bSMark JohnstonD program code specified on the command line must be appropriately quoted to
1033f3c4e0bSMark Johnstonavoid interpretation of meta-characters by the shell.
1043f3c4e0bSMark Johnston.Pp
1052be1a816SJohn BirrellThe following options are supported:
1063f3c4e0bSMark Johnston.Bl -tag -width indent
1073f3c4e0bSMark Johnston.It Fl 32 | Fl 64
1083f3c4e0bSMark JohnstonThe D compiler produces programs using the native data model of the operating
1093f3c4e0bSMark Johnstonsystem kernel.
1103f3c4e0bSMark JohnstonIf the
1113f3c4e0bSMark Johnston.Fl 32
1123f3c4e0bSMark Johnstonoption is specified,
1133f3c4e0bSMark Johnston.Nm
1143f3c4e0bSMark Johnstonforces the D compiler to compile a D program using the 32-bit data model.
1153f3c4e0bSMark JohnstonIf the
1163f3c4e0bSMark Johnston.Fl 64
1173f3c4e0bSMark Johnstonoption is specified,
1183f3c4e0bSMark Johnston.Nm
1193f3c4e0bSMark Johnstonforces the D compiler to compile a D program using the 64-bit data model.
1203f3c4e0bSMark JohnstonThese options are typically not required as
1213f3c4e0bSMark Johnston.Nm
1223f3c4e0bSMark Johnstonselects the native data model as the default.
1233f3c4e0bSMark JohnstonThe data model affects the sizes of integer types and other language properties.
1243f3c4e0bSMark JohnstonD programs compiled for either data model can be executed on both 32-bit and
1253f3c4e0bSMark Johnston64-bit kernels.
1263f3c4e0bSMark JohnstonThe
1273f3c4e0bSMark Johnston.Fl 32
1283f3c4e0bSMark Johnstonand
1293f3c4e0bSMark Johnston.Fl 64
1303f3c4e0bSMark Johnstonoptions also determine the
1313f3c4e0bSMark Johnston.Xr elf 5
1323f3c4e0bSMark Johnstonfile format (ELF32 or ELF64) produced by the
1333f3c4e0bSMark Johnston.Fl G
1343f3c4e0bSMark Johnstonoption.
1353f3c4e0bSMark Johnston.It Fl a
1363f3c4e0bSMark JohnstonClaim anonymous tracing state and display the traced data.
1373f3c4e0bSMark JohnstonYou can combine the
1383f3c4e0bSMark Johnston.Fl a
1393f3c4e0bSMark Johnstonoption with the
1403f3c4e0bSMark Johnston.Fl e
1413f3c4e0bSMark Johnstonoption to force
1423f3c4e0bSMark Johnston.Nm
1433f3c4e0bSMark Johnstonto exit immediately after consuming the anonymous tracing state rather than
1443f3c4e0bSMark Johnstoncontinuing to wait for new data.
1453f3c4e0bSMark Johnston.It Fl A
1463f3c4e0bSMark JohnstonGenerate directives for anonymous tracing and write them to
1473f3c4e0bSMark Johnston.Pa /boot/dtrace.dof .
1483f3c4e0bSMark JohnstonThis option constructs a set of dtrace configuration file directives to enable
1493f3c4e0bSMark Johnstonthe specified probes for anonymous tracing and then exits.
1503f3c4e0bSMark JohnstonBy default,
1513f3c4e0bSMark Johnston.Nm
1523f3c4e0bSMark Johnstonattempts to store the directives to the file
1533f3c4e0bSMark Johnston.Pa /boot/dtrace.dof .
1543f3c4e0bSMark JohnstonThis behavior can be modified using the
1553f3c4e0bSMark Johnston.Fl o
1563f3c4e0bSMark Johnstonoption to specify an alternate output file.
1573f3c4e0bSMark Johnston.It Fl b Ar bufsz
1583f3c4e0bSMark JohnstonSet the principal trace buffer size to
1593f3c4e0bSMark Johnston.Ar bufsz .
1603f3c4e0bSMark JohnstonThe trace buffer size can include any of the size suffixes k, m, g, or t.
1613f3c4e0bSMark JohnstonIf the buffer space cannot be allocated,
1623f3c4e0bSMark Johnston.Nm dtrace
1633f3c4e0bSMark Johnstonattempts to reduce the buffer size or exit depending on the setting of the
1643f3c4e0bSMark Johnstonbufresize property.
1653f3c4e0bSMark Johnston.It Fl c Ar cmd
1663f3c4e0bSMark JohnstonRun the specified command
1673f3c4e0bSMark Johnston.Ar cmd
1683f3c4e0bSMark Johnstonand exit upon its completion.
1693f3c4e0bSMark JohnstonIf more than one
1703f3c4e0bSMark Johnston.Fl c
1713f3c4e0bSMark Johnstonoption is present on the command line,
1723f3c4e0bSMark Johnston.Nm dtrace
1733f3c4e0bSMark Johnstonexits when all commands have exited, reporting the exit status for each child
1743f3c4e0bSMark Johnstonprocess as it terminates.
1753f3c4e0bSMark JohnstonThe process ID of the first command is made available to any D programs
1763f3c4e0bSMark Johnstonspecified on the command line or using the
1773f3c4e0bSMark Johnston.Fl s
1783f3c4e0bSMark Johnstonoption through the
1793f3c4e0bSMark Johnston.Li $target
1803f3c4e0bSMark Johnstonmacro variable.
1813f3c4e0bSMark Johnston.It Fl C
1823f3c4e0bSMark JohnstonRun the C preprocessor
1833f3c4e0bSMark Johnston.Xr cpp 1
1843f3c4e0bSMark Johnstonover D programs before compiling them.
1853f3c4e0bSMark JohnstonYou can pass options to the C preprocessor using the
1863f3c4e0bSMark Johnston.Fl D ,
1873f3c4e0bSMark Johnston.Fl U ,
1883f3c4e0bSMark Johnston.Fl I ,
1893f3c4e0bSMark Johnstonand
1903f3c4e0bSMark Johnston.Fl H
1913f3c4e0bSMark Johnstonoptions.
1923f3c4e0bSMark JohnstonYou can select the degree of C standard conformance if you use the
1933f3c4e0bSMark Johnston.Fl X
1943f3c4e0bSMark Johnstonoption.
1953f3c4e0bSMark JohnstonFor a description of the set of tokens defined by the D compiler when invoking
1963f3c4e0bSMark Johnstonthe C preprocessor, see
1973f3c4e0bSMark Johnston.Fl X .
1983f3c4e0bSMark Johnston.It Fl D Ar name Op Ns = Ns value
1993f3c4e0bSMark JohnstonDefine
2003f3c4e0bSMark Johnston.Ar name
2013f3c4e0bSMark Johnstonwhen invoking
2023f3c4e0bSMark Johnston.Xr cpp 1
2033f3c4e0bSMark Johnston(enabled using the
2043f3c4e0bSMark Johnston.Fl C
2053f3c4e0bSMark Johnstonoption).
2063f3c4e0bSMark JohnstonIf you specify an additional
2073f3c4e0bSMark Johnston.Ar value ,
2083f3c4e0bSMark Johnstonthe name is assigned the corresponding value.
2093f3c4e0bSMark JohnstonThis option passes the
2103f3c4e0bSMark Johnston.Fl D
2113f3c4e0bSMark Johnstonoption to each
2123f3c4e0bSMark Johnston.Xr cpp 1
2133f3c4e0bSMark Johnstoninvocation.
2143f3c4e0bSMark Johnston.It Fl e
2153f3c4e0bSMark JohnstonExit after compiling any requests and consuming anonymous tracing state
2163f3c4e0bSMark Johnston.Fl ( a
2173f3c4e0bSMark Johnstonoption) but prior to enabling any probes.
2183f3c4e0bSMark JohnstonYou can combine this option with the
2193f3c4e0bSMark Johnston.Fl a
2203f3c4e0bSMark Johnstonoption to print anonymous tracing data and exit.
2213f3c4e0bSMark JohnstonYou can also combine this option with D compiler options.
2223f3c4e0bSMark JohnstonThis combination verifies that the programs compile without actually executing
2233f3c4e0bSMark Johnstonthem and enabling the corresponding instrumentation.
2243f3c4e0bSMark Johnston.It Fl f Oo Oo Ar provider : Oc Ar module : Oc Ar function Oo Oo Ar predicate \
2253f3c4e0bSMark Johnston    Oc Ar action Oc
2263f3c4e0bSMark JohnstonSpecify function name to trace or list
2273f3c4e0bSMark Johnston.Fl ( l
2283f3c4e0bSMark Johnstonoption).
2293f3c4e0bSMark JohnstonThe corresponding argument can include any of the probe description forms
2303f3c4e0bSMark Johnston.Ar provider:module:function ,
2313f3c4e0bSMark Johnston.Ar module:function ,
2323f3c4e0bSMark Johnstonor
2333f3c4e0bSMark Johnston.Ar function .
2343f3c4e0bSMark JohnstonUnspecified probe description fields are left blank and match any probes
2353f3c4e0bSMark Johnstonregardless of the values in those fields.
2363f3c4e0bSMark JohnstonIf no qualifiers other than
2373f3c4e0bSMark Johnston.Ar function
2383f3c4e0bSMark Johnstonare specified in the description, all probes with the corresponding
2393f3c4e0bSMark Johnston.Ar function
2403f3c4e0bSMark Johnstonare matched.
2413f3c4e0bSMark JohnstonThe
2423f3c4e0bSMark Johnston.Fl f
2433f3c4e0bSMark Johnstonargument can be suffixed with an optional D probe clause.
2443f3c4e0bSMark JohnstonYou can specify more than one
2453f3c4e0bSMark Johnston.Fl f
2463f3c4e0bSMark Johnstonoption on the command line at a time.
2473f3c4e0bSMark Johnston.It Fl F
2483f3c4e0bSMark JohnstonCoalesce trace output by identifying function entry and return.
2493f3c4e0bSMark JohnstonFunction entry probe reports are indented and their output is prefixed with
2503f3c4e0bSMark Johnston.Ql -> .
2513f3c4e0bSMark JohnstonFunction return probe reports are unindented and their output is prefixed with
2523f3c4e0bSMark Johnston.Ql <- .
2533f3c4e0bSMark JohnstonSystem call entry probe reports are indented and their output is prefixed with
2543f3c4e0bSMark Johnston.Ql => .
2553f3c4e0bSMark JohnstonSystem call return probe reports are unindented and their output is prefixed
2563f3c4e0bSMark Johnstonwith
2573f3c4e0bSMark Johnston.Ql <= .
2583f3c4e0bSMark Johnston.It Fl G
2593f3c4e0bSMark JohnstonGenerate an ELF file containing an embedded DTrace program.
2603f3c4e0bSMark JohnstonThe DTrace probes specified in the program are saved inside of a relocatable ELF
2613f3c4e0bSMark Johnstonobject which can be linked into another program.
2623f3c4e0bSMark JohnstonIf the
2633f3c4e0bSMark Johnston.Fl o
2643f3c4e0bSMark Johnstonoption is present, the ELF file is saved using the pathname specified as the
2653f3c4e0bSMark Johnstonargument for this operand.
2663f3c4e0bSMark JohnstonIf the
2673f3c4e0bSMark Johnston.Fl o
2683f3c4e0bSMark Johnstonoption is not present and the DTrace program is contained with a file whose name
2693f3c4e0bSMark Johnstonis
2703f3c4e0bSMark Johnston.Ar filename.d ,
2713f3c4e0bSMark Johnstonthen the ELF file is saved using the name
2723f3c4e0bSMark Johnston.Ar filename.o .
2733f3c4e0bSMark JohnstonOtherwise the ELF file is saved using the name d.out.
2743f3c4e0bSMark Johnston.It Fl h
2753f3c4e0bSMark JohnstonGenerate a header file containing macros that correspond to probes in the
2763f3c4e0bSMark Johnstonspecified provider definitions.
2773f3c4e0bSMark JohnstonThis option should be used to generate a header file that is included by other
2783f3c4e0bSMark Johnstonsource files for later use with the
279946497ecSMark Johnston.Fl G
280946497ecSMark Johnstonoption.
281946497ecSMark JohnstonIf the
282946497ecSMark Johnston.Fl o
283946497ecSMark Johnstonoption is present, the header file is saved using the pathname specified as the
284946497ecSMark Johnstonargument for that option.
285946497ecSMark JohnstonIf the
286946497ecSMark Johnston.Fl o
287946497ecSMark Johnstonoption is not present and the DTrace program is contained within a file whose
288946497ecSMark Johnstonname is
289946497ecSMark Johnston.Ar filename.d ,
290946497ecSMark Johnstonthen the header file is saved using the name
291946497ecSMark Johnston.Ar filename.h .
2923f3c4e0bSMark Johnston.It Fl H
2933f3c4e0bSMark JohnstonPrint the pathnames of included files when invoking
2943f3c4e0bSMark Johnston.Xr cpp 1
2953f3c4e0bSMark Johnston(enabled using the
2963f3c4e0bSMark Johnston.Fl C
2973f3c4e0bSMark Johnstonoption).
2983f3c4e0bSMark JohnstonThis option passes the
2993f3c4e0bSMark Johnston.Fl H
3003f3c4e0bSMark Johnstonoption to each
3013f3c4e0bSMark Johnston.Xr cpp 1
3023f3c4e0bSMark Johnstoninvocation, causing it to display the list of pathnames, one for each line, to
3033f3c4e0bSMark Johnstonstandard error.
3043f3c4e0bSMark Johnston.It Fl i Ar probe-id Op Oo Ar predicate Oc Ar action
3053f3c4e0bSMark JohnstonSpecify probe identifier
3063f3c4e0bSMark Johnston.Ar ( probe-id )
3073f3c4e0bSMark Johnstonto trace or list
3083f3c4e0bSMark Johnston.Ar ( l
3093f3c4e0bSMark Johnstonoption).
3103f3c4e0bSMark JohnstonYou can specify probe IDs using decimal integers as shown by `dtrace -l`.
3113f3c4e0bSMark JohnstonThe
3123f3c4e0bSMark Johnston.Fl i
3133f3c4e0bSMark Johnstonargument can be suffixed with an optional D probe clause.
3143f3c4e0bSMark JohnstonYou can specify more than one
3153f3c4e0bSMark Johnston.Fl i
3163f3c4e0bSMark Johnstonoption at a time.
3173f3c4e0bSMark Johnston.It Fl I Ar path
3183f3c4e0bSMark JohnstonAdd the specified directory
3193f3c4e0bSMark Johnston.Ar path
3203f3c4e0bSMark Johnstonto the search path for #include files when invoking
3213f3c4e0bSMark Johnston.Xr cpp 1
3223f3c4e0bSMark Johnston(enabled using the
3233f3c4e0bSMark Johnston.Fl C
3243f3c4e0bSMark Johnstonoption).
3253f3c4e0bSMark JohnstonThis option passes the
3263f3c4e0bSMark Johnston.Fl I
3273f3c4e0bSMark Johnstonoption to each
3283f3c4e0bSMark Johnston.Xr cpp 1
3293f3c4e0bSMark Johnstoninvocation.
3303f3c4e0bSMark JohnstonThe specified
3313f3c4e0bSMark Johnston.Ar path
3323f3c4e0bSMark Johnstonis inserted into the search path ahead of the default directory list.
3333f3c4e0bSMark Johnston.It Fl l
3343f3c4e0bSMark JohnstonList probes instead of enabling them.
3353f3c4e0bSMark JohnstonIf the
3363f3c4e0bSMark Johnston.Fl l
3373f3c4e0bSMark Johnstonoption is specified,
3383f3c4e0bSMark Johnston.Nm
3393f3c4e0bSMark Johnstonproduces a report of the probes matching the descriptions given using the
3403f3c4e0bSMark Johnston.Fl P , m , f , n , i ,
3413f3c4e0bSMark Johnstonand
3423f3c4e0bSMark Johnston.Fl s
3433f3c4e0bSMark Johnstonoptions.
3443f3c4e0bSMark JohnstonIf none of these options are specified, this option lists all probes.
3453f3c4e0bSMark Johnston.It Fl L Ar path
3463f3c4e0bSMark JohnstonAdd the specified directory
3473f3c4e0bSMark Johnston.Ar path
3483f3c4e0bSMark Johnstonto the search path for DTrace libraries.
3493f3c4e0bSMark JohnstonDTrace libraries are used to contain common definitions that can be used when
3503f3c4e0bSMark Johnstonwriting D programs.
3513f3c4e0bSMark JohnstonThe specified
3523f3c4e0bSMark Johnston.Ar path
3533f3c4e0bSMark Johnstonis added after the default library search path.
3543f3c4e0bSMark Johnston.It Fl m Oo Ar provider : Oc Ar module Oo Oo Ar predicate Oc Ar action Oc
3553f3c4e0bSMark JohnstonSpecify module name to trace or list
3563f3c4e0bSMark Johnston.Fl ( l
3573f3c4e0bSMark Johnstonoption).
3583f3c4e0bSMark JohnstonThe corresponding argument can include any of the probe description forms
3593f3c4e0bSMark Johnston.Ar provider:module
3603f3c4e0bSMark Johnstonor
3613f3c4e0bSMark Johnston.Ar module .
3623f3c4e0bSMark JohnstonUnspecified probe description fields are left blank and match any probes
3633f3c4e0bSMark Johnstonregardless of the values in those fields.
3643f3c4e0bSMark JohnstonIf no qualifiers other than
3653f3c4e0bSMark Johnston.Ar module
3663f3c4e0bSMark Johnstonare specified in the description, all probes with a corresponding
3673f3c4e0bSMark Johnston.Ar module
3683f3c4e0bSMark Johnstonare matched.
3693f3c4e0bSMark JohnstonThe
3703f3c4e0bSMark Johnston.Fl m
3713f3c4e0bSMark Johnstonargument can be suffixed with an optional D probe clause.
3723f3c4e0bSMark JohnstonMore than one
3733f3c4e0bSMark Johnston.Fl m
3743f3c4e0bSMark Johnstonoption can be specified on the command line at a time.
3753f3c4e0bSMark Johnston.It Fl n Oo Oo Oo Ar provider : Oc Ar module : Oc Ar function : Oc Ar name \
3763f3c4e0bSMark Johnston    Oo Oo Ar predicate Oc Ar action Oc
3773f3c4e0bSMark JohnstonSpecify probe name to trace or list
3783f3c4e0bSMark Johnston.Fl ( l
3793f3c4e0bSMark Johnstonoption).
3803f3c4e0bSMark JohnstonThe corresponding argument can include any of the probe description forms
3813f3c4e0bSMark Johnston.Ar provider:module:function:name , module:function:name , function:name ,
3823f3c4e0bSMark Johnstonor
3833f3c4e0bSMark Johnston.Ar name .
3843f3c4e0bSMark JohnstonUnspecified probe description fields are left blank and match any probes
3853f3c4e0bSMark Johnstonregardless of the values in those fields.
3863f3c4e0bSMark JohnstonIf no qualifiers other than
3873f3c4e0bSMark Johnston.Ar name
3883f3c4e0bSMark Johnstonare specified in the description, all probes with a corresponding
3893f3c4e0bSMark Johnston.Ar name
3903f3c4e0bSMark Johnstonare matched.
3913f3c4e0bSMark JohnstonThe
3923f3c4e0bSMark Johnston.Fl n
3933f3c4e0bSMark Johnstonargument can be suffixed with an optional D probe clause.
3943f3c4e0bSMark JohnstonMore than one
3953f3c4e0bSMark Johnston.Fl n
3963f3c4e0bSMark Johnstonoption can be specified on the command line at a time.
3973f3c4e0bSMark Johnston.It Fl o Ar output
3983f3c4e0bSMark JohnstonSpecify the
3993f3c4e0bSMark Johnston.Ar output
4003f3c4e0bSMark Johnstonfile for the
4013f3c4e0bSMark Johnston.Fl A , G ,
4023f3c4e0bSMark Johnstonand
4033f3c4e0bSMark Johnston.Fl l
4043f3c4e0bSMark Johnstonoptions, or for the traced data itself.
4053f3c4e0bSMark JohnstonIf the
4063f3c4e0bSMark Johnston.Fl A
4073f3c4e0bSMark Johnstonoption is present and
4083f3c4e0bSMark Johnston.Fl o
4093f3c4e0bSMark Johnstonis not present, the default output file is
4103f3c4e0bSMark Johnston.Pa /boot/dtrace.dof .
4113f3c4e0bSMark JohnstonIf the
4123f3c4e0bSMark Johnston.Fl G
4133f3c4e0bSMark Johnstonoption is present and the
4143f3c4e0bSMark Johnston.Fl s
4153f3c4e0bSMark Johnstonoption's argument is of the form
4163f3c4e0bSMark Johnston.Ar filename.d
4173f3c4e0bSMark Johnstonand
4183f3c4e0bSMark Johnston.Fl o
4193f3c4e0bSMark Johnstonis not present, the default output file is
4203f3c4e0bSMark Johnston.Ar filename.o .
4213f3c4e0bSMark JohnstonOtherwise the default output file is
4223f3c4e0bSMark Johnston.Ar d.out .
4233f3c4e0bSMark Johnston.It Fl p Ar pid
4243f3c4e0bSMark JohnstonGrab the specified process-ID
4253f3c4e0bSMark Johnston.Ar pid ,
4263f3c4e0bSMark Johnstoncache its symbol tables, and exit upon its completion.
4273f3c4e0bSMark JohnstonIf more than one
4283f3c4e0bSMark Johnston.Fl p
4293f3c4e0bSMark Johnstonoption is present on the command line,
4303f3c4e0bSMark Johnston.Nm
4313f3c4e0bSMark Johnstonexits when all commands have exited, reporting the exit status for each process
4323f3c4e0bSMark Johnstonas it terminates.
4333f3c4e0bSMark JohnstonThe first process-ID is made available to any D programs specified on the
4343f3c4e0bSMark Johnstoncommand line or using the
4353f3c4e0bSMark Johnston.Fl s
4363f3c4e0bSMark Johnstonoption through the
4373f3c4e0bSMark Johnston.Li $target
4383f3c4e0bSMark Johnstonmacro variable.
4393f3c4e0bSMark Johnston.It Fl P Ar provider Oo Oo Ar predicate Oc Ar action Oc
4403f3c4e0bSMark JohnstonSpecify provider name to trace or list
4413f3c4e0bSMark Johnston.Fl ( l
4423f3c4e0bSMark Johnstonoption).
4433f3c4e0bSMark JohnstonThe remaining probe description fields module, function, and name are left
4443f3c4e0bSMark Johnstonblank and match any probes regardless of the values in those fields.
4453f3c4e0bSMark JohnstonThe
4463f3c4e0bSMark Johnston.Fl P
4473f3c4e0bSMark Johnstonargument can be suffixed with an optional D probe clause.
4483f3c4e0bSMark JohnstonYou can specify more than one
4493f3c4e0bSMark Johnston.Fl P
4503f3c4e0bSMark Johnstonoption on the command line at a time.
4513f3c4e0bSMark Johnston.It Fl q
4523f3c4e0bSMark JohnstonSet quiet mode.
4533f3c4e0bSMark Johnston.Nm
4543f3c4e0bSMark Johnstonsuppresses messages such as the number of probes matched by the specified
4553f3c4e0bSMark Johnstonoptions and D programs and does not print column headers, the CPU ID, the probe
4563f3c4e0bSMark JohnstonID, or insert newlines into the output.
4573f3c4e0bSMark JohnstonOnly data traced and formatted by D program statements such as
4583f3c4e0bSMark Johnston.Ql dtrace()
4593f3c4e0bSMark Johnstonand
4603f3c4e0bSMark Johnston.Ql printf()
4613f3c4e0bSMark Johnstonis displayed to standard output.
4623f3c4e0bSMark Johnston.It Fl s Ar script
4633f3c4e0bSMark JohnstonCompile the specified D program source file.
4643f3c4e0bSMark JohnstonIf the
4653f3c4e0bSMark Johnston.Fl e
4663f3c4e0bSMark Johnstonoption is present, the program is compiled but instrumentation is not enabled.
4673f3c4e0bSMark JohnstonIf the
4683f3c4e0bSMark Johnston.Fl l
4693f3c4e0bSMark Johnstonoption is present, the program is compiled and the set of probes matched by it
4703f3c4e0bSMark Johnstonis listed, but instrumentation is not enabled.
4713f3c4e0bSMark JohnstonIf none of
4723f3c4e0bSMark Johnston.Fl e , l , G ,
4733f3c4e0bSMark Johnstonor
4743f3c4e0bSMark Johnston.Fl A
4753f3c4e0bSMark Johnstonare present, the instrumentation specified by the D program is enabled and
4763f3c4e0bSMark Johnstontracing begins.
4773f3c4e0bSMark Johnston.It Fl S
4783f3c4e0bSMark JohnstonShow D compiler intermediate code.
4793f3c4e0bSMark JohnstonThe D compiler produces a report of the intermediate code generated for each D
4803f3c4e0bSMark Johnstonprogram to standard error.
4813f3c4e0bSMark Johnston.It Fl U Ar name
4823f3c4e0bSMark JohnstonUndefine the specified
4833f3c4e0bSMark Johnston.Ar name
4843f3c4e0bSMark Johnstonwhen invoking
4853f3c4e0bSMark Johnston.Xr cpp 1
4863f3c4e0bSMark Johnston(enabled using the
4873f3c4e0bSMark Johnston.Fl C
4883f3c4e0bSMark Johnstonoption).
4893f3c4e0bSMark JohnstonThis option passes the
4903f3c4e0bSMark Johnston.Fl U
4913f3c4e0bSMark Johnstonoption to each
4923f3c4e0bSMark Johnston.Xr cpp 1
4933f3c4e0bSMark Johnstoninvocation.
4943f3c4e0bSMark Johnston.It Fl v
4953f3c4e0bSMark JohnstonSet verbose mode.
4963f3c4e0bSMark JohnstonIf the
4973f3c4e0bSMark Johnston.Fl v
4983f3c4e0bSMark Johnstonoption is specified,
4993f3c4e0bSMark Johnston.Nm
5003f3c4e0bSMark Johnstonproduces a program stability report showing the minimum interface stability and
5013f3c4e0bSMark Johnstondependency level for the specified D programs.
5023f3c4e0bSMark Johnston.It Fl V
5033f3c4e0bSMark JohnstonReport the highest D programming interface version supported by
5043f3c4e0bSMark Johnston.Nm .
5053f3c4e0bSMark JohnstonThe version information is printed to standard output and the
5063f3c4e0bSMark Johnston.Nm
5073f3c4e0bSMark Johnstoncommand exits.
5083f3c4e0bSMark Johnston.It Fl w
5093f3c4e0bSMark JohnstonPermit destructive actions in D programs specified using the
5103f3c4e0bSMark Johnston.Fl s , P , m , f , n ,
5113f3c4e0bSMark Johnstonor
5123f3c4e0bSMark Johnston.Fl i
5133f3c4e0bSMark Johnstonoptions.
5143f3c4e0bSMark JohnstonIf the
5153f3c4e0bSMark Johnston.Fl w
5163f3c4e0bSMark Johnstonoption is not specified,
5173f3c4e0bSMark Johnston.Nm
5183f3c4e0bSMark Johnstondoes not permit the compilation or enabling of a D program that contains
5193f3c4e0bSMark Johnstondestructive actions.
5203f3c4e0bSMark Johnston.It Fl x Ar arg Op Ns = Ns value
5213f3c4e0bSMark JohnstonEnable or modify a DTrace runtime option or D compiler option.
5223f3c4e0bSMark JohnstonBoolean options are enabled by specifying their name.
5233f3c4e0bSMark JohnstonOptions with values are set by separating the option name and value with an
5243f3c4e0bSMark Johnstonequals sign (=).
525*f0af0b31SMark Johnston.Pp
526*f0af0b31SMark JohnstonA
527*f0af0b31SMark Johnston.Ar size
528*f0af0b31SMark Johnstonargument may be suffixed with one of
529*f0af0b31SMark Johnston.Cm K ,
530*f0af0b31SMark Johnston.Cm M ,
531*f0af0b31SMark Johnston.Cm G
532*f0af0b31SMark Johnstonor
533*f0af0b31SMark Johnston.Cm T
534*f0af0b31SMark Johnston(either upper or lower case) to indicate a multiple of
535*f0af0b31SMark JohnstonKilobytes, Megabytes, Gigabytes or Terabytes
536*f0af0b31SMark Johnstonrespectively.
537*f0af0b31SMark Johnston.Pp
538*f0af0b31SMark JohnstonA
539*f0af0b31SMark Johnston.Ar time
540*f0af0b31SMark Johnstonargument may be suffixed with one of
541*f0af0b31SMark Johnston.Cm ns ,
542*f0af0b31SMark Johnston.Cm nsec ,
543*f0af0b31SMark Johnston.Cm us ,
544*f0af0b31SMark Johnston.Cm usec ,
545*f0af0b31SMark Johnston.Cm ms ,
546*f0af0b31SMark Johnston.Cm msec ,
547*f0af0b31SMark Johnston.Cm s  ,
548*f0af0b31SMark Johnston.Cm sec ,
549*f0af0b31SMark Johnston.Cm m ,
550*f0af0b31SMark Johnston.Cm min ,
551*f0af0b31SMark Johnston.Cm h ,
552*f0af0b31SMark Johnston.Cm hour ,
553*f0af0b31SMark Johnston.Cm d  ,
554*f0af0b31SMark Johnston.Cm day ,
555*f0af0b31SMark Johnston.Cm hz .
556*f0af0b31SMark JohnstonIf no suffix is specified
557*f0af0b31SMark Johnston.Cm hz
558*f0af0b31SMark Johnstonwill be used as the unit.
559*f0af0b31SMark Johnston.Bl -tag -width indent
560*f0af0b31SMark Johnston.It Sy aggrate Ns = Ns Ar time
561*f0af0b31SMark JohnstonRate of aggregation reading.
562*f0af0b31SMark Johnston.It Sy aggsize Ns = Ns Ar size
563*f0af0b31SMark JohnstonSize of the aggregation buffer.
564*f0af0b31SMark Johnston.It Sy bufpolicy Ns = Ns Cm fill Ns | Ns Cm switch Ns | Ns Cm ring
565*f0af0b31SMark JohnstonSpecifies the buffer policy for the principal buffer.
566*f0af0b31SMark Johnston.It Sy bufresize Ns = Ns Cm auto Ns | Ns Cm manual
567*f0af0b31SMark JohnstonBuffer resizing policy.
568*f0af0b31SMark Johnston.It Sy bufsize Ns = Ns Ar size
569*f0af0b31SMark JohnstonSize of the per-CPU principal buffer.
570*f0af0b31SMark JohnstonSame as the
571*f0af0b31SMark Johnston.Fl b
572*f0af0b31SMark Johnstonflag.
573*f0af0b31SMark Johnston.It Sy cleanrate Ns = Ns Ar time
574*f0af0b31SMark JohnstonCleaning rate.
575*f0af0b31SMark JohnstonMust be specified in number-per-second with the
576*f0af0b31SMark Johnston.Dq Li hz
577*f0af0b31SMark Johnstonsuffix.
578*f0af0b31SMark Johnston.It Sy cpu Ns = Ns Ar scalar
579*f0af0b31SMark JohnstonSpecifies the CPU on which to enable tracing.
580*f0af0b31SMark Johnston.It Sy defaultargs
581*f0af0b31SMark JohnstonAllow references to unspecified macro arguments.
582*f0af0b31SMark Johnston.It Sy destructive
583*f0af0b31SMark JohnstonAllow destructive actions.
584*f0af0b31SMark JohnstonSame as the
585*f0af0b31SMark Johnston.Fl w
586*f0af0b31SMark Johnstonflag.
587*f0af0b31SMark Johnston.It Sy dynvarsize Ns = Ns Ar size
588*f0af0b31SMark JohnstonSize of the dynamic variable space.
589*f0af0b31SMark Johnston.It Sy flowindent
590*f0af0b31SMark JohnstonTurn on flow indentation.
591*f0af0b31SMark JohnstonSame as the
592*f0af0b31SMark Johnston.Fl F
593*f0af0b31SMark Johnstonflag.
594*f0af0b31SMark Johnston.It Sy grabanon
595*f0af0b31SMark JohnstonClaim anonymous state.
596*f0af0b31SMark JohnstonSame as the
597*f0af0b31SMark Johnston.Fl a
598*f0af0b31SMark Johnstonflag.
599*f0af0b31SMark Johnston.It Sy jstackframes Ns = Ns Ar scalar
600*f0af0b31SMark JohnstonNumber of default stack frames for
601*f0af0b31SMark Johnston.Fn jstack .
602*f0af0b31SMark Johnston.It Sy jstackstrsize Ns = Ns Ar scalar
603*f0af0b31SMark JohnstonDefault string space size for
604*f0af0b31SMark Johnston.Fn jstack .
605*f0af0b31SMark Johnston.It Sy nspec Ns = Ns Ar scalar
606*f0af0b31SMark JohnstonNumber of speculations.
607*f0af0b31SMark Johnston.It Sy quiet
608*f0af0b31SMark JohnstonSet quiet mode.
609*f0af0b31SMark JohnstonSame as the
610*f0af0b31SMark Johnston.Fl q
611*f0af0b31SMark Johnstonflag.
612*f0af0b31SMark Johnston.It Sy specsize Ns = Ns Ar size
613*f0af0b31SMark JohnstonSize of the speculation buffer.
614*f0af0b31SMark Johnston.It Sy strsize Ns = Ns Ar size
615*f0af0b31SMark JohnstonMaximum size of strings.
616*f0af0b31SMark Johnston.It Sy stackframes Ns = Ns Ar scalar
617*f0af0b31SMark JohnstonMaximum number of kernelspace stack frames to unwind when executing the
618*f0af0b31SMark Johnston.Fn stack
619*f0af0b31SMark Johnstonaction.
620*f0af0b31SMark Johnston.It Sy stackindent Ns = Ns Ar scalar
621*f0af0b31SMark JohnstonNumber of whitespace characters to use when indenting
622*f0af0b31SMark Johnston.Fn stack
623*f0af0b31SMark Johnstonand
624*f0af0b31SMark Johnston.Fn ustack
625*f0af0b31SMark Johnstonoutput.
626*f0af0b31SMark Johnston.It Sy statusrate Ns = Ns Ar time
627*f0af0b31SMark JohnstonRate of status checking.
628*f0af0b31SMark Johnston.It Sy switchrate Ns = Ns Ar time
629*f0af0b31SMark JohnstonRate of buffer switching.
630*f0af0b31SMark Johnston.It Sy ustackframes Ns = Ns Ar scalar
631*f0af0b31SMark JohnstonMaximum number of userspace stack frames to unwind when executing the
632*f0af0b31SMark Johnston.Fn ustack
633*f0af0b31SMark Johnstonaction.
634*f0af0b31SMark Johnston.El
6353f3c4e0bSMark Johnston.It Fl X Cm a | c | s | t
6363f3c4e0bSMark JohnstonSpecify the degree of conformance to the ISO C standard that should be selected
6373f3c4e0bSMark Johnstonwhen invoking
6383f3c4e0bSMark Johnston.Xr cpp 1
6393f3c4e0bSMark Johnston(enabled using the
6403f3c4e0bSMark Johnston.Fl C
6413f3c4e0bSMark Johnstonoption).
6423f3c4e0bSMark JohnstonThe
6433f3c4e0bSMark Johnston.Fl X
6443f3c4e0bSMark Johnstonoption argument affects the value and presence of the __STDC__ macro depending
6453f3c4e0bSMark Johnstonupon the value of the argument letter.
6462be1a816SJohn Birrell.sp
6473f3c4e0bSMark JohnstonThe
6483f3c4e0bSMark Johnston.Fl X
6493f3c4e0bSMark Johnstonoption supports the following arguments:
6503f3c4e0bSMark Johnston.Bl -tag -width indent
6513f3c4e0bSMark Johnston.It a
6523f3c4e0bSMark JohnstonDefault.
6533f3c4e0bSMark JohnstonISO C plus K&R compatibility extensions, with semantic changes required by ISO
6543f3c4e0bSMark JohnstonC.
6553f3c4e0bSMark JohnstonThis is the default mode if
6563f3c4e0bSMark Johnston.Fl X
6573f3c4e0bSMark Johnstonis not specified.
6583f3c4e0bSMark JohnstonThe predefined macro __STDC__ has a value of 0 when
6593f3c4e0bSMark Johnston.Xr cpp 1
6603f3c4e0bSMark Johnstonis invoked in conjunction with the
6613f3c4e0bSMark Johnston.Fl Xa
6623f3c4e0bSMark Johnstonoption.
6633f3c4e0bSMark Johnston.It c
6643f3c4e0bSMark JohnstonConformance.
6653f3c4e0bSMark JohnstonStrictly conformant ISO C, without K&R C compatibility extensions.
6663f3c4e0bSMark JohnstonThe predefined macro __STDC__ has a value of 1 when
6673f3c4e0bSMark Johnston.Xr cpp 1
6683f3c4e0bSMark Johnstonis invoked in conjunction with the
6693f3c4e0bSMark Johnston.Fl \&Xc
6703f3c4e0bSMark Johnstonoption.
6713f3c4e0bSMark Johnston.It s
6723f3c4e0bSMark JohnstonK&R C only.
6733f3c4e0bSMark JohnstonThe macro __STDC__ is not defined when
6743f3c4e0bSMark Johnston.Xr cpp 1
6753f3c4e0bSMark Johnstonis invoked in conjunction with the
6763f3c4e0bSMark Johnston.Fl Xs
6773f3c4e0bSMark Johnstonoption.
6783f3c4e0bSMark Johnston.It t
6793f3c4e0bSMark JohnstonTransition.
6803f3c4e0bSMark JohnstonISO C plus K&R C compatibility extensions, without semantic changes required by
6813f3c4e0bSMark JohnstonISO C.
6823f3c4e0bSMark JohnstonThe predefined macro __STDC__ has a value of 0 when
6833f3c4e0bSMark Johnston.Xr cpp 1
6843f3c4e0bSMark Johnstonis invoked in conjunction with the
6853f3c4e0bSMark Johnston.Fl Xt
6863f3c4e0bSMark Johnstonoption.
6873f3c4e0bSMark Johnston.El
6883f3c4e0bSMark Johnston.Pp
6893f3c4e0bSMark JohnstonAs the
6903f3c4e0bSMark Johnston.Fl X
6913f3c4e0bSMark Johnstonoption only affects how the D compiler invokes the C preprocessor, the
6923f3c4e0bSMark Johnston.Fl Xa
6933f3c4e0bSMark Johnstonand
6943f3c4e0bSMark Johnston.Fl Xt
6953f3c4e0bSMark Johnstonoptions are equivalent from the perspective of D and both are provided only to
6963f3c4e0bSMark Johnstonease re-use of settings from a C build environment.
6973f3c4e0bSMark Johnston.Pp
6983f3c4e0bSMark JohnstonRegardless of the
6993f3c4e0bSMark Johnston.Fl X
7003f3c4e0bSMark Johnstonmode, the following additional C preprocessor definitions are always specified
7013f3c4e0bSMark Johnstonand valid in all modes:
7023f3c4e0bSMark Johnston.Bl -bullet -offset indent
7033f3c4e0bSMark Johnston.It
7043f3c4e0bSMark Johnston__sun
7053f3c4e0bSMark Johnston.It
7063f3c4e0bSMark Johnston__unix
7073f3c4e0bSMark Johnston.It
7083f3c4e0bSMark Johnston__SVR4
7093f3c4e0bSMark Johnston.It
7103f3c4e0bSMark Johnston__sparc (on SPARC systems only)
7113f3c4e0bSMark Johnston.It
7123f3c4e0bSMark Johnston__sparcv9 (on SPARC systems only when 64-bit programs are compiled)
7133f3c4e0bSMark Johnston.It
7143f3c4e0bSMark Johnston__i386 (on x86 systems only when 32-bit programs are compiled)
7153f3c4e0bSMark Johnston.It
7163f3c4e0bSMark Johnston__amd64 (on x86 systems only when 64-bit programs are compiled)
7173f3c4e0bSMark Johnston.It
7183f3c4e0bSMark Johnston__`uname -s`_`uname -r` (for example,
7193f3c4e0bSMark Johnston.Ql FreeBSD_9.2-RELEASE .
7203f3c4e0bSMark Johnston.It
7213f3c4e0bSMark Johnston__SUNW_D=1
7223f3c4e0bSMark Johnston.It
7233f3c4e0bSMark Johnston.No __SUNW_D_VERSION=0x Ns Ar MMmmmuuu
7243f3c4e0bSMark Johnston.Pp
7253f3c4e0bSMark JohnstonWhere
7263f3c4e0bSMark Johnston.Ar MM
7273f3c4e0bSMark Johnstonis the major release value in hexadecimal,
7283f3c4e0bSMark Johnston.Ar mmm
7293f3c4e0bSMark Johnstonis the minor release value in hexadecimal, and
7303f3c4e0bSMark Johnston.Ar uuu
7313f3c4e0bSMark Johnstonis the micro release value in hexadecimal.
7323f3c4e0bSMark Johnston.El
7333f3c4e0bSMark Johnston.It Fl Z
7343f3c4e0bSMark JohnstonPermit probe descriptions that match zero probes.
7353f3c4e0bSMark JohnstonIf the
7363f3c4e0bSMark Johnston.Fl Z
7373f3c4e0bSMark Johnstonoption is not specified,
7383f3c4e0bSMark Johnston.Nm
7393f3c4e0bSMark Johnstonreports an error and exits if any probe descriptions specified in D program
7403f3c4e0bSMark Johnstonfiles
7413f3c4e0bSMark Johnston.Fl ( s
7423f3c4e0bSMark Johnstonoption) or on the command line
7433f3c4e0bSMark Johnston.Fl ( P , m , f , n ,
7443f3c4e0bSMark Johnstonor
7453f3c4e0bSMark Johnston.Fl i
7463f3c4e0bSMark Johnstonoptions) contain descriptions that do not match any known probes.
7473f3c4e0bSMark Johnston.El
7483f3c4e0bSMark Johnston.Sh OPERANDS
7493f3c4e0bSMark JohnstonYou can specify zero or more additional arguments on the
7503f3c4e0bSMark Johnston.Nm
7513f3c4e0bSMark Johnstoncommand line to define a set of macro variables and so forth).
7523f3c4e0bSMark JohnstonThe additional arguments can be used in D programs specified using the
7533f3c4e0bSMark Johnston.Fl s
7543f3c4e0bSMark Johnstonoption or on the command line.
7553f3c4e0bSMark Johnston.Sh FILES
7563f3c4e0bSMark Johnston.Bl -tag -width /boot/dtrace.dof -compact
7573f3c4e0bSMark Johnston.It Pa /boot/dtrace.dof
7583f3c4e0bSMark JohnstonFile for anonymous tracing directives.
7593f3c4e0bSMark Johnston.El
7603f3c4e0bSMark Johnston.Sh EXIT STATUS
7613f3c4e0bSMark JohnstonThe following exit statuses are returned:
7623f3c4e0bSMark Johnston.Bl -tag -width indent
7633f3c4e0bSMark Johnston.It 0
7642be1a816SJohn BirrellSuccessful completion.
7653f3c4e0bSMark Johnston.Pp
7663f3c4e0bSMark JohnstonFor D program requests, an exit status of 0 indicates that programs were
7673f3c4e0bSMark Johnstonsuccessfully compiled, probes were successfully enabled, or anonymous state
7683f3c4e0bSMark Johnstonwas successfully retrieved.
7693f3c4e0bSMark Johnston.Nm
7703f3c4e0bSMark Johnstonreturns 0 even if the specified tracing requests encountered errors or drops.
7713f3c4e0bSMark Johnston.It 1
7722be1a816SJohn BirrellAn error occurred.
7733f3c4e0bSMark Johnston.Pp
7743f3c4e0bSMark JohnstonFor D program requests, an exit status of 1 indicates that program compilation
7753f3c4e0bSMark Johnstonfailed or that the specified request could not be satisfied.
7763f3c4e0bSMark Johnston.It 2
7772be1a816SJohn BirrellInvalid command line options or arguments were specified.
7783f3c4e0bSMark Johnston.El
7793f3c4e0bSMark Johnston.Sh SEE ALSO
7803f3c4e0bSMark Johnston.Xr cpp 1 ,
7813f3c4e0bSMark Johnston.Xr dtruss 1 ,
782b9d64941SMark Johnston.Xr elf 5 ,
783b9d64941SMark Johnston.Xr SDT 9
7843f3c4e0bSMark Johnston.Rs
7853f3c4e0bSMark Johnston.%T Solaris Dynamic Tracing Guide
7863f3c4e0bSMark Johnston.Re
787