PROBE::SCHEDULER.C(3stap)
π probe::scheduler.ctxswitch (3stap) π
okay bestie, gather round, because we are talking about probe::scheduler.ctxswitch from the Scheduler Tapset β it's giving 3stap, it's giving kernel drama, and honestly? iconic.
β¨ NAME β¨
probe::scheduler.ctxswitch β a context switch is occuring. yes, fr fr, that's literally the whole vibe: the CPU is dumping one process and picking up another, and this probe is your front-row seat πΏ
π¦ SYNOPSIS π¦
probe scheduler.ctxswitch {}
no args, no drama, just vibes π
π VALUES π
okay so when this probe fires, it hands you a whole little gift bag of variables. here's every single one, no gatekeeping π«Ά
next_pidβ the PID of the process that's getting switched in (the one stepping up, main character energy π)nameβ the name of the probe point. yes babe, the probe point itself has a name, and this is itprev_pidβ the PID of the process getting switched out (sorry babe, your scene is over π)prev_task_nameβ the name of the process that's getting switched outnext_priorityβ the priority of the process being switched innexttsk_stateβ the state of the process being switched innext_tidβ the TID of the process being switched inprevtsk_stateβ the state of the process being switched outprev_tidβ the TID of the process being switched outnext_task_nameβ the name of the process being switched inprev_priorityβ the priority of the process being switched out
heads up bestie: yes,next_pid/next_tidandprev_pid/prev_tidare different things, and yes,nexttsk_state/prevtsk_stateare spelled exactly like that with no underscore. do not try to "fix" them, I'm begging π
πΈ SEE ALSO πΈ
tapset::scheduler(3stap)β go read the whole tapset, it's the mothership β¨
and that's the whole page, periodt π no notes, no cap, every value accounted for, vibe check passed.
SystemTap Tapset Reference, September 2026 edition β mwah, love u, go probe something π₯π¦β
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms