]> sourceware.org Git - systemtap.git/blame - dtrace.1
Only run .plt tests on x86.
[systemtap.git] / dtrace.1
CommitLineData
4e6d866f 1.\" -*- nroff -*-
ec1a2239 2.TH DTRACE 1
4e6d866f
SC
3.SH NAME
4dtrace \- Dtrace compatibile user application static probe generation tool.
5
6.SH SYNOPSIS
7
8.br
9.B dtrace \-s \fIfile\fR [\fBOPTIONS\fR]
10
11.SH DESCRIPTION
12
13The dtrace command converts probe descriptions defined in \fIfile.d\fR
14into a probe header
f7470174
JS
15file via the \fB\-h\fR option
16or a probe description file via the \fB\-G\fR option.
4e6d866f
SC
17
18.SH OPTIONS
19.PP
20.TP
21.B \-h
22generate a systemtap header file.
23
24.TP
25.B \-G
26generate a systemtap probe definition object file.
27
28.TP
29.B \-o \fIfile\fR
30is the name of the output file. If the \fB\-G\fR option is given then
f7470174 31the output file will be called \fIfile.o\fR; if the \fB\-h\fR option is
4e6d866f
SC
32given then the output file will be called \fIfile.h\fR.
33
34.TP
35.B \-C
36run the cpp preprocessor on the input file when the \fB\-h\fR option
37is given.
38
39.TP
40.B \-I \fIfile\fR
41give this include path to cpp when the \fB\-C\fR option is given.
42
43.TP
44.B \-k
45keep temporary files, for example the C language source for the
46\fB\-G\fR option.
47
48.TP
49.B \-\-types
50generate probe argument typedef information when the \fB\-h\fR
51option is given.
52
53.SH EXAMPLES
54
55Systemtap is source compatible with dtrace user application static
56probe support.
57Given a file \fItest.d\fR containing:
58.RS
59.in +2
60.nf
61provider sdt_probes
62{
63 probe test_0 (int type);
64 probe test_1 (struct astruct node);
65};
66struct astruct {int a; int b;};
67.fi
68.in
69.RE
f7470174 70Then the command \fI"dtrace\ \-s\ test.d\ \-G"\fR
4e6d866f 71will create the probe definition file \fItest.o\fR
f7470174 72and the command \fI"dtrace\ \-s\ test.d\ \-h"\fR
4e6d866f
SC
73will create the probe header file \fItest.h\fR
74Subsequently the application can define probes using
75.in +2
76.nf
77#include "test.h"
78 \.\.\.
79struct astruct s;
80 \.\.\.
81SDT_PROBES_TEST_0(value);
82 \.\.\.
83SDT_PROBES_TEST_1(s);
84.fi
85.in
86
87The application is linked with \fI"test.o"\fR when it is built.
88
89.SH SEE ALSO
90
91\fBstap(1)\fR
ec1a2239 92\fBstappaths(7)\fR
4e6d866f 93
This page took 0.050858 seconds and 5 git commands to generate.