FUNCTION::MODULE\_NAM(3stap) Context Functions FUNCTION::MODULE\_NAM(3stap)

# [NAME](#NAME)

function::module\_name - The module name of the current script

# [SYNOPSIS](#SYNOPSIS)

```


    module_name:string()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

This function returns the name of the stap module. Either generated randomly (stap\_\[0-9a-f]+\_\[0-9a-f]+) or set by stap -m &lt;module\_name&gt;.

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::context*(3stap)](/man/enterprise-packages/systemtap/tapset::context.3stap)

September 2026 SystemTap Tapset Reference Ver

---

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