mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
Kernel: Optionally dump scheduler state with stack traces
This will dump stack traces of all threads when pressing Ctrl+Shift+Alt+F12
This commit is contained in:
parent
0150ae4bbd
commit
82e9fe8d67
Notes:
sideshowbarker
2024-07-18 08:58:24 +09:00
Author: https://github.com/tomuta
Commit: 82e9fe8d67
Pull-request: https://github.com/SerenityOS/serenity/pull/8785
4 changed files with 11 additions and 8 deletions
|
@ -32,10 +32,10 @@ void PS2KeyboardDevice::irq_handle_byte_read(u8 byte)
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_modifiers == (Mod_Alt | Mod_Shift) && byte == 0x58) {
|
||||
if ((m_modifiers == (Mod_Alt | Mod_Shift) || m_modifiers == (Mod_Ctrl | Mod_Alt | Mod_Shift)) && byte == 0x58) {
|
||||
// Alt+Shift+F12 pressed, dump some kernel state to the debug console.
|
||||
ConsoleManagement::the().switch_to_debug();
|
||||
Scheduler::dump_scheduler_state();
|
||||
Scheduler::dump_scheduler_state(m_modifiers == (Mod_Ctrl | Mod_Alt | Mod_Shift));
|
||||
}
|
||||
|
||||
dbgln_if(KEYBOARD_DEBUG, "Keyboard::irq_handle_byte_read: {:#02x} {}", ch, (pressed ? "down" : "up"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue