PROBE::SCHEDULER.C(3stap) Scheduler Tapset PROBE::SCHEDULER.C(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```
probe scheduler.ctxswitch {}
```

# [VALUES](#VALUES)

*next\_pid*

The PID of the process to be switched in

*name*

name of the probe point

*prev\_pid*

The PID of the process to be switched out

*prev\_task\_name*

The name of the process to be switched out

*next\_priority*

The priority of the process to be switched in

*nexttsk\_state*

the state of the process to be switched in

*next\_tid*

The TID of the process to be switched in

*prevtsk\_state*

the state of the process to be switched out

*prev\_tid*

The TID of the process to be switched out

*next\_task\_name*

The name of the process to be switched in

*prev\_priority*

The priority of the process to be switched out

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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