]> sourceware.org Git - systemtap.git/blame - stapvars.3stap
PR13513: undo PR11759 PREEMPT_RT hack
[systemtap.git] / stapvars.3stap
CommitLineData
d57671d3 1.\" -*- nroff -*-
ec1a2239 2.TH STAPVARS 3stap
d57671d3
FCE
3.SH NAME
4stapvars \- systemtap variables
5
6.SH DESCRIPTION
7The following sections enumerate the public variables provided by
ec1a2239
LB
8standard tapsets installed, (the installation path is show in the
9stappaths (7) manual page). Each variable is described with a
10type, and its behavior/restrictions.
d57671d3
FCE
11The syntax is the same as printed with the
12.IR stap " option " \-p2 .
13Examples:
14
15.TP
16example1:long
17Variable "example1" contains an integer.
18
19.TP
20example2:string [long]
21Variable "example2" is an array of strings, indexed by integers.
22
23.SS ARGV
24
25.TP
26argc:long
27Contains the value of the
28.BR
29$#
30value: the number of command line arguments passed to the systemtap script.
f7470174 31It is initialized with an implicit begin(\-1) probe.
d57671d3
FCE
32
33.TP
34argv:string [long]
35Contains each command line argument as a string. argv[1] will equal @1 if
36there was at least one command line argument. Arguments beyond #32 are not
f7470174 37transcribed, and produce a warning message within the begin(\-1) probe that
d57671d3
FCE
38initializes this array.
39
877bb7a7
FCE
40.SS NULL
41
42.TP
43NULL:long
44Simply defined as the number 0.
45
d57671d3 46.SH FILES
ec1a2239
LB
47.TP
48More files and their corresponding paths can be found in the stappaths (7) manual page.
d57671d3
FCE
49
50.SH SEE ALSO
51.IR stap (1)
ec1a2239 52.IR stappaths (7)
This page took 0.074548 seconds and 5 git commands to generate.