Linux Kernel
3.7.1
|
#include <linux/debugobjects.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/hash.h>
Go to the source code of this file.
Data Structures | |
struct | debug_bucket |
Macros | |
#define | ODEBUG_HASH_BITS 14 |
#define | ODEBUG_HASH_SIZE (1 << ODEBUG_HASH_BITS) |
#define | ODEBUG_POOL_SIZE 512 |
#define | ODEBUG_POOL_MIN_LEVEL 256 |
#define | ODEBUG_CHUNK_SHIFT PAGE_SHIFT |
#define | ODEBUG_CHUNK_SIZE (1 << ODEBUG_CHUNK_SHIFT) |
#define | ODEBUG_CHUNK_MASK (~(ODEBUG_CHUNK_SIZE - 1)) |
Functions | |
early_param ("debug_objects", enable_object_debug) | |
early_param ("no_debug_objects", disable_object_debug) | |
void | debug_object_init (void *addr, struct debug_obj_descr *descr) |
void | debug_object_init_on_stack (void *addr, struct debug_obj_descr *descr) |
void | debug_object_activate (void *addr, struct debug_obj_descr *descr) |
void | debug_object_deactivate (void *addr, struct debug_obj_descr *descr) |
void | debug_object_destroy (void *addr, struct debug_obj_descr *descr) |
void | debug_object_free (void *addr, struct debug_obj_descr *descr) |
void | debug_object_assert_init (void *addr, struct debug_obj_descr *descr) |
void | debug_object_active_state (void *addr, struct debug_obj_descr *descr, unsigned int expect, unsigned int next) |
void __init | debug_objects_early_init (void) |
void __init | debug_objects_mem_init (void) |
#define ODEBUG_CHUNK_MASK (~(ODEBUG_CHUNK_SIZE - 1)) |
Definition at line 26 of file debugobjects.c.
#define ODEBUG_CHUNK_SHIFT PAGE_SHIFT |
Definition at line 24 of file debugobjects.c.
#define ODEBUG_CHUNK_SIZE (1 << ODEBUG_CHUNK_SHIFT) |
Definition at line 25 of file debugobjects.c.
#define ODEBUG_HASH_BITS 14 |
Definition at line 18 of file debugobjects.c.
#define ODEBUG_HASH_SIZE (1 << ODEBUG_HASH_BITS) |
Definition at line 19 of file debugobjects.c.
#define ODEBUG_POOL_MIN_LEVEL 256 |
Definition at line 22 of file debugobjects.c.
#define ODEBUG_POOL_SIZE 512 |
Definition at line 21 of file debugobjects.c.
void debug_object_activate | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_activate - debug checks when an object is activated : address of the object : pointer to an object specific debug description structure
Definition at line 386 of file debugobjects.c.
void debug_object_active_state | ( | void * | addr, |
struct debug_obj_descr * | descr, | ||
unsigned int | expect, | ||
unsigned int | next | ||
) |
debug_object_active_state - debug checks object usage state machine : address of the object : pointer to an object specific debug description structure : expected state : state to move to if expected state is found
Definition at line 618 of file debugobjects.c.
void debug_object_assert_init | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_assert_init - debug checks when object should be init-ed : address of the object : pointer to an object specific debug description structure
Definition at line 577 of file debugobjects.c.
void debug_object_deactivate | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_deactivate - debug checks when an object is deactivated : address of the object : pointer to an object specific debug description structure
Definition at line 444 of file debugobjects.c.
void debug_object_destroy | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_destroy - debug checks when an object is destroyed : address of the object : pointer to an object specific debug description structure
Definition at line 491 of file debugobjects.c.
void debug_object_free | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_free - debug checks when an object is freed : address of the object : pointer to an object specific debug description structure
Definition at line 537 of file debugobjects.c.
void debug_object_init | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_init - debug checks when an object is initialized : address of the object : pointer to an object specific debug description structure
Definition at line 359 of file debugobjects.c.
void debug_object_init_on_stack | ( | void * | addr, |
struct debug_obj_descr * | descr | ||
) |
debug_object_init_on_stack - debug checks when an object on stack is initialized : address of the object : pointer to an object specific debug description structure
Definition at line 373 of file debugobjects.c.
Definition at line 999 of file debugobjects.c.
Definition at line 1073 of file debugobjects.c.
early_param | ( | "debug_objects" | , |
enable_object_debug | |||
) |
early_param | ( | "no_debug_objects" | , |
disable_object_debug | |||
) |