Kernel: Add SMP message StackTrace

This event is sent when user presses ctrl+{F1-F12} and it will dump the
corresponding processor's stack trace. This is really helpful for
detecting deadlocks in the system
This commit is contained in:
2025-06-02 11:22:57 +03:00
parent c5b0d0235f
commit 7a645b8555
3 changed files with 37 additions and 1 deletions

View File

@@ -244,6 +244,10 @@ namespace Kernel
case SMPMessage::Type::UnblockThread:
processor.m_scheduler->unblock_thread(message->unblock_thread);
break;
case SMPMessage::Type::StackTrace:
dwarnln("Stack trace of CPU {}", current_id().as_u32());
Debug::dump_stack_trace();
break;
}
last_handled = message;