diff options
author | Ming Lei <tom.leiming@gmail.com> | 2009-08-29 06:47:59 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-29 07:22:36 -0400 |
commit | a417887637e862b434b293404f2a31ad1f282a58 (patch) | |
tree | 55c71d0a1404b4ab93a38fc51a3ab6f5afe5b860 /kernel | |
parent | 96004bb2a1e4ccad2b1eeb92e51031d1e8e609e3 (diff) |
lockdep: Remove recursion stattistics
Since lockdep has introduced BFS to avoid recursion, statistics
for recursion does not make any sense now. So remove them.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Cc: a.p.zijlstra@chello.nl
LKML-Reference: <1251542879-5211-1-git-send-email-tom.leiming@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/lockdep.c | 4 | ||||
-rw-r--r-- | kernel/lockdep_proc.c | 8 |
2 files changed, 0 insertions, 12 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 0843584aed5e..f74d2d7aa605 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -399,7 +399,6 @@ unsigned int nr_hardirq_chains; | |||
399 | unsigned int nr_softirq_chains; | 399 | unsigned int nr_softirq_chains; |
400 | unsigned int nr_process_chains; | 400 | unsigned int nr_process_chains; |
401 | unsigned int max_lockdep_depth; | 401 | unsigned int max_lockdep_depth; |
402 | unsigned int max_recursion_depth; | ||
403 | 402 | ||
404 | #ifdef CONFIG_DEBUG_LOCKDEP | 403 | #ifdef CONFIG_DEBUG_LOCKDEP |
405 | /* | 404 | /* |
@@ -429,11 +428,8 @@ atomic_t redundant_softirqs_on; | |||
429 | atomic_t redundant_softirqs_off; | 428 | atomic_t redundant_softirqs_off; |
430 | atomic_t nr_unused_locks; | 429 | atomic_t nr_unused_locks; |
431 | atomic_t nr_cyclic_checks; | 430 | atomic_t nr_cyclic_checks; |
432 | atomic_t nr_cyclic_check_recursions; | ||
433 | atomic_t nr_find_usage_forwards_checks; | 431 | atomic_t nr_find_usage_forwards_checks; |
434 | atomic_t nr_find_usage_forwards_recursions; | ||
435 | atomic_t nr_find_usage_backwards_checks; | 432 | atomic_t nr_find_usage_backwards_checks; |
436 | atomic_t nr_find_usage_backwards_recursions; | ||
437 | #endif | 433 | #endif |
438 | 434 | ||
439 | /* | 435 | /* |
diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c index 8dac8402e07e..ec33c6ad58dd 100644 --- a/kernel/lockdep_proc.c +++ b/kernel/lockdep_proc.c | |||
@@ -199,16 +199,10 @@ static void lockdep_stats_debug_show(struct seq_file *m) | |||
199 | debug_atomic_read(&chain_lookup_hits)); | 199 | debug_atomic_read(&chain_lookup_hits)); |
200 | seq_printf(m, " cyclic checks: %11u\n", | 200 | seq_printf(m, " cyclic checks: %11u\n", |
201 | debug_atomic_read(&nr_cyclic_checks)); | 201 | debug_atomic_read(&nr_cyclic_checks)); |
202 | seq_printf(m, " cyclic-check recursions: %11u\n", | ||
203 | debug_atomic_read(&nr_cyclic_check_recursions)); | ||
204 | seq_printf(m, " find-mask forwards checks: %11u\n", | 202 | seq_printf(m, " find-mask forwards checks: %11u\n", |
205 | debug_atomic_read(&nr_find_usage_forwards_checks)); | 203 | debug_atomic_read(&nr_find_usage_forwards_checks)); |
206 | seq_printf(m, " find-mask forwards recursions: %11u\n", | ||
207 | debug_atomic_read(&nr_find_usage_forwards_recursions)); | ||
208 | seq_printf(m, " find-mask backwards checks: %11u\n", | 204 | seq_printf(m, " find-mask backwards checks: %11u\n", |
209 | debug_atomic_read(&nr_find_usage_backwards_checks)); | 205 | debug_atomic_read(&nr_find_usage_backwards_checks)); |
210 | seq_printf(m, " find-mask backwards recursions:%11u\n", | ||
211 | debug_atomic_read(&nr_find_usage_backwards_recursions)); | ||
212 | 206 | ||
213 | seq_printf(m, " hardirq on events: %11u\n", hi1); | 207 | seq_printf(m, " hardirq on events: %11u\n", hi1); |
214 | seq_printf(m, " hardirq off events: %11u\n", hi2); | 208 | seq_printf(m, " hardirq off events: %11u\n", hi2); |
@@ -350,8 +344,6 @@ static int lockdep_stats_show(struct seq_file *m, void *v) | |||
350 | nr_unused); | 344 | nr_unused); |
351 | seq_printf(m, " max locking depth: %11u\n", | 345 | seq_printf(m, " max locking depth: %11u\n", |
352 | max_lockdep_depth); | 346 | max_lockdep_depth); |
353 | seq_printf(m, " max recursion depth: %11u\n", | ||
354 | max_recursion_depth); | ||
355 | #ifdef CONFIG_PROVE_LOCKING | 347 | #ifdef CONFIG_PROVE_LOCKING |
356 | seq_printf(m, " max bfs queue depth: %11u\n", | 348 | seq_printf(m, " max bfs queue depth: %11u\n", |
357 | max_bfs_queue_depth); | 349 | max_bfs_queue_depth); |