TAPSET::CONTEXT(3stap) TAPSET::CONTEXT(3stap)

# [NAME](#NAME)

tapset::context - systemtap context tapset

# [DESCRIPTION](#DESCRIPTION)

Context functions provide additional information about where an event occurred. These functions can provide information such as a backtrace to where the event occurred and the current register values for the processor.

[**print\_regs**](#print_regs)

Print a register dump

See [*function::print\_regs*(3stap)](/man/enterprise-packages/systemtap/function::print_regs.3stap)  
for details.

[**pp**](#pp)

Returns the active probe point

See [*function::pp*(3stap)](/man/enterprise-packages/systemtap/function::pp.3stap)  
for details.

[**ppfunc**](#ppfunc)

Returns the function name parsed from pp()

See [*function::ppfunc*(3stap)](/man/enterprise-packages/systemtap/function::ppfunc.3stap)  
for details.

[**probe\_type**](#probe_type)

The low level probe handler type of the current probe.

See [*function::probe\_type*(3stap)](/man/enterprise-packages/systemtap/function::probe_type.3stap)  
for details.

[**execname**](#execname)

Returns the execname of a target process (or group of processes)

See [*function::execname*(3stap)](/man/enterprise-packages/systemtap/function::execname.3stap)  
for details.

[**pexecname**](#pexecname)

Returns the execname of a target process's parent process

See [*function::pexecname*(3stap)](/man/enterprise-packages/systemtap/function::pexecname.3stap)  
for details.

[**pid**](#pid)

Returns the ID of a target process

See [*function::pid*(3stap)](/man/enterprise-packages/systemtap/function::pid.3stap)  
for details.

[**ns\_pid**](#ns_pid)

Returns the ID of a target process as seen in a pid namespace

See [*function::ns\_pid*(3stap)](/man/enterprise-packages/systemtap/function::ns_pid.3stap)  
for details.

[**tid**](#tid)

Returns the thread ID of a target process

See [*function::tid*(3stap)](/man/enterprise-packages/systemtap/function::tid.3stap)  
for details.

[**ns\_tid**](#ns_tid)

Returns the thread ID of a target process as seen in a pid namespace

See [*function::ns\_tid*(3stap)](/man/enterprise-packages/systemtap/function::ns_tid.3stap)  
for details.

[**ppid**](#ppid)

Returns the process ID of a target process's parent process

See [*function::ppid*(3stap)](/man/enterprise-packages/systemtap/function::ppid.3stap)  
for details.

[**ns\_ppid**](#ns_ppid)

Returns the process ID of a target process's parent process as seen in a pid namespace

See [*function::ns\_ppid*(3stap)](/man/enterprise-packages/systemtap/function::ns_ppid.3stap)  
for details.

[**pgrp**](#pgrp)

Returns the process group ID of the current process

See [*function::pgrp*(3stap)](/man/enterprise-packages/systemtap/function::pgrp.3stap)  
for details.

[**ns\_pgrp**](#ns_pgrp)

Returns the process group ID of the current process as seen in a pid namespace

See [*function::ns\_pgrp*(3stap)](/man/enterprise-packages/systemtap/function::ns_pgrp.3stap)  
for details.

[**sid**](#sid)

Returns the session ID of the current process

See [*function::sid*(3stap)](/man/enterprise-packages/systemtap/function::sid.3stap)  
for details.

[**ns\_sid**](#ns_sid)

Returns the session ID of the current process as seen in a pid namespace

See [*function::ns\_sid*(3stap)](/man/enterprise-packages/systemtap/function::ns_sid.3stap)  
for details.

[**gid**](#gid)

Returns the group ID of a target process

See [*function::gid*(3stap)](/man/enterprise-packages/systemtap/function::gid.3stap)  
for details.

[**ns\_gid**](#ns_gid)

Returns the group ID of a target process as seen in a user namespace

See [*function::ns\_gid*(3stap)](/man/enterprise-packages/systemtap/function::ns_gid.3stap)  
for details.

[**egid**](#egid)

Returns the effective gid of a target process

See [*function::egid*(3stap)](/man/enterprise-packages/systemtap/function::egid.3stap)  
for details.

[**ns\_egid**](#ns_egid)

Returns the effective gid of a target process as seen in a user namespace

See [*function::ns\_egid*(3stap)](/man/enterprise-packages/systemtap/function::ns_egid.3stap)  
for details.

[**uid**](#uid)

Returns the user ID of a target process

See [*function::uid*(3stap)](/man/enterprise-packages/systemtap/function::uid.3stap)  
for details.

[**ns\_uid**](#ns_uid)

Returns the user ID of a target process as seen in a user namespace

See [*function::ns\_uid*(3stap)](/man/enterprise-packages/systemtap/function::ns_uid.3stap)  
for details.

[**euid**](#euid)

Return the effective uid of a target process

See [*function::euid*(3stap)](/man/enterprise-packages/systemtap/function::euid.3stap)  
for details.

[**ns\_euid**](#ns_euid)

Returns the effective user ID of a target process as seen in a user namespace

See [*function::ns\_euid*(3stap)](/man/enterprise-packages/systemtap/function::ns_euid.3stap)  
for details.

[**is\_myproc**](#is_myproc)

Determines if the current probe point has occurred in the user's own process

See [*function::is\_myproc*(3stap)](/man/enterprise-packages/systemtap/function::is_myproc.3stap)  
for details.

[**cpuid**](#cpuid)

Returns the current cpu number

See [*function::cpuid*(3stap)](/man/enterprise-packages/systemtap/function::cpuid.3stap)  
for details.

[**cpu**](#cpu)

Returns the current cpu number

See [*function::cpu*(3stap)](/man/enterprise-packages/systemtap/function::cpu.3stap)  
for details.

[**registers\_valid**](#registers_valid)

Determines validity of register() and u\_register() in current context

See [*function::registers\_valid*(3stap)](/man/enterprise-packages/systemtap/function::registers_valid.3stap)  
for details.

[**user\_mode**](#user_mode)

Determines if probe point occurs in user-mode

See [*function::user\_mode*(3stap)](/man/enterprise-packages/systemtap/function::user_mode.3stap)  
for details.

[**is\_return**](#is_return)

Whether the current probe context is a return probe

See [*function::is\_return*(3stap)](/man/enterprise-packages/systemtap/function::is_return.3stap)  
for details.

[**target**](#target)

Return the process ID of the target process

See [*function::target*(3stap)](/man/enterprise-packages/systemtap/function::target.3stap)  
for details.

[**module\_name**](#module_name)

The module name of the current script

See [*function::module\_name*(3stap)](/man/enterprise-packages/systemtap/function::module_name.3stap)  
for details.

[**module\_size**](#module_size)

The module size of the current script

See [*function::module\_size*(3stap)](/man/enterprise-packages/systemtap/function::module_size.3stap)  
for details.

[**stp\_pid**](#stp_pid)

The process id of the stapio process

See [*function::stp\_pid*(3stap)](/man/enterprise-packages/systemtap/function::stp_pid.3stap)  
for details.

[**remote\_id**](#remote_id)

The index of this instance in a remote execution.

See [*function::remote\_id*(3stap)](/man/enterprise-packages/systemtap/function::remote_id.3stap)  
for details.

[**remote\_uri**](#remote_uri)

The name of this instance in a remote execution.

See [*function::remote\_uri*(3stap)](/man/enterprise-packages/systemtap/function::remote_uri.3stap)  
for details.

[**stack\_size**](#stack_size)

Return the size of the kernel stack

See [*function::stack\_size*(3stap)](/man/enterprise-packages/systemtap/function::stack_size.3stap)  
for details.

[**stack\_used**](#stack_used)

Returns the amount of kernel stack used

See [*function::stack\_used*(3stap)](/man/enterprise-packages/systemtap/function::stack_used.3stap)  
for details.

[**stack\_unused**](#stack_unused)

Returns the amount of kernel stack currently available

See [*function::stack\_unused*(3stap)](/man/enterprise-packages/systemtap/function::stack_unused.3stap)  
for details.

[**addr**](#addr)

Address of the current probe point.

See [*function::addr*(3stap)](/man/enterprise-packages/systemtap/function::addr.3stap)  
for details.

[**uaddr**](#uaddr)

User space address of current running task

See [*function::uaddr*(3stap)](/man/enterprise-packages/systemtap/function::uaddr.3stap)  
for details.

[**cmdline\_args**](#cmdline_args)

Fetch command line arguments from current process

See [*function::cmdline\_args*(3stap)](/man/enterprise-packages/systemtap/function::cmdline_args.3stap)  
for details.

[**cmdline\_arg**](#cmdline_arg)

Fetch a command line argument

See [*function::cmdline\_arg*(3stap)](/man/enterprise-packages/systemtap/function::cmdline_arg.3stap)  
for details.

[**cmdline\_str**](#cmdline_str)

Fetch all command line arguments from current process

See [*function::cmdline\_str*(3stap)](/man/enterprise-packages/systemtap/function::cmdline_str.3stap)  
for details.

# [SEE ALSO](#SEE_ALSO)

[*function::print\_regs*(3stap)](/man/enterprise-packages/systemtap/function::print_regs.3stap), [*function::pp*(3stap)](/man/enterprise-packages/systemtap/function::pp.3stap), [*function::ppfunc*(3stap)](/man/enterprise-packages/systemtap/function::ppfunc.3stap), [*function::probe\_type*(3stap)](/man/enterprise-packages/systemtap/function::probe_type.3stap), [*function::execname*(3stap)](/man/enterprise-packages/systemtap/function::execname.3stap), [*function::pexecname*(3stap)](/man/enterprise-packages/systemtap/function::pexecname.3stap), [*function::pid*(3stap)](/man/enterprise-packages/systemtap/function::pid.3stap), [*function::ns\_pid*(3stap)](/man/enterprise-packages/systemtap/function::ns_pid.3stap), [*function::tid*(3stap)](/man/enterprise-packages/systemtap/function::tid.3stap), [*function::ns\_tid*(3stap)](/man/enterprise-packages/systemtap/function::ns_tid.3stap), [*function::ppid*(3stap)](/man/enterprise-packages/systemtap/function::ppid.3stap), [*function::ns\_ppid*(3stap)](/man/enterprise-packages/systemtap/function::ns_ppid.3stap), [*function::pgrp*(3stap)](/man/enterprise-packages/systemtap/function::pgrp.3stap), [*function::ns\_pgrp*(3stap)](/man/enterprise-packages/systemtap/function::ns_pgrp.3stap), [*function::sid*(3stap)](/man/enterprise-packages/systemtap/function::sid.3stap), [*function::ns\_sid*(3stap)](/man/enterprise-packages/systemtap/function::ns_sid.3stap), [*function::gid*(3stap)](/man/enterprise-packages/systemtap/function::gid.3stap), [*function::ns\_gid*(3stap)](/man/enterprise-packages/systemtap/function::ns_gid.3stap), [*function::egid*(3stap)](/man/enterprise-packages/systemtap/function::egid.3stap), [*function::ns\_egid*(3stap)](/man/enterprise-packages/systemtap/function::ns_egid.3stap), [*function::uid*(3stap)](/man/enterprise-packages/systemtap/function::uid.3stap), [*function::ns\_uid*(3stap)](/man/enterprise-packages/systemtap/function::ns_uid.3stap), [*function::euid*(3stap)](/man/enterprise-packages/systemtap/function::euid.3stap), [*function::ns\_euid*(3stap)](/man/enterprise-packages/systemtap/function::ns_euid.3stap), [*function::is\_myproc*(3stap)](/man/enterprise-packages/systemtap/function::is_myproc.3stap), [*function::cpuid*(3stap)](/man/enterprise-packages/systemtap/function::cpuid.3stap), [*function::cpu*(3stap)](/man/enterprise-packages/systemtap/function::cpu.3stap), [*function::registers\_valid*(3stap)](/man/enterprise-packages/systemtap/function::registers_valid.3stap), [*function::user\_mode*(3stap)](/man/enterprise-packages/systemtap/function::user_mode.3stap), [*function::is\_return*(3stap)](/man/enterprise-packages/systemtap/function::is_return.3stap), [*function::target*(3stap)](/man/enterprise-packages/systemtap/function::target.3stap), [*function::module\_name*(3stap)](/man/enterprise-packages/systemtap/function::module_name.3stap), [*function::module\_size*(3stap)](/man/enterprise-packages/systemtap/function::module_size.3stap), [*function::stp\_pid*(3stap)](/man/enterprise-packages/systemtap/function::stp_pid.3stap), [*function::remote\_id*(3stap)](/man/enterprise-packages/systemtap/function::remote_id.3stap), [*function::remote\_uri*(3stap)](/man/enterprise-packages/systemtap/function::remote_uri.3stap), [*function::stack\_size*(3stap)](/man/enterprise-packages/systemtap/function::stack_size.3stap), [*function::stack\_used*(3stap)](/man/enterprise-packages/systemtap/function::stack_used.3stap), [*function::stack\_unused*(3stap)](/man/enterprise-packages/systemtap/function::stack_unused.3stap), [*function::addr*(3stap)](/man/enterprise-packages/systemtap/function::addr.3stap), [*function::uaddr*(3stap)](/man/enterprise-packages/systemtap/function::uaddr.3stap), [*function::cmdline\_args*(3stap)](/man/enterprise-packages/systemtap/function::cmdline_args.3stap), [*function::cmdline\_arg*(3stap)](/man/enterprise-packages/systemtap/function::cmdline_arg.3stap), [*function::cmdline\_str*(3stap)](/man/enterprise-packages/systemtap/function::cmdline_str.3stap), [*stap*(1)](/man/enterprise-packages/systemtap/stap.1), [*stapprobes*(3stap)](/man/enterprise-packages/systemtap/stapprobes.3stap)

September 2026 SystemTap Tapset Reference

---

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