1STAPVARS(3stap)                                                STAPVARS(3stap)
2
3
4

NAME

6       stapvars - systemtap variables
7
8

DESCRIPTION

10       The following sections enumerate the public variables provided by stan‐
11       dard tapsets installed, (the installation path is show in the stappaths
12       (7)  manual  page).   Each  variable  is described with a type, and its
13       behavior/restrictions.  The syntax is the same as printed with the stap
14       option -p2.  Examples:
15
16
17       example1:long
18              Variable "example1" contains an integer.
19
20
21       example2:string [long]
22              Variable "example2" is an array of strings, indexed by integers.
23
24
25   ARGV
26       argc:long
27              Contains  the value of the  $# value: the number of command line
28              arguments passed to the systemtap  script.   It  is  initialized
29              with an implicit begin(-1) probe.
30
31
32       argv:string [long]
33              Contains  each  command line argument as a string.  argv[1] will
34              equal @1 if there was at least one command line argument.  Argu‐
35              ments beyond #32 are not transcribed, and produce a warning mes‐
36              sage within the begin(-1) probe that initializes this array.
37
38
39   NULL
40       NULL:long
41              Simply defined as the number 0.
42
43

FILES

45       More files and their corresponding paths can be found in the  stappaths
46       (7) manual page.
47
48

SEE ALSO

50       stap(1)
51       stappaths(7)
52
53
54
55                                                               STAPVARS(3stap)
Impressum