FUNCTION::SPECULATE(3stap) Speculation FUNCTION::SPECULATE(3stap)

# [NAME](#NAME)

function::speculate - Store a string for possible output later

# [SYNOPSIS](#SYNOPSIS)

```


    speculate(id:long,output:string)
```

# [ARGUMENTS](#ARGUMENTS)

*id*

buffer id to store the information in

*output*

string to write out when commit occurs

# [DESCRIPTION](#DESCRIPTION)

Add a string to the speculaive buffer for id.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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