]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/x86/um/sysrq_64.c
sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
[mirror_ubuntu-artful-kernel.git] / arch / x86 / um / sysrq_64.c
CommitLineData
1da177e4
LT
1/*
2 * Copyright 2003 PathScale, Inc.
3 *
4 * Licensed under the GPL
5 */
6
95906b24
JD
7#include <linux/kernel.h>
8#include <linux/module.h>
9#include <linux/sched.h>
b17b0153 10#include <linux/sched/debug.h>
95906b24
JD
11#include <linux/utsname.h>
12#include <asm/current.h>
13#include <asm/ptrace.h>
382d95fd 14#include <asm/sysrq.h>
1da177e4 15
9d1ee8ce 16void show_regs(struct pt_regs *regs)
1da177e4
LT
17{
18 printk("\n");
19 print_modules();
95906b24 20 printk(KERN_INFO "Pid: %d, comm: %.20s %s %s\n", task_pid_nr(current),
19c5870c 21 current->comm, print_tainted(), init_utsname()->release);
95906b24 22 printk(KERN_INFO "RIP: %04lx:[<%016lx>]\n", PT_REGS_CS(regs) & 0xffff,
243412be 23 PT_REGS_IP(regs));
f67aa2ff 24 printk(KERN_INFO "RSP: %016lx EFLAGS: %08lx\n", PT_REGS_SP(regs),
1da177e4 25 PT_REGS_EFLAGS(regs));
95906b24 26 printk(KERN_INFO "RAX: %016lx RBX: %016lx RCX: %016lx\n",
243412be 27 PT_REGS_AX(regs), PT_REGS_BX(regs), PT_REGS_CX(regs));
95906b24 28 printk(KERN_INFO "RDX: %016lx RSI: %016lx RDI: %016lx\n",
243412be 29 PT_REGS_DX(regs), PT_REGS_SI(regs), PT_REGS_DI(regs));
95906b24 30 printk(KERN_INFO "RBP: %016lx R08: %016lx R09: %016lx\n",
243412be 31 PT_REGS_BP(regs), PT_REGS_R8(regs), PT_REGS_R9(regs));
95906b24 32 printk(KERN_INFO "R10: %016lx R11: %016lx R12: %016lx\n",
1da177e4 33 PT_REGS_R10(regs), PT_REGS_R11(regs), PT_REGS_R12(regs));
95906b24 34 printk(KERN_INFO "R13: %016lx R14: %016lx R15: %016lx\n",
1da177e4
LT
35 PT_REGS_R13(regs), PT_REGS_R14(regs), PT_REGS_R15(regs));
36}