DOKK / manpages / debian 12 / systemtap-doc / function::env_var.3stap.en
FUNCTION::ENV_VAR(3stap) Context Functions FUNCTION::ENV_VAR(3stap)

function::env_var - Fetch environment variable from current process


env_var:string(name:string)

name

Name of the environment variable to fetch

Returns the contents of the specified environment value for the current process. If the variable isn't set an empty string is returned.

tapset::context-envvar(3stap)

November 2022 SystemTap Tapset Reference