Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
lockdep_internals.h File Reference
#include "lockdep_states.h"

Go to the source code of this file.

Macros

#define LOCKDEP_STATE(__STATE)
 
#define __LOCKF(__STATE)   LOCKF_##__STATE = (1 << LOCK_##__STATE),
 
#define LOCKDEP_STATE(__STATE)
 
#define LOCKF_ENABLED_IRQ   (LOCKF_ENABLED_HARDIRQ | LOCKF_ENABLED_SOFTIRQ)
 
#define LOCKF_USED_IN_IRQ   (LOCKF_USED_IN_HARDIRQ | LOCKF_USED_IN_SOFTIRQ)
 
#define LOCKF_ENABLED_IRQ_READ   (LOCKF_ENABLED_HARDIRQ_READ | LOCKF_ENABLED_SOFTIRQ_READ)
 
#define LOCKF_USED_IN_IRQ_READ   (LOCKF_USED_IN_HARDIRQ_READ | LOCKF_USED_IN_SOFTIRQ_READ)
 
#define MAX_LOCKDEP_ENTRIES   16384UL
 
#define MAX_LOCKDEP_CHAINS_BITS   15
 
#define MAX_LOCKDEP_CHAINS   (1UL << MAX_LOCKDEP_CHAINS_BITS)
 
#define MAX_LOCKDEP_CHAIN_HLOCKS   (MAX_LOCKDEP_CHAINS*5)
 
#define MAX_STACK_TRACE_ENTRIES   262144UL
 
#define LOCK_USAGE_CHARS   (1+LOCK_USAGE_STATES/2)
 
#define __debug_atomic_inc(ptr)   do { } while (0)
 
#define debug_atomic_inc(ptr)   do { } while (0)
 
#define debug_atomic_dec(ptr)   do { } while (0)
 
#define debug_atomic_read(ptr)   0
 

Enumerations

enum  lock_usage_bit { LOCK_USED, LOCK_USAGE_STATES }
 
enum  
 

Functions

void get_usage_chars (struct lock_class *class, char usage[LOCK_USAGE_CHARS])
 
const char__get_key_name (struct lockdep_subclass_key *key, char *str)
 
struct lock_class * lock_chain_get_class (struct lock_chain *chain, int i)
 

Variables

struct list_head all_lock_classes
 
struct lock_chain lock_chains []
 
unsigned long nr_lock_classes
 
unsigned long nr_list_entries
 
unsigned long nr_lock_chains
 
int nr_chain_hlocks
 
unsigned long nr_stack_trace_entries
 
unsigned int nr_hardirq_chains
 
unsigned int nr_softirq_chains
 
unsigned int nr_process_chains
 
unsigned int max_lockdep_depth
 
unsigned int max_recursion_depth
 
unsigned int max_bfs_queue_depth
 

Macro Definition Documentation

#define __debug_atomic_inc (   ptr)    do { } while (0)

Definition at line 166 of file lockdep_internals.h.

#define __LOCKF (   __STATE)    LOCKF_##__STATE = (1 << LOCK_##__STATE),

Definition at line 27 of file lockdep_internals.h.

#define debug_atomic_dec (   ptr)    do { } while (0)

Definition at line 168 of file lockdep_internals.h.

#define debug_atomic_inc (   ptr)    do { } while (0)

Definition at line 167 of file lockdep_internals.h.

#define debug_atomic_read (   ptr)    0

Definition at line 169 of file lockdep_internals.h.

#define LOCK_USAGE_CHARS   (1+LOCK_USAGE_STATES/2)

Definition at line 73 of file lockdep_internals.h.

#define LOCKDEP_STATE (   __STATE)
Value:
LOCK_USED_IN_##__STATE, \
LOCK_USED_IN_##__STATE##_READ, \
LOCK_ENABLED_##__STATE, \
LOCK_ENABLED_##__STATE##_READ,

Definition at line 30 of file lockdep_internals.h.

#define LOCKDEP_STATE (   __STATE)
Value:
__LOCKF(USED_IN_##__STATE) \
__LOCKF(USED_IN_##__STATE##_READ) \
__LOCKF(ENABLED_##__STATE) \
__LOCKF(ENABLED_##__STATE##_READ)

Definition at line 30 of file lockdep_internals.h.

#define LOCKF_ENABLED_IRQ   (LOCKF_ENABLED_HARDIRQ | LOCKF_ENABLED_SOFTIRQ)

Definition at line 40 of file lockdep_internals.h.

#define LOCKF_ENABLED_IRQ_READ   (LOCKF_ENABLED_HARDIRQ_READ | LOCKF_ENABLED_SOFTIRQ_READ)

Definition at line 43 of file lockdep_internals.h.

#define LOCKF_USED_IN_IRQ   (LOCKF_USED_IN_HARDIRQ | LOCKF_USED_IN_SOFTIRQ)

Definition at line 41 of file lockdep_internals.h.

#define LOCKF_USED_IN_IRQ_READ   (LOCKF_USED_IN_HARDIRQ_READ | LOCKF_USED_IN_SOFTIRQ_READ)

Definition at line 45 of file lockdep_internals.h.

#define MAX_LOCKDEP_CHAIN_HLOCKS   (MAX_LOCKDEP_CHAINS*5)

Definition at line 62 of file lockdep_internals.h.

#define MAX_LOCKDEP_CHAINS   (1UL << MAX_LOCKDEP_CHAINS_BITS)

Definition at line 60 of file lockdep_internals.h.

#define MAX_LOCKDEP_CHAINS_BITS   15

Definition at line 59 of file lockdep_internals.h.

#define MAX_LOCKDEP_ENTRIES   16384UL

Definition at line 57 of file lockdep_internals.h.

#define MAX_STACK_TRACE_ENTRIES   262144UL

Definition at line 68 of file lockdep_internals.h.

Enumeration Type Documentation

anonymous enum

Definition at line 29 of file lockdep_internals.h.

Enumerator:
LOCK_USED 
LOCK_USAGE_STATES 

Definition at line 12 of file lockdep_internals.h.

Function Documentation

const char* __get_key_name ( struct lockdep_subclass_key *  key,
char str 
)

Definition at line 465 of file lockdep.c.

void get_usage_chars ( struct lock_class *  class,
char  usage[LOCK_USAGE_CHARS] 
)

Definition at line 490 of file lockdep.c.

struct lock_class* lock_chain_get_class ( struct lock_chain *  chain,
int  i 
)
read

Variable Documentation

struct list_head all_lock_classes
struct lock_chain lock_chains[]
unsigned int max_bfs_queue_depth
unsigned int max_lockdep_depth

Definition at line 425 of file lockdep.c.

unsigned int max_recursion_depth
int nr_chain_hlocks
unsigned int nr_hardirq_chains

Definition at line 422 of file lockdep.c.

unsigned long nr_list_entries

Definition at line 128 of file lockdep.c.

unsigned long nr_lock_chains
unsigned long nr_lock_classes

Definition at line 137 of file lockdep.c.

unsigned int nr_process_chains

Definition at line 424 of file lockdep.c.

unsigned int nr_softirq_chains

Definition at line 423 of file lockdep.c.

unsigned long nr_stack_trace_entries

Definition at line 380 of file lockdep.c.