aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/lockdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r--kernel/lockdep.c12
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
52int prove_locking = 1; 54int prove_locking = 1;
53module_param(prove_locking, int, 0644); 55module_param(prove_locking, int, 0644);
@@ -2929,8 +2931,6 @@ void lock_set_class(struct lockdep_map *lock, const char *name,
2929} 2931}
2930EXPORT_SYMBOL_GPL(lock_set_class); 2932EXPORT_SYMBOL_GPL(lock_set_class);
2931 2933
2932DEFINE_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}
2958EXPORT_SYMBOL_GPL(lock_acquire); 2958EXPORT_SYMBOL_GPL(lock_acquire);
2959 2959
2960DEFINE_TRACE(lock_release);
2961
2962void lock_release(struct lockdep_map *lock, int nested, 2960void 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
3064DEFINE_TRACE(lock_acquired);
3065
3066static void 3062static 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
3121DEFINE_TRACE(lock_contended);
3122
3123void lock_contended(struct lockdep_map *lock, unsigned long ip) 3117void lock_contended(struct lockdep_map *lock, unsigned long ip)
3124{ 3118{
3125 unsigned long flags; 3119 unsigned long flags;