Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121055
b: refs/heads/master
c: 69f698a
h: refs/heads/master
i:
  121053: 6bfbf66
  121051: 1d74e55
  121047: 45ab282
  121039: 6c2f028
  121023: 1013ccd
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Nov 4, 2008
1 parent f3b8333 commit dc5d475
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2a866f9344cb30d7ddf5d67b5b8393daf8bef07
refs/heads/master: 69f698adcf43930a283f630395a1bb781962cfe6
18 changes: 17 additions & 1 deletion trunk/drivers/char/sysrq.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,22 @@ static struct sysrq_key_op sysrq_showstate_blocked_op = {
.enable_mask = SYSRQ_ENABLE_DUMP,
};

#ifdef CONFIG_TRACING
#include <linux/ftrace.h>

static void sysrq_ftrace_dump(int key, struct tty_struct *tty)
{
ftrace_dump();
}
static struct sysrq_key_op sysrq_ftrace_dump_op = {
.handler = sysrq_ftrace_dump,
.help_msg = "dumpZ-ftrace-buffer",
.action_msg = "Dump ftrace buffer",
.enable_mask = SYSRQ_ENABLE_DUMP,
};
#else
#define sysrq_ftrace_dump_op (*(struct sysrq_key_op *)0)
#endif

static void sysrq_handle_showmem(int key, struct tty_struct *tty)
{
Expand Down Expand Up @@ -406,7 +422,7 @@ static struct sysrq_key_op *sysrq_key_table[36] = {
NULL, /* x */
/* y: May be registered on sparc64 for global register dump */
NULL, /* y */
NULL /* z */
&sysrq_ftrace_dump_op, /* z */
};

/* key2index calculation, -1 on invalid index */
Expand Down

0 comments on commit dc5d475

Please sign in to comment.