Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
unwind.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/kallsyms.h>
#include <linux/sort.h>
#include <asm/uaccess.h>
#include <asm/assembly.h>
#include <asm/asm-offsets.h>
#include <asm/ptrace.h>
#include <asm/unwind.h>

Go to the source code of this file.

Macros

#define dbg(x...)
 
#define KERNEL_START   (KERNEL_BINARY_TEXT_START)
 
#define get_func_addr(fptr)   fptr[0]
 

Functions

struct unwind_tableunwind_table_add (const char *name, unsigned long base_addr, unsigned long gp, void *start, void *end)
 
void unwind_table_remove (struct unwind_table *table)
 
int unwind_init (void)
 
void unwind_frame_init (struct unwind_frame_info *info, struct task_struct *t, struct pt_regs *regs)
 
void unwind_frame_init_from_blocked_task (struct unwind_frame_info *info, struct task_struct *t)
 
void unwind_frame_init_running (struct unwind_frame_info *info, struct pt_regs *regs)
 
int unwind_once (struct unwind_frame_info *next_frame)
 
int unwind_to_user (struct unwind_frame_info *info)
 
unsigned long return_address (unsigned int level)
 

Variables

struct unwind_table_entry __start___unwind []
 
struct unwind_table_entry __stop___unwind []
 

Macro Definition Documentation

#define dbg (   x...)

Definition at line 29 of file unwind.c.

#define get_func_addr (   fptr)    fptr[0]

Definition at line 205 of file unwind.c.

#define KERNEL_START   (KERNEL_BINARY_TEXT_START)

Definition at line 32 of file unwind.c.

Function Documentation

unsigned long return_address ( unsigned int  level)
inline

Definition at line 419 of file unwind.c.

void unwind_frame_init ( struct unwind_frame_info info,
struct task_struct t,
struct pt_regs regs 
)

Definition at line 354 of file unwind.c.

void unwind_frame_init_from_blocked_task ( struct unwind_frame_info info,
struct task_struct t 
)

Definition at line 368 of file unwind.c.

void unwind_frame_init_running ( struct unwind_frame_info info,
struct pt_regs regs 
)

Definition at line 383 of file unwind.c.

int unwind_init ( void  )

Definition at line 171 of file unwind.c.

int unwind_once ( struct unwind_frame_info next_frame)

Definition at line 388 of file unwind.c.

struct unwind_table* unwind_table_add ( const char name,
unsigned long  base_addr,
unsigned long  gp,
void start,
void end 
)
read

Definition at line 137 of file unwind.c.

void unwind_table_remove ( struct unwind_table table)

Definition at line 159 of file unwind.c.

int unwind_to_user ( struct unwind_frame_info info)

Definition at line 408 of file unwind.c.

Variable Documentation

struct unwind_table_entry __start___unwind[]
struct unwind_table_entry __stop___unwind[]