|
@@ -42,12 +42,14 @@
|
|
#include <linux/hash.h>
|
|
#include <linux/hash.h>
|
|
#include <linux/ftrace.h>
|
|
#include <linux/ftrace.h>
|
|
#include <linux/stringify.h>
|
|
#include <linux/stringify.h>
|
|
-#include <trace/lockdep.h>
|
|
|
|
|
|
|
|
#include <asm/sections.h>
|
|
#include <asm/sections.h>
|
|
|
|
|
|
#include "lockdep_internals.h"
|
|
#include "lockdep_internals.h"
|
|
|
|
|
|
|
|
+#define CREATE_TRACE_POINTS
|
|
|
|
+#include <trace/lockdep.h>
|
|
|
|
+
|
|
#ifdef CONFIG_PROVE_LOCKING
|
|
#ifdef CONFIG_PROVE_LOCKING
|
|
int prove_locking = 1;
|
|
int prove_locking = 1;
|
|
module_param(prove_locking, int, 0644);
|
|
module_param(prove_locking, int, 0644);
|
|
@@ -2929,8 +2931,6 @@ void lock_set_class(struct lockdep_map *lock, const char *name,
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(lock_set_class);
|
|
EXPORT_SYMBOL_GPL(lock_set_class);
|
|
|
|
|
|
-DEFINE_TRACE(lock_acquire);
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* We are not always called with irqs disabled - do that here,
|
|
* We are not always called with irqs disabled - do that here,
|
|
* and also avoid lockdep recursion:
|
|
* and also avoid lockdep recursion:
|
|
@@ -2957,8 +2957,6 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass,
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(lock_acquire);
|
|
EXPORT_SYMBOL_GPL(lock_acquire);
|
|
|
|
|
|
-DEFINE_TRACE(lock_release);
|
|
|
|
-
|
|
|
|
void lock_release(struct lockdep_map *lock, int nested,
|
|
void lock_release(struct lockdep_map *lock, int nested,
|
|
unsigned long ip)
|
|
unsigned long ip)
|
|
{
|
|
{
|
|
@@ -3061,8 +3059,6 @@ found_it:
|
|
put_lock_stats(stats);
|
|
put_lock_stats(stats);
|
|
}
|
|
}
|
|
|
|
|
|
-DEFINE_TRACE(lock_acquired);
|
|
|
|
-
|
|
|
|
static void
|
|
static void
|
|
__lock_acquired(struct lockdep_map *lock, unsigned long ip)
|
|
__lock_acquired(struct lockdep_map *lock, unsigned long ip)
|
|
{
|
|
{
|
|
@@ -3118,8 +3114,6 @@ found_it:
|
|
lock->ip = ip;
|
|
lock->ip = ip;
|
|
}
|
|
}
|
|
|
|
|
|
-DEFINE_TRACE(lock_contended);
|
|
|
|
-
|
|
|
|
void lock_contended(struct lockdep_map *lock, unsigned long ip)
|
|
void lock_contended(struct lockdep_map *lock, unsigned long ip)
|
|
{
|
|
{
|
|
unsigned long flags;
|
|
unsigned long flags;
|