lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun, 24 May 2009 22:27:10 +0800
From:	tom.leiming@...il.com
To:	mingo@...e.hu
Cc:	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	a.p.zijlstra@...llo.nl, Ming Lei <tom.leiming@...il.com>
Subject: [PATCH] kernel:lockdep:fix statistics for nr_cyclic_check_recursions/checks

From: Ming Lei <tom.leiming@...il.com>


Signed-off-by: Ming Lei <tom.leiming@...il.com>
---
 kernel/lockdep.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 8bbeef9..1905357 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -1062,7 +1062,7 @@ check_noncircular(struct lock_class *source, unsigned int depth)
 	if (lockdep_dependency_visit(source, depth))
 		return 1;
 
-	debug_atomic_inc(&nr_cyclic_check_recursions);
+	debug_atomic_inc(&nr_cyclic_check_checks);
 	if (depth > max_recursion_depth)
 		max_recursion_depth = depth;
 	if (depth >= RECURSION_LIMIT)
@@ -1073,7 +1073,7 @@ check_noncircular(struct lock_class *source, unsigned int depth)
 	list_for_each_entry(entry, &source->locks_after, entry) {
 		if (entry->class == hlock_class(check_target))
 			return print_circular_bug_header(entry, depth+1);
-		debug_atomic_inc(&nr_cyclic_checks);
+		debug_atomic_inc(&nr_cyclic_recursions);
 		if (!check_noncircular(entry->class, depth+1))
 			return print_circular_bug_entry(entry, depth+1);
 	}
-- 
1.6.0.GIT

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ