ppsm_get_cpuload()

int ppsm_get_cpuload( void *handle,
                      int cpu );

This function gets the current CPU load. The arguments are:

handle
The handle returned by ppsm_init().
cpu
The index of the CPU, in the range from 0 to the number of processors − 1.

This function returns the per cent load for the specified CPU, or -1 if an error occurred (e.g. the CPU index is out of range).