diff options
author | Steven Rostedt (Red Hat) <[email protected]> | 2014-06-19 17:33:31 -0400 |
---|---|---|
committer | Steven Rostedt <[email protected]> | 2014-11-19 22:01:21 -0500 |
commit | afdc34a3d3b823a12a93b822ee1efb566f884032 (patch) | |
tree | d770a2806476751adba361918edb8826762db730 /tools/perf/scripts/python | |
parent | 8d58e99af5980d444948720977b0976455885391 (diff) |
printk: Add per_cpu printk func to allow printk to be diverted
Being able to divert printk to call another function besides the normal
logging is useful for such things like NMI handling. If some functions
are to be called from NMI that does printk() it is possible to lock up
the box if the nmi handler triggers when another printk is happening.
One example of this use is to perform a stack trace on all CPUs via NMI.
But if the NMI is to do the printk() it can cause the system to lock up.
By allowing the printk to be diverted to another function that can safely
record the printk output and then print it when it in a safe context
then NMIs will be safe to call these functions like show_regs().
Link: http://lkml.kernel.org/p/[email protected]
Tested-by: Jiri Kosina <[email protected]>
Acked-by: Jiri Kosina <[email protected]>
Acked-by: Paul E. McKenney <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions