#include <linux/mutex.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/kallsyms.h>
#include <linux/interrupt.h>
#include <linux/stacktrace.h>
#include <linux/debug_locks.h>
#include <linux/irqflags.h>
#include <linux/utsname.h>
#include <linux/hash.h>
#include <linux/ftrace.h>
#include <linux/stringify.h>
#include <linux/bitops.h>
#include <linux/gfp.h>
#include <linux/kmemcheck.h>
#include <asm/sections.h>
#include "lockdep_internals.h"
#include <trace/events/lock.h>
#include "lockdep_states.h"
Go to the source code of this file.
|
| LIST_HEAD (all_lock_classes) |
|
void | lockdep_off (void) |
|
| EXPORT_SYMBOL (lockdep_off) |
|
void | lockdep_on (void) |
|
| EXPORT_SYMBOL (lockdep_on) |
|
const char * | __get_key_name (struct lockdep_subclass_key *key, char *str) |
|
void | get_usage_chars (struct lock_class *class, char usage[LOCK_USAGE_CHARS]) |
|
void | lockdep_trace_alloc (gfp_t gfp_mask) |
|
void | lockdep_init_map (struct lockdep_map *lock, const char *name, struct lock_class_key *key, int subclass) |
|
| EXPORT_SYMBOL_GPL (lockdep_init_map) |
|
void | lock_set_class (struct lockdep_map *lock, const char *name, struct lock_class_key *key, unsigned int subclass, unsigned long ip) |
|
| EXPORT_SYMBOL_GPL (lock_set_class) |
|
void | lock_acquire (struct lockdep_map *lock, unsigned int subclass, int trylock, int read, int check, struct lockdep_map *nest_lock, unsigned long ip) |
|
| EXPORT_SYMBOL_GPL (lock_acquire) |
|
void | lock_release (struct lockdep_map *lock, int nested, unsigned long ip) |
|
| EXPORT_SYMBOL_GPL (lock_release) |
|
int | lock_is_held (struct lockdep_map *lock) |
|
| EXPORT_SYMBOL_GPL (lock_is_held) |
|
void | lockdep_set_current_reclaim_state (gfp_t gfp_mask) |
|
void | lockdep_clear_current_reclaim_state (void) |
|
void | lockdep_reset (void) |
|
void | lockdep_free_key_range (void *start, unsigned long size) |
|
void | lockdep_reset_lock (struct lockdep_map *lock) |
|
void | lockdep_init (void) |
|
void __init | lockdep_info (void) |
|
void | debug_check_no_locks_freed (const void *mem_from, unsigned long mem_len) |
|
| EXPORT_SYMBOL_GPL (debug_check_no_locks_freed) |
|
void | debug_check_no_locks_held (struct task_struct *task) |
|
void | debug_show_all_locks (void) |
|
| EXPORT_SYMBOL_GPL (debug_show_all_locks) |
|
void | debug_show_held_locks (struct task_struct *task) |
|
| EXPORT_SYMBOL_GPL (debug_show_held_locks) |
|
void | lockdep_sys_exit (void) |
|
void | lockdep_rcu_suspicious (const char *file, const int line, const char *s) |
|
| EXPORT_SYMBOL_GPL (lockdep_rcu_suspicious) |
|
#define __USAGE |
( |
|
__STATE | ) |
|
Value:[LOCK_USED_IN_##__STATE] =
"IN-"__stringify(__STATE)
"-W", \
[LOCK_ENABLED_##__STATE] =
__stringify(__STATE)
"-ON-W", \
[LOCK_USED_IN_##__STATE##_READ] =
"IN-"__stringify(__STATE)
"-R",\
[LOCK_ENABLED_##__STATE##_READ] =
__stringify(__STATE)
"-ON-R",
Definition at line 451 of file lockdep.c.
#define CHAINHASH_SIZE (1UL << CHAINHASH_BITS) |
#define CLASSHASH_BITS (MAX_LOCKDEP_KEYS_BITS - 1) |
#define CLASSHASH_SIZE (1UL << CLASSHASH_BITS) |
#define CREATE_TRACE_POINTS |
#define DISABLE_BRANCH_PROFILING |
#define HARDIRQ_VERBOSE 0 |
#define iterate_chain_key |
( |
|
key1, |
|
|
|
key2 |
|
) |
| |
Value:(((key1) << MAX_LOCKDEP_KEYS_BITS) ^ \
((key1) >> (64-MAX_LOCKDEP_KEYS_BITS)) ^ \
(key2))
Definition at line 314 of file lockdep.c.
#define LOCKDEP_STATE |
( |
|
__STATE | ) |
__USAGE(__STATE) |
#define LOCKDEP_STATE |
( |
|
__STATE | ) |
|
Value:usage[
i++] = get_usage_char(
class, LOCK_USED_IN_##__STATE); \
usage[
i++] = get_usage_char(
class, LOCK_USED_IN_##__STATE##_READ);
#define LOCKDEP_STATE |
( |
|
__STATE | ) |
|
Value:case LOCK_USED_IN_##__STATE: \
case LOCK_USED_IN_##__STATE##_READ: \
case LOCK_ENABLED_##__STATE: \
case LOCK_ENABLED_##__STATE##_READ:
#define RECLAIM_VERBOSE 0 |
#define SOFTIRQ_VERBOSE 0 |
void get_usage_chars |
( |
struct lock_class * |
class, |
|
|
char |
usage[LOCK_USAGE_CHARS] |
|
) |
| |
int lock_is_held |
( |
struct lockdep_map * |
lock | ) |
|
void lockdep_clear_current_reclaim_state |
( |
void |
| ) |
|
void lockdep_free_key_range |
( |
void * |
start, |
|
|
unsigned long |
size |
|
) |
| |
void lockdep_reset_lock |
( |
struct lockdep_map * |
lock | ) |
|
void lockdep_set_current_reclaim_state |
( |
gfp_t |
gfp_mask | ) |
|
unsigned int max_lockdep_depth |
unsigned int nr_hardirq_chains |
unsigned long nr_list_entries |
unsigned long nr_lock_classes |
unsigned int nr_process_chains |
unsigned int nr_softirq_chains |
unsigned long nr_stack_trace_entries |