STAPVARS(3stap)
π NAME π
stapvars β systemtap variables, bestie. that's it, that's the whole name. slay β¨
π¦ DESCRIPTION π¦
okay so here's the tea: the sections below are gonna walk you through all the public variables that the standard tapsets give you. (btw if you wanna know where those tapsets are even installed, the path is shown in the stappaths (7) manual page π)
every single variable gets described with a type, plus its behavior and restrictions, because we're thorough like that π
and the syntax? it's literally the exact same syntax you get printed out with the stap option -p2. no cap. fr fr.
examples, because a vibe check needs receipts:
example1:long
Variable "example1" contains an integer. simple. iconic.
example2:string [long]
Variable "example2" is an array of strings, indexed by integers. she's got range π
πΈ ARGV πΈ
argc:longβ this one holds the value of the$#value, which is the number of command line arguments passed to the systemtap script. and the way she gets initialized?? an implicitbegin(-1)probe. periodt. πargv:string [long]β she holds each command line argument as a string, one by one. so like,argv[1]will equal@1β but only if there was at least one command line argument to begin with. fair.
β οΈ lowkey important: arguments beyond#32are not transcribed, and they produce a warning message inside thatbegin(-1)probe that initializes this array. so if you're out here throwing 33+ args at it, expect a lil warning bestie π
π NULL π
NULL:longβ simply defined as the number0. that's it. no lore. no backstory. just zero. a minimalist queen π«Ά
π FILES π
want more files and their corresponding paths? they're all hanging out in the stappaths (7) manual page. go say hi π
β SEE ALSO β
and that's the whole page, bestie!! this lil masterpiece lives under STAPVARS(3stap) β that's the 3stap manual section, iykyk π
take care of her, she's got main character energy πβ¨π
π¦ where this page comes from
- arch rolling: systemtap 5.6-1 Β· GPL-2.0-or-later
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- debian bookworm: systemtap-doc 4.8-2
- debian trixie: systemtap-doc 5.1-5
- fedora 43: systemtap-client 5.3-4.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.4-3.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- nixos 26.05: systemtap 5.4
- nixpkgs unstable: systemtap 5.5
- opensuse-leap 16.0: systemtap-docs 5.2-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: systemtap-doc 4.6-2
- ubuntu noble: systemtap-doc 5.0-2ubuntu1
- ubuntu questing: systemtap-doc 5.1-5
- ubuntu resolute: systemtap-doc 5.3-2
- ubuntu stonking: systemtap-doc 5.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms