1 /* 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/pid.h> 10 #include <linux/sched.h> 11 #include <linux/sched/debug.h> 12 #include <linux/utsname.h> 13 #include <asm/current.h> 14 #include <asm/ptrace.h> 15 16 void show_regs(struct pt_regs *regs) 17 { 18 printk("\n"); 19 print_modules(); 20 printk(KERN_INFO "Pid: %d, comm: %.20s 21 current->comm, print_tainted() 22 printk(KERN_INFO "RIP: %04lx:%pS\n", P 23 (void *)PT_REGS_IP(regs)); 24 printk(KERN_INFO "RSP: %016lx EFLAGS: 25 PT_REGS_EFLAGS(regs)); 26 printk(KERN_INFO "RAX: %016lx RBX: %01 27 PT_REGS_AX(regs), PT_REGS_BX(re 28 printk(KERN_INFO "RDX: %016lx RSI: %01 29 PT_REGS_DX(regs), PT_REGS_SI(re 30 printk(KERN_INFO "RBP: %016lx R08: %01 31 PT_REGS_BP(regs), PT_REGS_R8(re 32 printk(KERN_INFO "R10: %016lx R11: %01 33 PT_REGS_R10(regs), PT_REGS_R11( 34 printk(KERN_INFO "R13: %016lx R14: %01 35 PT_REGS_R13(regs), PT_REGS_R14( 36 } 37
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.