kernel: profiling infrastructure

This commit is contained in:
Matheus
2025-12-05 18:19:42 -03:00
parent d10295dcdf
commit 40bbf217ee
19 changed files with 595 additions and 3 deletions
+5
View File
@@ -13,6 +13,7 @@
#include <kernel/dpc.h>
#include <arch/apic.h>
#include <kernel/timekeeper.h>
#include <ringbuffer.h>
#define ARCH_EOI arch_apic_eoi
@@ -68,6 +69,10 @@ typedef struct cpu_t {
spinlock_t shootdown_lock;
int *shootdown_done;
#ifdef ENABLE_PROFILING
ringbuffer_t *prof_ringbuffer;
#endif
// architecture specific, does not need to be exposed
uint64_t gdt[7];