diff options
| -rw-r--r-- | Documentation/sysrq.txt | 2 | ||||
| -rw-r--r-- | drivers/char/sysrq.c | 2 | ||||
| -rw-r--r-- | kernel/trace/trace_functions_graph.c | 6 |
3 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/sysrq.txt b/Documentation/sysrq.txt index 10a0263ebb3f..56b53e005d18 100644 --- a/Documentation/sysrq.txt +++ b/Documentation/sysrq.txt | |||
| @@ -114,6 +114,8 @@ On all - write a character to /proc/sysrq-trigger. e.g.: | |||
| 114 | 114 | ||
| 115 | 'x' - Used by xmon interface on ppc/powerpc platforms. | 115 | 'x' - Used by xmon interface on ppc/powerpc platforms. |
| 116 | 116 | ||
| 117 | 'z' - Dump the ftrace buffer | ||
| 118 | |||
| 117 | '0'-'9' - Sets the console log level, controlling which kernel messages | 119 | '0'-'9' - Sets the console log level, controlling which kernel messages |
| 118 | will be printed to your console. ('0', for example would make | 120 | will be printed to your console. ('0', for example would make |
| 119 | it so that only emergency messages like PANICs or OOPSes would | 121 | it so that only emergency messages like PANICs or OOPSes would |
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 94966edfb44d..785a08ef9a13 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
| @@ -283,7 +283,7 @@ static void sysrq_ftrace_dump(int key, struct tty_struct *tty) | |||
| 283 | } | 283 | } |
| 284 | static struct sysrq_key_op sysrq_ftrace_dump_op = { | 284 | static struct sysrq_key_op sysrq_ftrace_dump_op = { |
| 285 | .handler = sysrq_ftrace_dump, | 285 | .handler = sysrq_ftrace_dump, |
| 286 | .help_msg = "dumpZ-ftrace-buffer", | 286 | .help_msg = "dump-ftrace-buffer(Z)", |
| 287 | .action_msg = "Dump ftrace buffer", | 287 | .action_msg = "Dump ftrace buffer", |
| 288 | .enable_mask = SYSRQ_ENABLE_DUMP, | 288 | .enable_mask = SYSRQ_ENABLE_DUMP, |
| 289 | }; | 289 | }; |
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index 4bf39fcae97a..bc7d90850be5 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
| @@ -592,6 +592,12 @@ print_graph_comment(struct print_entry *trace, struct trace_seq *s, | |||
| 592 | if (ent->flags & TRACE_FLAG_CONT) | 592 | if (ent->flags & TRACE_FLAG_CONT) |
| 593 | trace_seq_print_cont(s, iter); | 593 | trace_seq_print_cont(s, iter); |
| 594 | 594 | ||
| 595 | /* Strip ending newline */ | ||
| 596 | if (s->buffer[s->len - 1] == '\n') { | ||
| 597 | s->buffer[s->len - 1] = '\0'; | ||
| 598 | s->len--; | ||
| 599 | } | ||
| 600 | |||
| 595 | ret = trace_seq_printf(s, " */\n"); | 601 | ret = trace_seq_printf(s, " */\n"); |
| 596 | if (!ret) | 602 | if (!ret) |
| 597 | return TRACE_TYPE_PARTIAL_LINE; | 603 | return TRACE_TYPE_PARTIAL_LINE; |
