Loading...
Searching...
No Matches
schedstatistics.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Freie Universität Berlin
3 * SPDX-FileCopyrightText: 2019 Inria
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#pragma once
8
27
28#include <stdint.h>
29
30#ifdef __cplusplus
31 extern "C" {
32#endif
33
37typedef struct {
38 uint32_t laststart;
40 unsigned int schedules;
41 uint64_t runtime_us;
43
48
54
55#ifdef __cplusplus
56}
57#endif
58
#define KERNEL_PID_LAST
The last valid PID (inclusive).
Definition sched.h:115
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.
Scheduler statistics.
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.