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