Re: deadlock caused by printk
From: Steven Rostedt
Date: Fri Mar 25 2011 - 14:42:04 EST
On Fri, Mar 25, 2011 at 03:50:27PM +0100, Peter Zijlstra wrote:
> On Fri, 2011-03-25 at 22:30 +0800, Ming Lei wrote:
> >
> > But seems ftrace can't dump out the messages if system hangs,
>
> True.
Well, matters how the system hangs. Add in a nmi watchdog or other
watchdogs which can also trigger the ftrace_dump_on_oops.
>
> > so could
> > we introduce a smart and simple "printk" which can be used in any
> > contexts?
>
> I think you could use early_printk() for that, it doesn't bother with
> all the syslog muck.
>
Heh, I should have read the thread before replying to the first post ;)
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/