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

# function::task\_cpu(3stap)

The scheduled cpu of the task

## NAME

function::task\_cpu - The scheduled cpu of the task

## SYNOPSIS

```
    task_cpu:long(task:long)
```

## ARGUMENTS

*task*

task\_struct pointer

## DESCRIPTION

This function returns the scheduled cpu for the given task.

## SEE ALSO0

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