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

# probe::scheduler.ctxswitch(3stap)

A context switch is occuring.

## NAME

probe::scheduler.ctxswitch - A context switch is occuring.

## SYNOPSIS

```
scheduler.ctxswitch
```

## VALUES

*prev\_task\_name*

The name of the process to be switched out

*next\_task\_name*

The name of the process to be switched in

*prev\_pid*

The PID of the process to be switched out

*next\_pid*

The PID of the process to be switched in

*prev\_tid*

The TID of the process to be switched out

*next\_tid*

The TID of the process to be switched in

*next\_priority*

The priority of the process to be switched in

*prev\_priority*

The priority of the process to be switched out

*nexttsk\_state*

the state of the process to be switched in

*prevtsk\_state*

the state of the process to be switched out

*name*

name of the probe point

## SEE ALSO0

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