1 #ifndef _LIBLOCKDEP_LOCKDEP_H_
2 #define _LIBLOCKDEP_LOCKDEP_H_
5 #include <sys/syscall.h>
8 #include <linux/utsname.h>
11 #define MAX_LOCK_DEPTH 2000UL
13 #include "../../../include/linux/lockdep.h"
18 unsigned int lockdep_recursion
;
19 struct held_lock held_locks
[MAX_LOCK_DEPTH
];
20 gfp_t lockdep_reclaim_gfp
;
25 extern struct task_struct
*__curr(void);
27 #define current (__curr())
29 #define debug_locks_off() 1
30 #define task_pid_nr(tsk) ((tsk)->pid)
32 #define KSYM_NAME_LEN 128
35 #define list_del_rcu list_del
37 #define atomic_t unsigned long
38 #define atomic_inc(x) ((*(x))++)
40 static struct new_utsname
*init_utsname(void)
42 static struct new_utsname n
= (struct new_utsname
) {
43 .release
= "liblockdep",
44 .version
= LIBLOCKDEP_VERSION
,
50 #define print_tainted() ""
51 #define static_obj(x) 1
53 #define debug_show_all_locks()