STAPVARS(3stap) STAPVARS(3stap)

# [NAME](#NAME)

stapvars - systemtap variables

# [DESCRIPTION](#DESCRIPTION)

The following sections enumerate the public variables provided by standard tapsets installed, (the installation path is show in the stappaths (7) manual page). Each variable is described with a type, and its behavior/restrictions. The syntax is the same as printed with the *stap* option *-p2*. Examples:

[example1:long](#example1:long)

Variable "example1" contains an integer.

[example2:string \[long\]](#example2:string)

Variable "example2" is an array of strings, indexed by integers.

## [ARGV](#ARGV)

[argc:long](#argc:long)

Contains the value of the $# value: the number of command line arguments passed to the systemtap script. It is initialized with an implicit begin(-1) probe.

[argv:string \[long\]](#argv:string)

Contains each command line argument as a string. argv\[1] will equal @1 if there was at least one command line argument. Arguments beyond #32 are not transcribed, and produce a warning message within the begin(-1) probe that initializes this array.

## [NULL](#NULL)

[NULL:long](#NULL:long)

Simply defined as the number 0.

# [FILES](#FILES)

[More files and their corresponding paths can be found in the stappaths (7) manual page.](#More)

# [SEE ALSO](#SEE_ALSO)

```
stap(1)
stappaths(7)
```

---

Document: stapvars(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
