diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/um/sys-x86_64/sysrq.c | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'arch/um/sys-x86_64/sysrq.c')
| -rw-r--r-- | arch/um/sys-x86_64/sysrq.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/um/sys-x86_64/sysrq.c b/arch/um/sys-x86_64/sysrq.c new file mode 100644 index 00000000000..f4f82beb350 --- /dev/null +++ b/arch/um/sys-x86_64/sysrq.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2003 PathScale, Inc. | ||
| 3 | * | ||
| 4 | * Licensed under the GPL | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include <linux/kernel.h> | ||
| 8 | #include <linux/module.h> | ||
| 9 | #include <linux/sched.h> | ||
| 10 | #include <linux/utsname.h> | ||
| 11 | #include <asm/current.h> | ||
| 12 | #include <asm/ptrace.h> | ||
| 13 | #include "sysrq.h" | ||
| 14 | |||
| 15 | void __show_regs(struct pt_regs *regs) | ||
| 16 | { | ||
| 17 | printk("\n"); | ||
| 18 | print_modules(); | ||
| 19 | printk(KERN_INFO "Pid: %d, comm: %.20s %s %s\n", task_pid_nr(current), | ||
| 20 | current->comm, print_tainted(), init_utsname()->release); | ||
| 21 | printk(KERN_INFO "RIP: %04lx:[<%016lx>]\n", PT_REGS_CS(regs) & 0xffff, | ||
| 22 | PT_REGS_RIP(regs)); | ||
| 23 | printk(KERN_INFO "RSP: %016lx EFLAGS: %08lx\n", PT_REGS_RSP(regs), | ||
| 24 | PT_REGS_EFLAGS(regs)); | ||
| 25 | printk(KERN_INFO "RAX: %016lx RBX: %016lx RCX: %016lx\n", | ||
| 26 | PT_REGS_RAX(regs), PT_REGS_RBX(regs), PT_REGS_RCX(regs)); | ||
| 27 | printk(KERN_INFO "RDX: %016lx RSI: %016lx RDI: %016lx\n", | ||
| 28 | PT_REGS_RDX(regs), PT_REGS_RSI(regs), PT_REGS_RDI(regs)); | ||
| 29 | printk(KERN_INFO "RBP: %016lx R08: %016lx R09: %016lx\n", | ||
| 30 | PT_REGS_RBP(regs), PT_REGS_R8(regs), PT_REGS_R9(regs)); | ||
| 31 | printk(KERN_INFO "R10: %016lx R11: %016lx R12: %016lx\n", | ||
| 32 | PT_REGS_R10(regs), PT_REGS_R11(regs), PT_REGS_R12(regs)); | ||
| 33 | printk(KERN_INFO "R13: %016lx R14: %016lx R15: %016lx\n", | ||
| 34 | PT_REGS_R13(regs), PT_REGS_R14(regs), PT_REGS_R15(regs)); | ||
| 35 | } | ||
| 36 | |||
| 37 | void show_regs(struct pt_regs *regs) | ||
| 38 | { | ||
| 39 | __show_regs(regs); | ||
| 40 | show_trace(current, (unsigned long *) ®s); | ||
| 41 | } | ||
