TAPSET::CONTEXT(3stap)TAPSET::CONTEXT(3stap)tapset::context - systemtap context tapset
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 a register dump Seefunction::print_regs(3stap) for details.ppReturns the active probe point Seefunction::pp(3stap) for details.ppfuncReturns the function name parsed from pp() Seefunction::ppfunc(3stap) for details.probe_type The low level probe handler type of the current probe. Seefunction::probe_type(3stap) for details.execname Returns the execname of a target process (or group of processes) Seefunction::execname(3stap) for details.pexecname Returns the execname of a target process's parent process Seefunction::pexecname(3stap) for details.pidReturns the ID of a target process Seefunction::pid(3stap) for details.ns_pidReturns the ID of a target process as seen in a pid namespace Seefunction::ns_pid(3stap) for details.tidReturns the thread ID of a target process Seefunction::tid(3stap) for details.ns_tidReturns the thread ID of a target process as seen in a pid namespace Seefunction::ns_tid(3stap) for details.ppidReturns the process ID of a target process's parent process Seefunction::ppid(3stap) for details.ns_ppid Returns the process ID of a target process's parent process as seen in a pid namespace Seefunction::ns_ppid(3stap) for details.pgrpReturns the process group ID of the current process Seefunction::pgrp(3stap) for details.ns_pgrp Returns the process group ID of the current process as seen in a pid namespace Seefunction::ns_pgrp(3stap) for details.sidReturns the session ID of the current process Seefunction::sid(3stap) for details.ns_sidReturns the session ID of the current process as seen in a pid namespace Seefunction::ns_sid(3stap) for details.gidReturns the group ID of a target process Seefunction::gid(3stap) for details.ns_gidReturns the group ID of a target process as seen in a user namespace Seefunction::ns_gid(3stap) for details.egidReturns the effective gid of a target process Seefunction::egid(3stap) for details.ns_egid Returns the effective gid of a target process as seen in a user namespace Seefunction::ns_egid(3stap) for details.uidReturns the user ID of a target process Seefunction::uid(3stap) for details.ns_uidReturns the user ID of a target process as seen in a user namespace Seefunction::ns_uid(3stap) for details.euidReturn the effective uid of a target process Seefunction::euid(3stap) for details.ns_euid Returns the effective user ID of a target process as seen in a user namespace Seefunction::ns_euid(3stap) for details.is_myproc Determines if the current probe point has occurred in the user's own process Seefunction::is_myproc(3stap) for details.cpuidReturns the current cpu number Seefunction::cpuid(3stap) for details.cpuReturns the current cpu number Seefunction::cpu(3stap) for details.registers_valid Determines validity of register() and u_register() in current context Seefunction::registers_valid(3stap) for details.user_mode Determines if probe point occurs in user-mode Seefunction::user_mode(3stap) for details.is_return Whether the current probe context is a return probe Seefunction::is_return(3stap) for details.targetReturn the process ID of the target process Seefunction::target(3stap) for details.module_name The module name of the current script Seefunction::module_name(3stap) for details.module_size The module size of the current script Seefunction::module_size(3stap) for details.stp_pid The process id of the stapio process Seefunction::stp_pid(3stap) for details.remote_id The index of this instance in a remote execution. Seefunction::remote_id(3stap) for details.remote_uri The name of this instance in a remote execution. Seefunction::remote_uri(3stap) for details.stack_size Return the size of the kernel stack Seefunction::stack_size(3stap) for details.stack_used Returns the amount of kernel stack used Seefunction::stack_used(3stap) for details.stack_unused Returns the amount of kernel stack currently available Seefunction::stack_unused(3stap) for details.addrAddress of the current probe point. Seefunction::addr(3stap) for details.uaddrUser space address of current running task Seefunction::uaddr(3stap) for details.cmdline_args Fetch command line arguments from current process Seefunction::cmdline_args(3stap) for details.cmdline_arg Fetch a command line argument Seefunction::cmdline_arg(3stap) for details.cmdline_str Fetch all command line arguments from current process Seefunction::cmdline_str(3stap) for details.
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)
This page is part of thesystemtap (a tracing and live-system analysis tool) project. Information about the project can be found at ⟨https://sourceware.org/systemtap/⟩. If you have a bug report for this manual page, send it to systemtap@sourceware.org. This page was obtained from the project's upstream Git repository ⟨git://sourceware.org/git/systemtap.git⟩ on 2025-08-11. (At that time, the date of the most recent commit that was found in the repository was 2025-07-24.) If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which isnot part of the original manual page), send a mail to man-pages@man7.orgSystemTap Tapset Reference April 2025TAPSET::CONTEXT(3stap)Pages that refer to this page:function::addr(3stap), function::cmdline_arg(3stap), function::cmdline_args(3stap), function::cmdline_str(3stap), function::cpu(3stap), function::cpuid(3stap), function::egid(3stap), function::euid(3stap), function::execname(3stap), function::gid(3stap), function::is_myproc(3stap), function::is_return(3stap), function::module_name(3stap), function::module_size(3stap), function::ns_egid(3stap), function::ns_euid(3stap), function::ns_gid(3stap), function::ns_pgrp(3stap), function::ns_pid(3stap), function::ns_ppid(3stap), function::ns_sid(3stap), function::ns_tid(3stap), function::ns_uid(3stap), function::pexecname(3stap), function::pgrp(3stap), function::pid(3stap), function::pp(3stap), function::ppfunc(3stap), function::ppid(3stap), function::print_regs(3stap), function::probe_type(3stap), function::registers_valid(3stap), function::remote_id(3stap), function::remote_uri(3stap), function::sid(3stap), function::stack_size(3stap), function::stack_unused(3stap), function::stack_used(3stap), function::stp_pid(3stap), function::target(3stap), function::tid(3stap), function::uaddr(3stap), function::uid(3stap), function::user_mode(3stap)
HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface. For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere. Hosting byjambit GmbH. | ![]() |