FUNCTION::GET_LOADAV(3stap)
π FUNCTION::GET_LOADAV π
okay bestie, welcome to the Kernel Process Tapset section of the SystemTap Tapset Reference β this lil page is function::get_loadavg_index(3stap) and she is so useful, i promise π«Ά
β¨ NAME β¨
function::get_loadavg_index β bestie, this one grabs you the load average for a specific interval π
πΈ SYNOPSIS πΈ
get_loadavg_index:long(indx:long)
π¦ ARGUMENTS π¦
indxβ the load average interval you wanna capture, like, the one you're asking for π
π DESCRIPTION π
okay so this function returns the load average at a specified interval. no cap.
here's the tea: the three load average values β the 1, 5, and 15 minute averages β correspond to indexes 0, 1, and 2 of the avenrun array. see linux/sched.h. iykyk π
lowkey important: the truncated-integer portion of the load average is what gets returned. so don't come for me about decimals, bestie, they're literally not invited π
and fr fr, if the index you specify is out-of-bounds, then an error message and exception is thrown. so likeβ¦ keep your index in range or catch those hands π
π SEE ALSO π
and that's the whole vibe, bestie β¨ this was the SystemTap Tapset Reference, version vibes from September 2026, page FUNCTION::GET_LOADAV(3stap) β periodt π
πΈπ¦
π¦ 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