---
name: "function::module_name"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::module_name"
---

# function::module\_name(3stap)

The module name of the current script

## NAME

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

## SYNOPSIS

```
    module_name:string()
```

## ARGUMENTS

None

## 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 \<module\_name\>.

## SEE ALSO0

[*tapset::context*(3stap)](/tapset::context/3stap.md)
