Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
dumpstack.c File Reference
#include <linux/kallsyms.h>
#include <linux/kprobes.h>
#include <linux/uaccess.h>
#include <linux/utsname.h>
#include <linux/hardirq.h>
#include <linux/kdebug.h>
#include <linux/module.h>
#include <linux/ptrace.h>
#include <linux/ftrace.h>
#include <linux/kexec.h>
#include <linux/bug.h>
#include <linux/nmi.h>
#include <linux/sysfs.h>
#include <asm/stacktrace.h>

Go to the source code of this file.

Functions

void printk_address (unsigned long address, int reliable)
 
unsigned long print_context_stack (struct thread_info *tinfo, unsigned long *stack, unsigned long bp, const struct stacktrace_ops *ops, void *data, unsigned long *end, int *graph)
 
 EXPORT_SYMBOL_GPL (print_context_stack)
 
unsigned long print_context_stack_bp (struct thread_info *tinfo, unsigned long *stack, unsigned long bp, const struct stacktrace_ops *ops, void *data, unsigned long *end, int *graph)
 
 EXPORT_SYMBOL_GPL (print_context_stack_bp)
 
void show_trace_log_lvl (struct task_struct *task, struct pt_regs *regs, unsigned long *stack, unsigned long bp, char *log_lvl)
 
void show_trace (struct task_struct *task, struct pt_regs *regs, unsigned long *stack, unsigned long bp)
 
void show_stack (struct task_struct *task, unsigned long *sp)
 
void dump_stack (void)
 
 EXPORT_SYMBOL (dump_stack)
 
unsigned __kprobes long oops_begin (void)
 
 EXPORT_SYMBOL_GPL (oops_begin)
 
void __kprobes oops_end (unsigned long flags, struct pt_regs *regs, int signr)
 
int __kprobes __die (const char *str, struct pt_regs *regs, long err)
 
void die (const char *str, struct pt_regs *regs, long err)
 
 early_param ("kstack", kstack_setup)
 
 __setup ("code_bytes=", code_bytes_setup)
 

Variables

int panic_on_unrecovered_nmi
 
int panic_on_io_nmi
 
unsigned int code_bytes = 64
 
int kstack_depth_to_print = 3 * STACKSLOTS_PER_LINE
 

Function Documentation

int __kprobes __die ( const char str,
struct pt_regs regs,
long  err 
)

Definition at line 252 of file dumpstack.c.

__setup ( )
void die ( const char str,
struct pt_regs regs,
long  err 
)

Definition at line 300 of file dumpstack.c.

void dump_stack ( void  )

Definition at line 185 of file dumpstack.c.

early_param ( "kstack"  ,
kstack_setup   
)
EXPORT_SYMBOL ( dump_stack  )
EXPORT_SYMBOL_GPL ( print_context_stack  )
EXPORT_SYMBOL_GPL ( print_context_stack_bp  )
EXPORT_SYMBOL_GPL ( oops_begin  )
unsigned __kprobes long oops_begin ( void  )

Definition at line 204 of file dumpstack.c.

void __kprobes oops_end ( unsigned long  flags,
struct pt_regs regs,
int  signr 
)

Definition at line 228 of file dumpstack.c.

unsigned long print_context_stack ( struct thread_info tinfo,
unsigned long stack,
unsigned long  bp,
const struct stacktrace_ops ops,
void data,
unsigned long end,
int graph 
)

Definition at line 89 of file dumpstack.c.

unsigned long print_context_stack_bp ( struct thread_info tinfo,
unsigned long stack,
unsigned long  bp,
const struct stacktrace_ops ops,
void data,
unsigned long end,
int graph 
)

Definition at line 117 of file dumpstack.c.

void printk_address ( unsigned long  address,
int  reliable 
)

Definition at line 28 of file dumpstack.c.

void show_stack ( struct task_struct task,
unsigned long sp 
)

Definition at line 177 of file dumpstack.c.

void show_trace ( struct task_struct task,
struct pt_regs regs,
unsigned long stack,
unsigned long  bp 
)

Definition at line 171 of file dumpstack.c.

void show_trace_log_lvl ( struct task_struct task,
struct pt_regs regs,
unsigned long stack,
unsigned long  bp,
char log_lvl 
)

Definition at line 164 of file dumpstack.c.

Variable Documentation

unsigned int code_bytes = 64

Definition at line 24 of file dumpstack.c.

int kstack_depth_to_print = 3 * STACKSLOTS_PER_LINE

Definition at line 25 of file dumpstack.c.

int panic_on_io_nmi

Definition at line 23 of file dumpstack.c.

int panic_on_unrecovered_nmi

Definition at line 22 of file dumpstack.c.