xref: /freebsd/cddl/contrib/opensolaris/cmd/dtrace/dtrace.1 (revision a40c4ae8667772d7e4c4c3d8d8ae843e63c05019)
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.\"
2313d9437aSMark Johnston.Dd September 7, 2021
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 (=).
525f0af0b31SMark Johnston.Pp
526f0af0b31SMark JohnstonA
527f0af0b31SMark Johnston.Ar size
528f0af0b31SMark Johnstonargument may be suffixed with one of
529f0af0b31SMark Johnston.Cm K ,
530f0af0b31SMark Johnston.Cm M ,
531f0af0b31SMark Johnston.Cm G
532f0af0b31SMark Johnstonor
533f0af0b31SMark Johnston.Cm T
534f0af0b31SMark Johnston(either upper or lower case) to indicate a multiple of
535f0af0b31SMark JohnstonKilobytes, Megabytes, Gigabytes or Terabytes
536f0af0b31SMark Johnstonrespectively.
537f0af0b31SMark Johnston.Pp
538f0af0b31SMark JohnstonA
539f0af0b31SMark Johnston.Ar time
540f0af0b31SMark Johnstonargument may be suffixed with one of
541f0af0b31SMark Johnston.Cm ns ,
542f0af0b31SMark Johnston.Cm nsec ,
543f0af0b31SMark Johnston.Cm us ,
544f0af0b31SMark Johnston.Cm usec ,
545f0af0b31SMark Johnston.Cm ms ,
546f0af0b31SMark Johnston.Cm msec ,
547f0af0b31SMark Johnston.Cm s  ,
548f0af0b31SMark Johnston.Cm sec ,
549f0af0b31SMark Johnston.Cm m ,
550f0af0b31SMark Johnston.Cm min ,
551f0af0b31SMark Johnston.Cm h ,
552f0af0b31SMark Johnston.Cm hour ,
553f0af0b31SMark Johnston.Cm d  ,
554f0af0b31SMark Johnston.Cm day ,
555f0af0b31SMark Johnston.Cm hz .
556f0af0b31SMark JohnstonIf no suffix is specified
557f0af0b31SMark Johnston.Cm hz
558f0af0b31SMark Johnstonwill be used as the unit.
559f0af0b31SMark Johnston.Bl -tag -width indent
560f0af0b31SMark Johnston.It Sy aggrate Ns = Ns Ar time
561f0af0b31SMark JohnstonRate of aggregation reading.
562f0af0b31SMark Johnston.It Sy aggsize Ns = Ns Ar size
563f0af0b31SMark JohnstonSize of the aggregation buffer.
564f0af0b31SMark Johnston.It Sy bufpolicy Ns = Ns Cm fill Ns | Ns Cm switch Ns | Ns Cm ring
565f0af0b31SMark JohnstonSpecifies the buffer policy for the principal buffer.
566f0af0b31SMark Johnston.It Sy bufresize Ns = Ns Cm auto Ns | Ns Cm manual
567f0af0b31SMark JohnstonBuffer resizing policy.
568f0af0b31SMark Johnston.It Sy bufsize Ns = Ns Ar size
569f0af0b31SMark JohnstonSize of the per-CPU principal buffer.
570f0af0b31SMark JohnstonSame as the
571f0af0b31SMark Johnston.Fl b
572f0af0b31SMark Johnstonflag.
573f0af0b31SMark Johnston.It Sy cleanrate Ns = Ns Ar time
574f0af0b31SMark JohnstonCleaning rate.
575f0af0b31SMark JohnstonMust be specified in number-per-second with the
576f0af0b31SMark Johnston.Dq Li hz
577f0af0b31SMark Johnstonsuffix.
578f0af0b31SMark Johnston.It Sy cpu Ns = Ns Ar scalar
579f0af0b31SMark JohnstonSpecifies the CPU on which to enable tracing.
580*a40c4ae8SMark Johnston.It Sy cpp
581*a40c4ae8SMark JohnstonRun a C preprocessor over input files.
582*a40c4ae8SMark JohnstonSame as the
583*a40c4ae8SMark Johnston.Fl C
584*a40c4ae8SMark Johnstonflag.
585*a40c4ae8SMark Johnston.It Sy cpppath Ns = Ns Ar path
586*a40c4ae8SMark JohnstonUse the specified path for the C preprocessor rather than
587*a40c4ae8SMark Johnstonsearching for
588*a40c4ae8SMark Johnston.Dq cpp
589*a40c4ae8SMark Johnstonin
590*a40c4ae8SMark Johnston.Ev PATH .
591f0af0b31SMark Johnston.It Sy defaultargs
592f0af0b31SMark JohnstonAllow references to unspecified macro arguments.
593f0af0b31SMark Johnston.It Sy destructive
594f0af0b31SMark JohnstonAllow destructive actions.
595f0af0b31SMark JohnstonSame as the
596f0af0b31SMark Johnston.Fl w
597f0af0b31SMark Johnstonflag.
598f0af0b31SMark Johnston.It Sy dynvarsize Ns = Ns Ar size
599f0af0b31SMark JohnstonSize of the dynamic variable space.
600f0af0b31SMark Johnston.It Sy flowindent
601f0af0b31SMark JohnstonTurn on flow indentation.
602f0af0b31SMark JohnstonSame as the
603f0af0b31SMark Johnston.Fl F
604f0af0b31SMark Johnstonflag.
605f0af0b31SMark Johnston.It Sy grabanon
606f0af0b31SMark JohnstonClaim anonymous state.
607f0af0b31SMark JohnstonSame as the
608f0af0b31SMark Johnston.Fl a
609f0af0b31SMark Johnstonflag.
610f0af0b31SMark Johnston.It Sy jstackframes Ns = Ns Ar scalar
611f0af0b31SMark JohnstonNumber of default stack frames for
612f0af0b31SMark Johnston.Fn jstack .
613f0af0b31SMark Johnston.It Sy jstackstrsize Ns = Ns Ar scalar
614f0af0b31SMark JohnstonDefault string space size for
615f0af0b31SMark Johnston.Fn jstack .
61613d9437aSMark Johnston.It Sy ldpath Ns = Ns Ar path
61713d9437aSMark JohnstonWhen
61813d9437aSMark Johnston.Fl G
61913d9437aSMark Johnstonis specified, use the specified path for a static linker
62013d9437aSMark Johnstonrather than searching for
62113d9437aSMark Johnston.Dq "ld"
62213d9437aSMark Johnstonin
62313d9437aSMark Johnston.Ev PATH .
6247653f931SDomagoj Stolfa.It Sy libdir Ns = Ns Ar path
6257653f931SDomagoj StolfaAdd a directory to the system library path.
626f0af0b31SMark Johnston.It Sy nspec Ns = Ns Ar scalar
627f0af0b31SMark JohnstonNumber of speculations.
6287653f931SDomagoj Stolfa.It Sy nolibs
6297653f931SDomagoj StolfaDo not load D system libraries.
630f0af0b31SMark Johnston.It Sy quiet
631f0af0b31SMark JohnstonSet quiet mode.
632f0af0b31SMark JohnstonSame as the
633f0af0b31SMark Johnston.Fl q
634f0af0b31SMark Johnstonflag.
635f0af0b31SMark Johnston.It Sy specsize Ns = Ns Ar size
636f0af0b31SMark JohnstonSize of the speculation buffer.
637f0af0b31SMark Johnston.It Sy strsize Ns = Ns Ar size
638f0af0b31SMark JohnstonMaximum size of strings.
639f0af0b31SMark Johnston.It Sy stackframes Ns = Ns Ar scalar
640f0af0b31SMark JohnstonMaximum number of kernelspace stack frames to unwind when executing the
641f0af0b31SMark Johnston.Fn stack
642f0af0b31SMark Johnstonaction.
643f0af0b31SMark Johnston.It Sy stackindent Ns = Ns Ar scalar
644f0af0b31SMark JohnstonNumber of whitespace characters to use when indenting
645f0af0b31SMark Johnston.Fn stack
646f0af0b31SMark Johnstonand
647f0af0b31SMark Johnston.Fn ustack
648f0af0b31SMark Johnstonoutput.
649f0af0b31SMark Johnston.It Sy statusrate Ns = Ns Ar time
650f0af0b31SMark JohnstonRate of status checking.
651f0af0b31SMark Johnston.It Sy switchrate Ns = Ns Ar time
652f0af0b31SMark JohnstonRate of buffer switching.
6537653f931SDomagoj Stolfa.It Sy syslibdir Ns = Ns Ar path
6547653f931SDomagoj StolfaPath to system libraries.
6557653f931SDomagoj StolfaDefaults to
6567653f931SDomagoj Stolfa.Pa /usr/lib/dtrace .
657f0af0b31SMark Johnston.It Sy ustackframes Ns = Ns Ar scalar
658f0af0b31SMark JohnstonMaximum number of userspace stack frames to unwind when executing the
659f0af0b31SMark Johnston.Fn ustack
660f0af0b31SMark Johnstonaction.
661f0af0b31SMark Johnston.El
6623f3c4e0bSMark Johnston.It Fl X Cm a | c | s | t
6633f3c4e0bSMark JohnstonSpecify the degree of conformance to the ISO C standard that should be selected
6643f3c4e0bSMark Johnstonwhen invoking
6653f3c4e0bSMark Johnston.Xr cpp 1
6663f3c4e0bSMark Johnston(enabled using the
6673f3c4e0bSMark Johnston.Fl C
6683f3c4e0bSMark Johnstonoption).
6693f3c4e0bSMark JohnstonThe
6703f3c4e0bSMark Johnston.Fl X
6713f3c4e0bSMark Johnstonoption argument affects the value and presence of the __STDC__ macro depending
6723f3c4e0bSMark Johnstonupon the value of the argument letter.
6732be1a816SJohn Birrell.sp
6743f3c4e0bSMark JohnstonThe
6753f3c4e0bSMark Johnston.Fl X
6763f3c4e0bSMark Johnstonoption supports the following arguments:
6773f3c4e0bSMark Johnston.Bl -tag -width indent
6783f3c4e0bSMark Johnston.It a
6793f3c4e0bSMark JohnstonDefault.
6803f3c4e0bSMark JohnstonISO C plus K&R compatibility extensions, with semantic changes required by ISO
6813f3c4e0bSMark JohnstonC.
6823f3c4e0bSMark JohnstonThis is the default mode if
6833f3c4e0bSMark Johnston.Fl X
6843f3c4e0bSMark Johnstonis not specified.
6853f3c4e0bSMark JohnstonThe predefined macro __STDC__ has a value of 0 when
6863f3c4e0bSMark Johnston.Xr cpp 1
6873f3c4e0bSMark Johnstonis invoked in conjunction with the
6883f3c4e0bSMark Johnston.Fl Xa
6893f3c4e0bSMark Johnstonoption.
6903f3c4e0bSMark Johnston.It c
6913f3c4e0bSMark JohnstonConformance.
6923f3c4e0bSMark JohnstonStrictly conformant ISO C, without K&R C compatibility extensions.
6933f3c4e0bSMark JohnstonThe predefined macro __STDC__ has a value of 1 when
6943f3c4e0bSMark Johnston.Xr cpp 1
6953f3c4e0bSMark Johnstonis invoked in conjunction with the
6963f3c4e0bSMark Johnston.Fl \&Xc
6973f3c4e0bSMark Johnstonoption.
6983f3c4e0bSMark Johnston.It s
6993f3c4e0bSMark JohnstonK&R C only.
7003f3c4e0bSMark JohnstonThe macro __STDC__ is not defined when
7013f3c4e0bSMark Johnston.Xr cpp 1
7023f3c4e0bSMark Johnstonis invoked in conjunction with the
7033f3c4e0bSMark Johnston.Fl Xs
7043f3c4e0bSMark Johnstonoption.
7053f3c4e0bSMark Johnston.It t
7063f3c4e0bSMark JohnstonTransition.
7073f3c4e0bSMark JohnstonISO C plus K&R C compatibility extensions, without semantic changes required by
7083f3c4e0bSMark JohnstonISO C.
7093f3c4e0bSMark JohnstonThe predefined macro __STDC__ has a value of 0 when
7103f3c4e0bSMark Johnston.Xr cpp 1
7113f3c4e0bSMark Johnstonis invoked in conjunction with the
7123f3c4e0bSMark Johnston.Fl Xt
7133f3c4e0bSMark Johnstonoption.
7143f3c4e0bSMark Johnston.El
7153f3c4e0bSMark Johnston.Pp
7163f3c4e0bSMark JohnstonAs the
7173f3c4e0bSMark Johnston.Fl X
7183f3c4e0bSMark Johnstonoption only affects how the D compiler invokes the C preprocessor, the
7193f3c4e0bSMark Johnston.Fl Xa
7203f3c4e0bSMark Johnstonand
7213f3c4e0bSMark Johnston.Fl Xt
7223f3c4e0bSMark Johnstonoptions are equivalent from the perspective of D and both are provided only to
7233f3c4e0bSMark Johnstonease re-use of settings from a C build environment.
7243f3c4e0bSMark Johnston.Pp
7253f3c4e0bSMark JohnstonRegardless of the
7263f3c4e0bSMark Johnston.Fl X
7273f3c4e0bSMark Johnstonmode, the following additional C preprocessor definitions are always specified
7283f3c4e0bSMark Johnstonand valid in all modes:
7293f3c4e0bSMark Johnston.Bl -bullet -offset indent
7303f3c4e0bSMark Johnston.It
7313f3c4e0bSMark Johnston__sun
7323f3c4e0bSMark Johnston.It
7333f3c4e0bSMark Johnston__unix
7343f3c4e0bSMark Johnston.It
7353f3c4e0bSMark Johnston__SVR4
7363f3c4e0bSMark Johnston.It
7373f3c4e0bSMark Johnston__sparc (on SPARC systems only)
7383f3c4e0bSMark Johnston.It
7393f3c4e0bSMark Johnston__sparcv9 (on SPARC systems only when 64-bit programs are compiled)
7403f3c4e0bSMark Johnston.It
7413f3c4e0bSMark Johnston__i386 (on x86 systems only when 32-bit programs are compiled)
7423f3c4e0bSMark Johnston.It
7433f3c4e0bSMark Johnston__amd64 (on x86 systems only when 64-bit programs are compiled)
7443f3c4e0bSMark Johnston.It
7453f3c4e0bSMark Johnston__`uname -s`_`uname -r` (for example,
7463f3c4e0bSMark Johnston.Ql FreeBSD_9.2-RELEASE .
7473f3c4e0bSMark Johnston.It
7483f3c4e0bSMark Johnston__SUNW_D=1
7493f3c4e0bSMark Johnston.It
7503f3c4e0bSMark Johnston.No __SUNW_D_VERSION=0x Ns Ar MMmmmuuu
7513f3c4e0bSMark Johnston.Pp
7523f3c4e0bSMark JohnstonWhere
7533f3c4e0bSMark Johnston.Ar MM
7543f3c4e0bSMark Johnstonis the major release value in hexadecimal,
7553f3c4e0bSMark Johnston.Ar mmm
7563f3c4e0bSMark Johnstonis the minor release value in hexadecimal, and
7573f3c4e0bSMark Johnston.Ar uuu
7583f3c4e0bSMark Johnstonis the micro release value in hexadecimal.
7593f3c4e0bSMark Johnston.El
7603f3c4e0bSMark Johnston.It Fl Z
7613f3c4e0bSMark JohnstonPermit probe descriptions that match zero probes.
7623f3c4e0bSMark JohnstonIf the
7633f3c4e0bSMark Johnston.Fl Z
7643f3c4e0bSMark Johnstonoption is not specified,
7653f3c4e0bSMark Johnston.Nm
7663f3c4e0bSMark Johnstonreports an error and exits if any probe descriptions specified in D program
7673f3c4e0bSMark Johnstonfiles
7683f3c4e0bSMark Johnston.Fl ( s
7693f3c4e0bSMark Johnstonoption) or on the command line
7703f3c4e0bSMark Johnston.Fl ( P , m , f , n ,
7713f3c4e0bSMark Johnstonor
7723f3c4e0bSMark Johnston.Fl i
7733f3c4e0bSMark Johnstonoptions) contain descriptions that do not match any known probes.
7743f3c4e0bSMark Johnston.El
7753f3c4e0bSMark Johnston.Sh OPERANDS
7763f3c4e0bSMark JohnstonYou can specify zero or more additional arguments on the
7773f3c4e0bSMark Johnston.Nm
7783f3c4e0bSMark Johnstoncommand line to define a set of macro variables and so forth).
7793f3c4e0bSMark JohnstonThe additional arguments can be used in D programs specified using the
7803f3c4e0bSMark Johnston.Fl s
7813f3c4e0bSMark Johnstonoption or on the command line.
7823f3c4e0bSMark Johnston.Sh FILES
7833f3c4e0bSMark Johnston.Bl -tag -width /boot/dtrace.dof -compact
7843f3c4e0bSMark Johnston.It Pa /boot/dtrace.dof
7853f3c4e0bSMark JohnstonFile for anonymous tracing directives.
7863f3c4e0bSMark Johnston.El
7873f3c4e0bSMark Johnston.Sh EXIT STATUS
7883f3c4e0bSMark JohnstonThe following exit statuses are returned:
7893f3c4e0bSMark Johnston.Bl -tag -width indent
7903f3c4e0bSMark Johnston.It 0
7912be1a816SJohn BirrellSuccessful completion.
7923f3c4e0bSMark Johnston.Pp
7933f3c4e0bSMark JohnstonFor D program requests, an exit status of 0 indicates that programs were
7943f3c4e0bSMark Johnstonsuccessfully compiled, probes were successfully enabled, or anonymous state
7953f3c4e0bSMark Johnstonwas successfully retrieved.
7963f3c4e0bSMark Johnston.Nm
7973f3c4e0bSMark Johnstonreturns 0 even if the specified tracing requests encountered errors or drops.
7983f3c4e0bSMark Johnston.It 1
7992be1a816SJohn BirrellAn error occurred.
8003f3c4e0bSMark Johnston.Pp
8013f3c4e0bSMark JohnstonFor D program requests, an exit status of 1 indicates that program compilation
8023f3c4e0bSMark Johnstonfailed or that the specified request could not be satisfied.
8033f3c4e0bSMark Johnston.It 2
8042be1a816SJohn BirrellInvalid command line options or arguments were specified.
8053f3c4e0bSMark Johnston.El
806932a690cSGordon Bergling.Sh HISTORY
807932a690cSGordon BerglingThe
808932a690cSGordon Bergling.Nm
809932a690cSGordon Berglingutility first appeared in
810932a690cSGordon Bergling.Fx 7.1 .
8113f3c4e0bSMark Johnston.Sh SEE ALSO
8123f3c4e0bSMark Johnston.Xr cpp 1 ,
813b9d64941SMark Johnston.Xr elf 5 ,
814b9d64941SMark Johnston.Xr SDT 9
8153f3c4e0bSMark Johnston.Rs
8163f3c4e0bSMark Johnston.%T Solaris Dynamic Tracing Guide
8173f3c4e0bSMark Johnston.Re
818