From e6ba169bd285c5375e3ab87dfcad709a8223bcca Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 5 Jan 2012 10:04:58 +0300 Subject: [PATCH] locking: add some more lock name variations Added _raw_read_lock_bh(), _raw_read_lock_bh(), and _raw_read_lock(). Signed-off-by: Dan Carpenter --- check_locking.c | 48 +++++++++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/check_locking.c b/check_locking.c index dd97791b..160fb2f3 100644 --- a/check_locking.c +++ b/check_locking.c @@ -156,6 +156,8 @@ static struct lock_info kernel_lock_table[] = { {"_read_unlock", UNLOCK, "read_lock", 0, ret_any}, {"__read_lock", LOCK, "read_lock", 0, ret_any}, {"__read_unlock", UNLOCK, "read_lock", 0, ret_any}, + {"_raw_read_lock", LOCK, "read_lock", 0, ret_any}, + {"_raw_read_unlock", UNLOCK, "read_lock", 0, ret_any}, {"read_lock_irq", LOCK, "read_lock", 0, ret_any}, {"read_unlock_irq" , UNLOCK, "read_lock", 0, ret_any}, {"_read_lock_irq", LOCK, "read_lock", 0, ret_any}, @@ -174,6 +176,8 @@ static struct lock_info kernel_lock_table[] = { {"_read_unlock_bh", UNLOCK, "read_lock", 0, ret_any}, {"__read_lock_bh", LOCK, "read_lock", 0, ret_any}, {"__read_unlock_bh", UNLOCK, "read_lock", 0, ret_any}, + {"_raw_read_lock_bh", LOCK, "read_lock", 0, ret_any}, + {"_raw_read_unlock_bh", UNLOCK, "read_lock", 0, ret_any}, {"generic__raw_read_trylock", LOCK, "read_lock", 0, ret_non_zero}, {"read_trylock", LOCK, "read_lock", 0, ret_non_zero}, @@ -295,27 +299,29 @@ static struct lock_info kernel_lock_table[] = { {"__write_lock_irqsave", LOCK, "irqsave", RETURN_VAL, ret_any}, {"__write_unlock_irqrestore", UNLOCK, "irqsave", 1, ret_any}, - {"spin_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"spin_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"_spin_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"_spin_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"__spin_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"__spin_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"_read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"_read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"__read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"__read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"write_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"write_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"_write_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"_write_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"__write_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, - {"__write_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, - {"spin_trylock_bh", LOCK, "bottom_half", NO_ARG, ret_non_zero}, - {"_spin_trylock_bh", LOCK, "bottom_half", NO_ARG, ret_non_zero}, - {"__spin_trylock_bh", LOCK, "bottom_half", NO_ARG, ret_non_zero}, + {"spin_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"spin_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"_spin_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"_spin_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"__spin_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"__spin_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"_read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"_read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"__read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"__read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"_raw_read_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"_raw_read_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"write_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"write_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"_write_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"_write_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"__write_lock_bh", LOCK, "bottom_half", NO_ARG, ret_any}, + {"__write_unlock_bh", UNLOCK, "bottom_half", NO_ARG, ret_any}, + {"spin_trylock_bh", LOCK, "bottom_half", NO_ARG, ret_non_zero}, + {"_spin_trylock_bh", LOCK, "bottom_half", NO_ARG, ret_non_zero}, + {"__spin_trylock_bh", LOCK, "bottom_half", NO_ARG, ret_non_zero}, }; static struct lock_info *lock_table; -- 2.11.4.GIT