diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-29 03:45:15 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-29 03:45:15 -0500 |
commit | e1df957670aef74ffd9a4ad93e6d2c90bf6b4845 (patch) | |
tree | bca1fcfef55b3e3e82c9a822b4ac6428fce2b419 /drivers/char/sysrq.c | |
parent | 2b583d8bc8d7105b58d7481a4a0ceb718dac49c6 (diff) | |
parent | 3c92ec8ae91ecf59d88c798301833d7cf83f2179 (diff) |
Merge branch 'linus' into perfcounters/core
Conflicts:
fs/exec.c
include/linux/init_task.h
Simple context conflicts.
Diffstat (limited to 'drivers/char/sysrq.c')
-rw-r--r-- | drivers/char/sysrq.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 52146c2a8d97..9bcf0c9848b1 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
@@ -276,6 +276,22 @@ static struct sysrq_key_op sysrq_showstate_blocked_op = { | |||
276 | .enable_mask = SYSRQ_ENABLE_DUMP, | 276 | .enable_mask = SYSRQ_ENABLE_DUMP, |
277 | }; | 277 | }; |
278 | 278 | ||
279 | #ifdef CONFIG_TRACING | ||
280 | #include <linux/ftrace.h> | ||
281 | |||
282 | static void sysrq_ftrace_dump(int key, struct tty_struct *tty) | ||
283 | { | ||
284 | ftrace_dump(); | ||
285 | } | ||
286 | static struct sysrq_key_op sysrq_ftrace_dump_op = { | ||
287 | .handler = sysrq_ftrace_dump, | ||
288 | .help_msg = "dumpZ-ftrace-buffer", | ||
289 | .action_msg = "Dump ftrace buffer", | ||
290 | .enable_mask = SYSRQ_ENABLE_DUMP, | ||
291 | }; | ||
292 | #else | ||
293 | #define sysrq_ftrace_dump_op (*(struct sysrq_key_op *)0) | ||
294 | #endif | ||
279 | 295 | ||
280 | static void sysrq_handle_showmem(int key, struct tty_struct *tty) | 296 | static void sysrq_handle_showmem(int key, struct tty_struct *tty) |
281 | { | 297 | { |
@@ -408,7 +424,7 @@ static struct sysrq_key_op *sysrq_key_table[36] = { | |||
408 | NULL, /* x */ | 424 | NULL, /* x */ |
409 | /* y: May be registered on sparc64 for global register dump */ | 425 | /* y: May be registered on sparc64 for global register dump */ |
410 | NULL, /* y */ | 426 | NULL, /* y */ |
411 | NULL /* z */ | 427 | &sysrq_ftrace_dump_op, /* z */ |
412 | }; | 428 | }; |
413 | 429 | ||
414 | /* key2index calculation, -1 on invalid index */ | 430 | /* key2index calculation, -1 on invalid index */ |