FUNCTION::CMDLINE\_ST(3stap) Context Functions FUNCTION::CMDLINE\_ST(3stap)

# [NAME](#NAME)

function::cmdline\_str - Fetch all command line arguments from current process

# [SYNOPSIS](#SYNOPSIS)

```


    cmdline_str:string()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

Returns all arguments from the current process delimited by spaces. Returns the empty string when the arguments cannot be retrieved.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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