mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
printk/tracing: Add console output tracing
Add a printk.console trace point to record any printk messages into the trace, regardless of the current console loglevel. This can help correlate (existing) printk debugging with other tracing. Link: http://lkml.kernel.org/r/[email protected] Acked-by: Frederic Weisbecker <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Ingo Molnar <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
This commit is contained in:
parent
cdfb0d30e9
commit
9510035849
2 changed files with 46 additions and 0 deletions
|
|
@ -44,6 +44,9 @@
|
|||
|
||||
#include <asm/uaccess.h>
|
||||
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/printk.h>
|
||||
|
||||
/*
|
||||
* Architectures can override it:
|
||||
*/
|
||||
|
|
@ -542,6 +545,8 @@ MODULE_PARM_DESC(ignore_loglevel, "ignore loglevel setting, to"
|
|||
static void _call_console_drivers(unsigned start,
|
||||
unsigned end, int msg_log_level)
|
||||
{
|
||||
trace_console(&LOG_BUF(0), start, end, log_buf_len);
|
||||
|
||||
if ((msg_log_level < console_loglevel || ignore_loglevel) &&
|
||||
console_drivers && start != end) {
|
||||
if ((start & LOG_BUF_MASK) > (end & LOG_BUF_MASK)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue