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

# function::cpuid(3stap)

Returns the current cpu number

## NAME

function::cpuid - Returns the current cpu number

## SYNOPSIS

```
    cpuid:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the current cpu number. Deprecated in SystemTap 1.4 and removed in SystemTap 1.5.

## SEE ALSO0

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