DOKK / manpages / debian 10 / systemtap-doc / function::get_loadavg_index.3stap.en
FUNCTION::GET_LOADAV(3stap) Kernel Process Tapset FUNCTION::GET_LOADAV(3stap)

function::get_loadavg_index - Get the load average for a specified interval


get_loadavg_index:long(indx:long)

indx

The load average interval to capture.

This function returns the load average at a specified interval. The three load average values 1, 5 and 15 minute average corresponds to indexes 0, 1 and 2 of the avenrun array - see linux/sched.h. Please note that the truncated-integer portion of the load average is returned. If the specified index is out-of-bounds, then an error message and exception is thrown.

tapset::loadavg(3stap)

October 2018 SystemTap Tapset Reference