FUNCTION::CPU(3stap) Context Functions FUNCTION::CPU(3stap)

# [NAME](#NAME)

function::cpu - Returns the current cpu number

# [SYNOPSIS](#SYNOPSIS)

```


    cpu:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

This function returns the current cpu number.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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