PatchworkOS
Loading...
Searching...
No Matches
statistics.h
Go to the documentation of this file.
1#pragma once
2
4#include <kernel/sync/lock.h>
5
6#include <time.h>
7
8typedef struct cpu cpu_t;
9
54
61
65void statistics_init(void);
66
76
84
void statistics_init(void)
Initializes the statistics driver.
Definition statistics.c:100
void statistics_interrupt_begin(interrupt_frame_t *frame, cpu_t *self)
Called at the beginning of an interrupt.
Definition statistics.c:120
void statistics_cpu_ctx_init(statistics_cpu_ctx_t *ctx)
Initializes a per-CPU statistics context.
Definition statistics.c:24
void statistics_interrupt_end(interrupt_frame_t *frame, cpu_t *self)
Called at the end of an interrupt.
Definition statistics.c:140
__UINT64_TYPE__ clock_t
A nanosecond time.
Definition clock_t.h:13
CPU structure.
Definition cpu.h:42
Trap Frame Structure.
Definition interrupt.h:42
A simple ticket lock implementation.
Definition lock.h:43
Per-CPU statistics context.
Definition statistics.h:46