47 #ifdef SA_CPU_WAITING_FOR_IO
50 #ifdef SA_CPU_HARDWARE_IRQ
53 #ifdef SA_CPU_SOFTWARE_IRQ
116 int sa_get_cpus(struct
sa_cpu* dst, uint16_t dst_size, uint16_t* written) SA_EXPORT SA_NONNULL;
int sa_open_cpu(void) SA_EXPORT
float idle
Percentage of time with no activity.
Definition: cpu.h:45
int sa_get_cpu(uint16_t index, struct sa_cpu *dst) SA_EXPORT SA_NONNULL
Retrieves statistics from a given cpu index. This data is an average calculated since last time it wa...
int sa_reset_cpus() SA_EXPORT
float waiting_for_io
Percentage of time spent waiting for io transferences.
Definition: cpu.h:48
float nice
Percentage of time spent on nice prioriced tasks.
Definition: cpu.h:39
int sa_get_cpus(struct sa_cpu *dst, uint16_t dst_size, uint16_t *written) SA_EXPORT SA_NONNULL
Retrieves statistics from as many processors as possible. The data of each cpu is an average calculat...
float hardware_irq
Percentage of time spent working on hardware irqs.
Definition: cpu.h:51
float system
Percentage of time spent on system tasks.
Definition: cpu.h:42
float user
Percentage of time spent on user tasks.
Definition: cpu.h:36
float stolen
Percentage of time spent in other operating systems when running in a virtualized environment...
Definition: cpu.h:57
int sa_close_cpu(void) SA_EXPORT
int sa_count_cpus(uint16_t *number) SA_EXPORT SA_NONNULL
uint16_t id
Cpu identificator. 0 is the first one.
Definition: cpu.h:33
float software_irq
Percentage of time spent working on software irqs.
Definition: cpu.h:54