diff options
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index c4582a6ea953..257f21a76c52 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -42,12 +42,14 @@ | |||
42 | #include <linux/hash.h> | 42 | #include <linux/hash.h> |
43 | #include <linux/ftrace.h> | 43 | #include <linux/ftrace.h> |
44 | #include <linux/stringify.h> | 44 | #include <linux/stringify.h> |
45 | #include <trace/lockdep.h> | ||
46 | 45 | ||
47 | #include <asm/sections.h> | 46 | #include <asm/sections.h> |
48 | 47 | ||
49 | #include "lockdep_internals.h" | 48 | #include "lockdep_internals.h" |
50 | 49 | ||
50 | #define CREATE_TRACE_POINTS | ||
51 | #include <trace/lockdep.h> | ||
52 | |||
51 | #ifdef CONFIG_PROVE_LOCKING | 53 | #ifdef CONFIG_PROVE_LOCKING |
52 | int prove_locking = 1; | 54 | int prove_locking = 1; |
53 | module_param(prove_locking, int, 0644); | 55 | module_param(prove_locking, int, 0644); |
@@ -2929,8 +2931,6 @@ void lock_set_class(struct lockdep_map *lock, const char *name, | |||
2929 | } | 2931 | } |
2930 | EXPORT_SYMBOL_GPL(lock_set_class); | 2932 | EXPORT_SYMBOL_GPL(lock_set_class); |
2931 | 2933 | ||
2932 | DEFINE_TRACE(lock_acquire); | ||
2933 | |||
2934 | /* | 2934 | /* |
2935 | * We are not always called with irqs disabled - do that here, | 2935 | * We are not always called with irqs disabled - do that here, |
2936 | * and also avoid lockdep recursion: | 2936 | * and also avoid lockdep recursion: |
@@ -2957,8 +2957,6 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass, | |||
2957 | } | 2957 | } |
2958 | EXPORT_SYMBOL_GPL(lock_acquire); | 2958 | EXPORT_SYMBOL_GPL(lock_acquire); |
2959 | 2959 | ||
2960 | DEFINE_TRACE(lock_release); | ||
2961 | |||
2962 | void lock_release(struct lockdep_map *lock, int nested, | 2960 | void lock_release(struct lockdep_map *lock, int nested, |
2963 | unsigned long ip) | 2961 | unsigned long ip) |
2964 | { | 2962 | { |
@@ -3061,8 +3059,6 @@ found_it: | |||
3061 | put_lock_stats(stats); | 3059 | put_lock_stats(stats); |
3062 | } | 3060 | } |
3063 | 3061 | ||
3064 | DEFINE_TRACE(lock_acquired); | ||
3065 | |||
3066 | static void | 3062 | static void |
3067 | __lock_acquired(struct lockdep_map *lock, unsigned long ip) | 3063 | __lock_acquired(struct lockdep_map *lock, unsigned long ip) |
3068 | { | 3064 | { |
@@ -3118,8 +3114,6 @@ found_it: | |||
3118 | lock->ip = ip; | 3114 | lock->ip = ip; |
3119 | } | 3115 | } |
3120 | 3116 | ||
3121 | DEFINE_TRACE(lock_contended); | ||
3122 | |||
3123 | void lock_contended(struct lockdep_map *lock, unsigned long ip) | 3117 | void lock_contended(struct lockdep_map *lock, unsigned long ip) |
3124 | { | 3118 | { |
3125 | unsigned long flags; | 3119 | unsigned long flags; |