Lines Matching refs:depth
788 int i, depth = READ_ONCE(p->lockdep_depth);
813 p->comm, task_pid_nr(p), depth,
815 depth > 0 ? ":" : "");
817 for (i = 0; i < depth; i++) {
1098 for (i = chain->base; i < chain->base + chain->depth; i++)
1510 * depth-first search is used in order to find the shortest (circular)
1595 int depth = 0;
1600 depth++;
1602 return depth;
1920 print_circular_bug_entry(struct lock_list *target, int depth)
1924 printk("\n-> #%u", depth);
1995 print_circular_bug_header(struct lock_list *entry, unsigned int depth,
2019 print_circular_bug_entry(entry, depth);
2057 int depth;
2066 depth = get_lock_depth(target);
2070 print_circular_bug_header(target, depth, check_src, check_tgt);
2076 print_circular_bug_entry(parent, --depth);
2375 static void print_lock_class_header(struct lock_class *class, int depth)
2379 printk("%*s->", depth, "");
2388 int len = depth;
2390 len += printk("%*s %s", depth, "", usage_str[bit]);
2395 printk("%*s }\n", depth, "");
2398 depth, "", class->key, class->key);
2458 int depth;
2460 /*compute depth from generated tree by BFS*/
2461 depth = get_lock_depth(leaf);
2464 print_lock_class_header(entry->class, depth);
2465 printk("%*s ... acquired at:\n", depth, "");
2469 if (depth == 0 && (entry != root)) {
2475 depth--;
2476 } while (entry && (depth >= 0));
2505 int depth;
2507 /*compute depth from generated tree by BFS*/
2508 depth = get_lock_depth(leaf);
2511 print_lock_class_header(entry->class, depth);
2513 printk("%*s ... acquired at:\n", depth, "");
2524 if (depth == 0 && (entry != root)) {
2530 depth--;
2531 } while (entry && (depth >= 0));
3305 int depth = curr->lockdep_depth;
3313 if (!depth)
3319 if (curr->held_locks[depth].irq_context !=
3320 curr->held_locks[depth-1].irq_context)
3324 u16 distance = curr->lockdep_depth - depth + 1;
3325 hlock = curr->held_locks + depth - 1;
3342 depth--;
3346 if (!depth)
3351 if (curr->held_locks[depth].irq_context !=
3352 curr->held_locks[depth-1].irq_context)
3649 int depth = curr->lockdep_depth;
3652 printk("depth: %u (irq_context %u)\n", depth - i + 1,
3654 for (; i < depth; i++) {
3671 printk("depth: %u\n", chain->depth);
3672 for (i = 0; i < chain->depth; i++) {
3710 * in depth and also in content. If they are not it most likely means
3723 if (DEBUG_LOCKS_WARN_ON(chain->depth != curr->lockdep_depth - (i - 1))) {
3728 for (j = 0; j < chain->depth - 1; j++, i++) {
3804 chain->depth = curr->lockdep_depth + 1 - i;
3810 j = alloc_chain_hlocks(chain->depth);
3823 for (j = 0; j < chain->depth - 1; j++, i++) {
3995 WARN(1, "hm#1, depth: %u [%u], %016Lx != %016Lx\n",
4021 WARN(1, "hm#2, depth: %u [%u], %016Lx != %016Lx\n",
4118 int depth;
4143 depth = get_lock_depth(other);
4145 if (depth == 0 && (entry != root)) {
4151 depth--;
4152 } while (entry && entry != root && (depth >= 0));
4733 unsigned int depth = curr->lockdep_depth;
4738 if (depth) {
4741 prev_hlock = curr->held_locks + depth-1;
4901 int depth;
4912 for (depth = curr->lockdep_depth - 1; depth >= 0; depth--) {
4913 struct held_lock *prev = curr->held_locks + depth;
4917 depth++;
4921 for (; depth < curr->lockdep_depth; depth++) {
4922 struct held_lock *prev = curr->held_locks + depth;
5132 unsigned int depth;
5181 * (we dont increase the depth just yet, up until the
5184 depth = curr->lockdep_depth;
5188 if (DEBUG_LOCKS_WARN_ON(depth >= MAX_LOCK_DEPTH))
5193 if (depth && !sync) {
5195 hlock = curr->held_locks + depth - 1;
5213 hlock = curr->held_locks + depth;
5262 if (!depth) {
5284 WARN_ON_ONCE(depth && !hlock_class(hlock - 1)->key);
5306 printk(KERN_DEBUG "depth: %i max: %lu!\n",
5390 /* @depth must not be zero */
5393 unsigned int depth, int *idx)
5398 i = depth - 1;
5426 static int reacquire_held_locks(struct task_struct *curr, unsigned int depth,
5435 for (hlock = curr->held_locks + idx; idx < depth; idx++, hlock++) {
5464 unsigned int depth, merged = 0;
5472 depth = curr->lockdep_depth;
5477 if (DEBUG_LOCKS_WARN_ON(!depth))
5480 hlock = find_held_lock(curr, lock, depth, &i);
5498 if (reacquire_held_locks(curr, depth, i, &merged))
5505 if (DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth - merged))
5513 unsigned int depth, merged = 0;
5520 depth = curr->lockdep_depth;
5525 if (DEBUG_LOCKS_WARN_ON(!depth))
5528 hlock = find_held_lock(curr, lock, depth, &i);
5541 if (reacquire_held_locks(curr, depth, i, &merged))
5552 if (DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth))
5567 unsigned int depth, merged = 1;
5574 depth = curr->lockdep_depth;
5579 if (depth <= 0) {
5588 hlock = find_held_lock(curr, lock, depth, &i);
5624 if (i == depth-1)
5627 if (reacquire_held_locks(curr, depth, i + 1, &merged))
5635 DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth - merged);
6137 unsigned int depth;
6140 depth = curr->lockdep_depth;
6145 if (DEBUG_LOCKS_WARN_ON(!depth))
6151 hlock = find_held_lock(curr, lock, depth, &i);
6181 unsigned int depth;
6185 depth = curr->lockdep_depth;
6190 if (DEBUG_LOCKS_WARN_ON(!depth))
6196 hlock = find_held_lock(curr, lock, depth, &i);
6293 for (i = chain->base; i < chain->base + chain->depth; i++) {
6306 free_chain_hlocks(chain->base, chain->depth);