kernel: Log each thread's instruction pointer when dumping scheduler stats

This commit is contained in:
apio 2024-12-11 19:18:25 +01:00
parent d8e4489079
commit 24b886b0d1
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -457,8 +457,9 @@ namespace Scheduler
for (const auto* thread : g_threads)
{
kdbgln("Thread %p (belongs to pid %4d) %c [%-20s] %4d, state = %d", thread, thread->process->id,
thread->is_kernel ? 'k' : 'u', thread->cmdline.chars(), thread->tid, (int)thread->state);
kdbgln("Thread %p (belongs to pid %4d) %c [%-20s] %4d, state = %d, ip = %p", thread, thread->process->id,
thread->is_kernel ? 'k' : 'u', thread->cmdline.chars(), thread->tid, (int)thread->state,
(void*)thread->ip());
}
for (const auto* process : g_processes)