dumpstack.c (b0529becebde629ff6abf2afdca6def6824f4fa9) | dumpstack.c (99504819fc643160afd6813921b1d42b18e52a49) |
---|---|
1/* 2 * Copyright (C) 1991, 1992 Linus Torvalds 3 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs 4 */ 5#include <linux/kallsyms.h> 6#include <linux/kprobes.h> 7#include <linux/uaccess.h> 8#include <linux/utsname.h> --- 253 unchanged lines hidden (view full) --- 262 current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) 263 return 1; 264 265 print_modules(); 266 show_regs(regs); 267#ifdef CONFIG_X86_32 268 if (user_mode(regs)) { 269 sp = regs->sp; | 1/* 2 * Copyright (C) 1991, 1992 Linus Torvalds 3 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs 4 */ 5#include <linux/kallsyms.h> 6#include <linux/kprobes.h> 7#include <linux/uaccess.h> 8#include <linux/utsname.h> --- 253 unchanged lines hidden (view full) --- 262 current->thread.trap_nr, SIGSEGV) == NOTIFY_STOP) 263 return 1; 264 265 print_modules(); 266 show_regs(regs); 267#ifdef CONFIG_X86_32 268 if (user_mode(regs)) { 269 sp = regs->sp; |
270 ss = regs->ss & 0xffff; | 270 ss = regs->ss; |
271 } else { 272 sp = kernel_stack_pointer(regs); 273 savesegment(ss, ss); 274 } 275 printk(KERN_EMERG "EIP: %pS SS:ESP: %04x:%08lx\n", 276 (void *)regs->ip, ss, sp); 277#else 278 /* Executive summary in case the oops scrolled away */ --- 39 unchanged lines hidden --- | 271 } else { 272 sp = kernel_stack_pointer(regs); 273 savesegment(ss, ss); 274 } 275 printk(KERN_EMERG "EIP: %pS SS:ESP: %04x:%08lx\n", 276 (void *)regs->ip, ss, sp); 277#else 278 /* Executive summary in case the oops scrolled away */ --- 39 unchanged lines hidden --- |