29#ifndef SCHEDSTATISTICS_H
30#define SCHEDSTATISTICS_H
#define KERNEL_PID_LAST
The last valid PID (inclusive).
schedstat_t sched_pidlist[KERNEL_PID_LAST+1]
Thread statistics table.
void init_schedstatistics(void)
Registers the sched statistics callback and sets laststart for caller thread.
unsigned int schedules
How often the thread was scheduled to run.
uint64_t runtime_us
The total runtime of this thread in microseconds.
uint32_t laststart
Time stamp of the last time this thread was scheduled to run.