1 #ifndef _LIBLOCKDEP_LOCKDEP_H_
2 #define _LIBLOCKDEP_LOCKDEP_H_
5 #include <sys/syscall.h>
8 #include <linux/utsname.h>
9 #include <linux/compiler.h>
11 #define MAX_LOCK_DEPTH 255UL
16 #include "../../../include/linux/lockdep.h"
21 unsigned int lockdep_recursion;
22 struct held_lock held_locks[MAX_LOCK_DEPTH];
23 gfp_t lockdep_reclaim_gfp;
28 extern struct task_struct *__curr(void);
30 #define current (__curr())
32 #define debug_locks_off() 1
33 #define task_pid_nr(tsk) ((tsk)->pid)
35 #define KSYM_NAME_LEN 128
38 #define list_del_rcu list_del
40 #define atomic_t unsigned long
41 #define atomic_inc(x) ((*(x))++)
43 static struct new_utsname *init_utsname(void)
45 static struct new_utsname n = (struct new_utsname) {
46 .release = "liblockdep",
47 .version = LIBLOCKDEP_VERSION,
53 #define print_tainted() ""
54 #define static_obj(x) 1
56 #define debug_show_all_locks()
57 extern void debug_check_no_locks_held(void);