aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/lockdep_internals.h
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2009-07-16 09:44:29 -0400
committerPeter Zijlstra <a.p.zijlstra@chello.nl>2009-07-24 04:52:03 -0400
commit12f3dfd022d7e616757a94f0538d3d525d806a16 (patch)
tree22221bcfa6edcc47094bd87862eb9cc5402a5799 /kernel/lockdep_internals.h
parent4dd861d6467007681991d8ec079d928db2018cbb (diff)
lockdep: Add statistics info for max bfs queue depth
Add BFS statistics to the existing lockdep stats. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1246201486-7308-10-git-send-email-tom.leiming@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/lockdep_internals.h')
-rw-r--r--kernel/lockdep_internals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/lockdep_internals.h b/kernel/lockdep_internals.h
index b115aaa0bf35..6baa8807efdd 100644
--- a/kernel/lockdep_internals.h
+++ b/kernel/lockdep_internals.h
@@ -138,6 +138,7 @@ extern atomic_t nr_find_usage_backwards_recursions;
138#endif 138#endif
139 139
140 140
141extern unsigned int max_bfs_queue_depth;
141extern unsigned long nr_list_entries; 142extern unsigned long nr_list_entries;
142extern struct lock_list list_entries[MAX_LOCKDEP_ENTRIES]; 143extern struct lock_list list_entries[MAX_LOCKDEP_ENTRIES];
143extern unsigned long bfs_accessed[]; 144extern unsigned long bfs_accessed[];
@@ -191,7 +192,7 @@ static inline int __cq_dequeue(struct circular_queue *cq, unsigned long *elem)
191 return 0; 192 return 0;
192} 193}
193 194
194static inline int __cq_get_elem_count(struct circular_queue *cq) 195static inline unsigned int __cq_get_elem_count(struct circular_queue *cq)
195{ 196{
196 return (cq->rear - cq->front)&(MAX_CIRCULAR_QUE_SIZE-1); 197 return (cq->rear - cq->front)&(MAX_CIRCULAR_QUE_SIZE-1);
197} 198}