mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
prof: add user/kernel statistics
This commit is contained in:
@@ -99,10 +99,8 @@ static bool intel_irq(context_t *context) {
|
||||
uint8_t data[1 + sizeof(uintptr_t) * 256];
|
||||
|
||||
uint8_t size = get_backtrace(context, (uintptr_t *)(data + 1));
|
||||
if (size) {
|
||||
*data = size;
|
||||
profiling_insert(size, data);
|
||||
}
|
||||
*data = size;
|
||||
profiling_insert(size, data);
|
||||
|
||||
arch_apic_init_perf(); // SDM LVT figure says a PMC irq masks itself, so unmask it
|
||||
reset_intel_pmc();
|
||||
@@ -118,8 +116,6 @@ static void init_amd_pmc(void) {
|
||||
__assert(!"Unimplemented");
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool arch_profiling_irq(context_t *context) {
|
||||
if (!strcmp(current_cpu()->vendor, "AuthenticAMD"))
|
||||
return amd_irq(context);
|
||||
|
||||
Reference in New Issue
Block a user