lkml.org 
[lkml]   [2007]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: Use show_regs() to improve __schedule_bug() output

* Satyam Sharma <satyam@infradead.org> wrote:

> BTW would something similar would be useful in __schedule_bug() too? I
> sure think so -- I'm not sure if EIP holds anything useful there, but
> CPU#, EFLAGS and the init_utsname() stuff would be definitely helpful
> ...
>
> [PATCH] sched: Use show_regs() to improve __schedule_bug() output
>
> A full register dump along with stack backtrace would make the
> "scheduling while atomic" message more helpful. Use show_regs()
> instead of dump_stack() for this. We already know we're atomic in here
> (that is why this function was called) so show_regs()'s atomicity
> expectations are guaranteed.
>
> Also, modify the output of the "BUG: scheduling while atomic:" header
> a bit to keep task->comm and task->pid together and preempt_count()
> after them.

thanks, applied.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-10-22 14:37    [W:0.695 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site