Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
kdb_support.c File Reference
#include <stdarg.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/kallsyms.h>
#include <linux/stddef.h>
#include <linux/vmalloc.h>
#include <linux/ptrace.h>
#include <linux/module.h>
#include <linux/highmem.h>
#include <linux/hardirq.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/kdb.h>
#include <linux/slab.h>
#include "kdb_private.h"

Go to the source code of this file.

Data Structures

struct  debug_alloc_header
 

Macros

#define knt1_size   128 /* must be >= kallsyms table size */
 
#define UNRUNNABLE   (1UL << (8*sizeof(unsigned long) - 1))
 
#define RUNNING   (1UL << (8*sizeof(unsigned long) - 2))
 
#define IDLE   (1UL << (8*sizeof(unsigned long) - 3))
 
#define DAEMON   (1UL << (8*sizeof(unsigned long) - 4))
 
#define dah_align   8
 
#define dah_overhead   ALIGN(sizeof(struct debug_alloc_header), dah_align)
 

Functions

int kdbgetsymval (const char *symname, kdb_symtab_t *symtab)
 
 EXPORT_SYMBOL (kdbgetsymval)
 
int kdbnearsym (unsigned long addr, kdb_symtab_t *symtab)
 
void kdbnearsym_cleanup (void)
 
int kallsyms_symbol_complete (char *prefix_name, int max_len)
 
int kallsyms_symbol_next (char *prefix_name, int flag)
 
void kdb_symbol_print (unsigned long addr, const kdb_symtab_t *symtab_p, unsigned int punc)
 
charkdb_strdup (const char *str, gfp_t type)
 
int kdb_getarea_size (void *res, unsigned long addr, size_t size)
 
int kdb_putarea_size (unsigned long addr, void *res, size_t size)
 
int kdb_getphysword (unsigned long *word, unsigned long addr, size_t size)
 
int kdb_getword (unsigned long *word, unsigned long addr, size_t size)
 
int kdb_putword (unsigned long addr, unsigned long word, size_t size)
 
unsigned long kdb_task_state_string (const char *s)
 
char kdb_task_state_char (const struct task_struct *p)
 
unsigned long kdb_task_state (const struct task_struct *p, unsigned long mask)
 
void kdb_print_nameval (const char *name, unsigned long val)
 
voiddebug_kmalloc (size_t size, gfp_t flags)
 
void debug_kfree (void *p)
 
void debug_kusage (void)
 
void kdb_save_flags (void)
 
void kdb_restore_flags (void)
 

Macro Definition Documentation

#define DAEMON   (1UL << (8*sizeof(unsigned long) - 4))

Definition at line 559 of file kdb_support.c.

#define dah_align   8

Definition at line 705 of file kdb_support.c.

#define dah_overhead   ALIGN(sizeof(struct debug_alloc_header), dah_align)

Definition at line 706 of file kdb_support.c.

#define IDLE   (1UL << (8*sizeof(unsigned long) - 3))

Definition at line 558 of file kdb_support.c.

#define knt1_size   128 /* must be >= kallsyms table size */
#define RUNNING   (1UL << (8*sizeof(unsigned long) - 2))

Definition at line 557 of file kdb_support.c.

#define UNRUNNABLE   (1UL << (8*sizeof(unsigned long) - 1))

Definition at line 556 of file kdb_support.c.

Function Documentation

void debug_kfree ( void p)

Definition at line 803 of file kdb_support.c.

void* debug_kmalloc ( size_t  size,
gfp_t  flags 
)

Definition at line 745 of file kdb_support.c.

void debug_kusage ( void  )

Definition at line 862 of file kdb_support.c.

EXPORT_SYMBOL ( kdbgetsymval  )
int kallsyms_symbol_complete ( char prefix_name,
int  max_len 
)

Definition at line 186 of file kdb_support.c.

int kallsyms_symbol_next ( char prefix_name,
int  flag 
)

Definition at line 228 of file kdb_support.c.

int kdb_getarea_size ( void res,
unsigned long  addr,
size_t  size 
)

Definition at line 326 of file kdb_support.c.

int kdb_getphysword ( unsigned long word,
unsigned long  addr,
size_t  size 
)

Definition at line 403 of file kdb_support.c.

int kdb_getword ( unsigned long word,
unsigned long  addr,
size_t  size 
)

Definition at line 453 of file kdb_support.c.

void kdb_print_nameval ( const char name,
unsigned long  val 
)

Definition at line 674 of file kdb_support.c.

int kdb_putarea_size ( unsigned long  addr,
void res,
size_t  size 
)

Definition at line 351 of file kdb_support.c.

int kdb_putword ( unsigned long  addr,
unsigned long  word,
size_t  size 
)

Definition at line 502 of file kdb_support.c.

void kdb_restore_flags ( void  )

Definition at line 923 of file kdb_support.c.

void kdb_save_flags ( void  )

Definition at line 917 of file kdb_support.c.

char* kdb_strdup ( const char str,
gfp_t  type 
)

Definition at line 307 of file kdb_support.c.

void kdb_symbol_print ( unsigned long  addr,
const kdb_symtab_t symtab_p,
unsigned int  punc 
)

Definition at line 258 of file kdb_support.c.

unsigned long kdb_task_state ( const struct task_struct p,
unsigned long  mask 
)

Definition at line 661 of file kdb_support.c.

char kdb_task_state_char ( const struct task_struct p)

Definition at line 621 of file kdb_support.c.

unsigned long kdb_task_state_string ( const char s)

Definition at line 561 of file kdb_support.c.

int kdbgetsymval ( const char symname,
kdb_symtab_t symtab 
)

Definition at line 40 of file kdb_support.c.

int kdbnearsym ( unsigned long  addr,
kdb_symtab_t symtab 
)

Definition at line 82 of file kdb_support.c.

void kdbnearsym_cleanup ( void  )

Definition at line 161 of file kdb_support.c.