kernel: Log each thread's instruction pointer when dumping scheduler stats
This commit is contained in:
parent
d8e4489079
commit
24b886b0d1
@ -457,8 +457,9 @@ namespace Scheduler
|
|||||||
|
|
||||||
for (const auto* thread : g_threads)
|
for (const auto* thread : g_threads)
|
||||||
{
|
{
|
||||||
kdbgln("Thread %p (belongs to pid %4d) %c [%-20s] %4d, state = %d", thread, thread->process->id,
|
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);
|
thread->is_kernel ? 'k' : 'u', thread->cmdline.chars(), thread->tid, (int)thread->state,
|
||||||
|
(void*)thread->ip());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto* process : g_processes)
|
for (const auto* process : g_processes)
|
||||||
|
Loading…
Reference in New Issue
Block a user