TAPSET::CONTEXT(3stap)
π tapset::context β the systemtap context tapset π
okay bestie, pull up a chair because this one is literally the group chat of SystemTap tapsets π«Ά it's tapset::context from section 3stap, and it's the one you hit up when you need to know where your event happened and who it happened to.
β¨ DESCRIPTION β¨
So here's the vibe: context functions are the ones that give you the extra little deets about where an event occurred. We're talking backtraces back to the scene of the crime, current register values for the processor, all of it. It's giving detective energy π and honestly? iconic.
Here's every single one of them, no skips, no cuts, all 45 of them π
print_regsβ Prints a register dump. Seefunction::print_regs(3stap)for the full deets.ppβ Returns the active probe point. Seefunction::pp(3stap)for the full deets.ppfuncβ Returns the function name parsed frompp(). Seefunction::ppfunc(3stap)for the full deets.probe_typeβ The low level probe handler type of the current probe. Seefunction::probe_type(3stap)for the full deets.execnameβ Returns the execname of a target process (or group of processes). Seefunction::execname(3stap)for the full deets.pexecnameβ Returns the execname of a target process's parent process. Seefunction::pexecname(3stap)for the full deets.pidβ Returns the ID of a target process. Seefunction::pid(3stap)for the full deets.ns_pidβ Returns the ID of a target process as seen in a pid namespace. Seefunction::ns_pid(3stap)for the full deets.tidβ Returns the thread ID of a target process. Seefunction::tid(3stap)for the full deets.ns_tidβ Returns the thread ID of a target process as seen in a pid namespace. Seefunction::ns_tid(3stap)for the full deets.ppidβ Returns the process ID of a target process's parent process. Seefunction::ppid(3stap)for the full deets.ns_ppidβ Returns the process ID of a target process's parent process as seen in a pid namespace. Seefunction::ns_ppid(3stap)for the full deets.pgrpβ Returns the process group ID of the current process. Seefunction::pgrp(3stap)for the full deets.ns_pgrpβ Returns the process group ID of the current process as seen in a pid namespace. Seefunction::ns_pgrp(3stap)for the full deets.sidβ Returns the session ID of the current process. Seefunction::sid(3stap)for the full deets.ns_sidβ Returns the session ID of the current process as seen in a pid namespace. Seefunction::ns_sid(3stap)for the full deets.gidβ Returns the group ID of a target process. Seefunction::gid(3stap)for the full deets.ns_gidβ Returns the group ID of a target process as seen in a user namespace. Seefunction::ns_gid(3stap)for the full deets.egidβ Returns the effective gid of a target process. Seefunction::egid(3stap)for the full deets.ns_egidβ Returns the effective gid of a target process as seen in a user namespace. Seefunction::ns_egid(3stap)for the full deets.uidβ Returns the user ID of a target process. Seefunction::uid(3stap)for the full deets.ns_uidβ Returns the user ID of a target process as seen in a user namespace. Seefunction::ns_uid(3stap)for the full deets.euidβ Return the effective uid of a target process. Seefunction::euid(3stap)for the full deets.ns_euidβ Returns the effective user ID of a target process as seen in a user namespace. Seefunction::ns_euid(3stap)for the full deets.is_myprocβ Determines if the current probe point has occurred in the user's own process. Seefunction::is_myproc(3stap)for the full deets.cpuidβ Returns the current cpu number. Seefunction::cpuid(3stap)for the full deets.cpuβ Returns the current cpu number. Seefunction::cpu(3stap)for the full deets.registers_validβ Determines validity ofregister()andu_register()in current context. Seefunction::registers_valid(3stap)for the full deets.user_modeβ Determines if probe point occurs in user-mode. Seefunction::user_mode(3stap)for the full deets.is_returnβ Whether the current probe context is a return probe. Seefunction::is_return(3stap)for the full deets.targetβ Return the process ID of the target process. Seefunction::target(3stap)for the full deets.module_nameβ The module name of the current script. Seefunction::module_name(3stap)for the full deets.module_sizeβ The module size of the current script. Seefunction::module_size(3stap)for the full deets.stp_pidβ The process id of thestapioprocess. Seefunction::stp_pid(3stap)for the full deets.remote_idβ The index of this instance in a remote execution. Seefunction::remote_id(3stap)for the full deets.remote_uriβ The name of this instance in a remote execution. Seefunction::remote_uri(3stap)for the full deets.stack_sizeβ Return the size of the kernel stack. Seefunction::stack_size(3stap)for the full deets.stack_usedβ Returns the amount of kernel stack used. Seefunction::stack_used(3stap)for the full deets.stack_unusedβ Returns the amount of kernel stack currently available. Seefunction::stack_unused(3stap)for the full deets.addrβ Address of the current probe point. Seefunction::addr(3stap)for the full deets.uaddrβ User space address of current running task. Seefunction::uaddr(3stap)for the full deets.cmdline_argsβ Fetch command line arguments from current process. Seefunction::cmdline_args(3stap)for the full deets.cmdline_argβ Fetch a command line argument. Seefunction::cmdline_arg(3stap)for the full deets.cmdline_strβ Fetch all command line arguments from current process. Seefunction::cmdline_str(3stap)for the full deets.
π SEE ALSO π
the whole squad, fr fr β go read up on all of them π
function::print_regs(3stap)function::pp(3stap)function::ppfunc(3stap)function::probe_type(3stap)function::execname(3stap)function::pexecname(3stap)function::pid(3stap)function::ns_pid(3stap)function::tid(3stap)function::ns_tid(3stap)function::ppid(3stap)function::ns_ppid(3stap)function::pgrp(3stap)function::ns_pgrp(3stap)function::sid(3stap)function::ns_sid(3stap)function::gid(3stap)function::ns_gid(3stap)function::egid(3stap)function::ns_egid(3stap)function::uid(3stap)function::ns_uid(3stap)function::euid(3stap)function::ns_euid(3stap)function::is_myproc(3stap)function::cpuid(3stap)function::cpu(3stap)function::registers_valid(3stap)function::user_mode(3stap)function::is_return(3stap)function::target(3stap)function::module_name(3stap)function::module_size(3stap)function::stp_pid(3stap)function::remote_id(3stap)function::remote_uri(3stap)function::stack_size(3stap)function::stack_used(3stap)function::stack_unused(3stap)function::addr(3stap)function::uaddr(3stap)function::cmdline_args(3stap)function::cmdline_arg(3stap)function::cmdline_str(3stap)stap(1)stapprobes(3stap)
okay that's the whole page bestie, you ate that π go probe something cute. this was the SystemTap Tapset Reference, dated September 2026, and yes the version is still TAPSET::CONTEXT(3stap) β we're consistent like that π bye mwah π
π¦ where this page comes from
- 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
- 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.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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms