diff options
author | Ming Lei <tom.leiming@gmail.com> | 2009-07-16 09:44:29 -0400 |
---|---|---|
committer | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-07-24 04:52:03 -0400 |
commit | 12f3dfd022d7e616757a94f0538d3d525d806a16 (patch) | |
tree | 22221bcfa6edcc47094bd87862eb9cc5402a5799 /kernel/lockdep_internals.h | |
parent | 4dd861d6467007681991d8ec079d928db2018cbb (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.h | 3 |
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 | ||
141 | extern unsigned int max_bfs_queue_depth; | ||
141 | extern unsigned long nr_list_entries; | 142 | extern unsigned long nr_list_entries; |
142 | extern struct lock_list list_entries[MAX_LOCKDEP_ENTRIES]; | 143 | extern struct lock_list list_entries[MAX_LOCKDEP_ENTRIES]; |
143 | extern unsigned long bfs_accessed[]; | 144 | extern 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 | ||
194 | static inline int __cq_get_elem_count(struct circular_queue *cq) | 195 | static 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 | } |