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

# function::cpu(3stap)

Returns the current cpu number

## NAME

function::cpu - Returns the current cpu number

## SYNOPSIS

```
    cpu:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the current cpu number.

## SEE ALSO0

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