Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
backtrace.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  BacktraceIterator
 
struct  CallerLocation
 

Typedefs

typedef bool(* BacktraceMemoryReader )(void *result, unsigned long address, unsigned int size, void *extra)
 

Enumerations

enum  CallerPCLocation { PC_LOC_UNKNOWN, PC_LOC_IN_LR, PC_LOC_ON_STACK }
 
enum  CallerSPLocation { SP_LOC_UNKNOWN, SP_LOC_IN_R52, SP_LOC_OFFSET }
 
enum  { ONE_BUNDLE_AGO_FLAG = 1, PC_IN_LR_FLAG = 2, NUM_INFO_OP_FLAGS = 2, MAX_INFO_OPS_PER_BUNDLE = 2 }
 
enum  { CALLER_UNKNOWN_BASE = 2, CALLER_SP_IN_R52_BASE = 4, CALLER_SP_OFFSET_BASE = 8 }
 

Functions

void backtrace_init (BacktraceIterator *state, BacktraceMemoryReader read_memory_func, void *read_memory_func_extra, unsigned long pc, unsigned long lr, unsigned long sp, unsigned long r52)
 
bool backtrace_next (BacktraceIterator *state)
 

Typedef Documentation

typedef bool(* BacktraceMemoryReader)(void *result, unsigned long address, unsigned int size, void *extra)

Definition at line 23 of file backtrace.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
ONE_BUNDLE_AGO_FLAG 
PC_IN_LR_FLAG 
NUM_INFO_OP_FLAGS 
MAX_INFO_OPS_PER_BUNDLE 

Definition at line 81 of file backtrace.h.

anonymous enum
Enumerator:
CALLER_UNKNOWN_BASE 
CALLER_SP_IN_R52_BASE 
CALLER_SP_OFFSET_BASE 

Definition at line 103 of file backtrace.h.

Enumerator:
PC_LOC_UNKNOWN 
PC_LOC_IN_LR 
PC_LOC_ON_STACK 

Definition at line 50 of file backtrace.h.

Enumerator:
SP_LOC_UNKNOWN 
SP_LOC_IN_R52 
SP_LOC_OFFSET 

Definition at line 64 of file backtrace.h.

Function Documentation

void backtrace_init ( BacktraceIterator state,
BacktraceMemoryReader  read_memory_func,
void read_memory_func_extra,
unsigned long  pc,
unsigned long  lr,
unsigned long  sp,
unsigned long  r52 
)

Definition at line 547 of file backtrace.c.

bool backtrace_next ( BacktraceIterator state)

Definition at line 633 of file backtrace.c.