mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 14:08:21 +00:00
kernel: profiling infrastructure
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user