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

# function::speculate(3stap)

Store a string for possible output later

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*id*

buffer id to store the information in

*output*

string to write out when commit occurs

## DESCRIPTION

Add a string to the speculaive buffer for id.

## SEE ALSO0

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