Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dwarf.c File Reference
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/list.h>
#include <linux/mempool.h>
#include <linux/mm.h>
#include <linux/elf.h>
#include <linux/ftrace.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <asm/dwarf.h>
#include <asm/unwinder.h>
#include <asm/sections.h>
#include <asm/unaligned.h>
#include <asm/stacktrace.h>

Go to the source code of this file.

Macros

#define DWARF_FRAME_MIN_REQ   2
 
#define DWARF_REG_MIN_REQ   (DWARF_FRAME_MIN_REQ * 4)
 

Functions

struct dwarf_fde * dwarf_lookup_fde (unsigned long pc)
 
void dwarf_free_frame (struct dwarf_frame *frame)
 
void ret_from_irq (void)
 
struct dwarf_frame * dwarf_unwind_stack (unsigned long pc, struct dwarf_frame *prev)
 
 early_initcall (dwarf_unwinder_init)
 

Macro Definition Documentation

#define DWARF_FRAME_MIN_REQ   2

Definition at line 34 of file dwarf.c.

#define DWARF_REG_MIN_REQ   (DWARF_FRAME_MIN_REQ * 4)

Definition at line 36 of file dwarf.c.

Function Documentation

void dwarf_free_frame ( struct dwarf_frame *  frame)

dwarf_free_frame - free the memory allocated for : the frame to free

Definition at line 559 of file dwarf.c.

struct dwarf_fde* dwarf_lookup_fde ( unsigned long  pc)
read

dwarf_lookup_fde - locate the FDE that covers pc : the program counter

Definition at line 350 of file dwarf.c.

struct dwarf_frame* dwarf_unwind_stack ( unsigned long  pc,
struct dwarf_frame *  prev 
)
read

dwarf_unwind_stack - unwind the stack

: address of the function to unwind : struct dwarf_frame of the previous stackframe on the callstack

Return a struct dwarf_frame representing the most recent frame on the callstack. Each of the lower (older) stack frames are linked via the "prev" member.

Definition at line 577 of file dwarf.c.

early_initcall ( dwarf_unwinder_init  )
void ret_from_irq ( void  )