Lines Matching full:class

41 static void print_name(struct seq_file *m, struct lock_class *class)  in print_name()  argument
44 const char *name = class->name; in print_name()
47 name = __get_key_name(class->key, str); in print_name()
51 if (class->name_version > 1) in print_name()
52 seq_printf(m, "#%d", class->name_version); in print_name()
53 if (class->subclass) in print_name()
54 seq_printf(m, "/%d", class->subclass); in print_name()
60 struct lock_class *class = list_entry(v, struct lock_class, lock_entry); in l_show() local
69 seq_printf(m, "%p", class->key); in l_show()
71 seq_printf(m, " OPS:%8ld", debug_class_ops_read(class)); in l_show()
74 seq_printf(m, " FD:%5ld", lockdep_count_forward_deps(class)); in l_show()
75 seq_printf(m, " BD:%5ld", lockdep_count_backward_deps(class)); in l_show()
78 get_usage_chars(class, usage); in l_show()
82 print_name(m, class); in l_show()
85 list_for_each_entry(entry, &class->locks_after, entry) { in l_show()
87 seq_printf(m, " -> [%p] ", entry->class->key); in l_show()
88 print_name(m, entry->class); in l_show()
129 struct lock_class *class; in lc_show() local
149 class = lock_chain_get_class(chain, i); in lc_show()
150 if (!class->key) in lc_show()
153 seq_printf(m, "[%p] ", class->key); in lc_show()
154 print_name(m, class); in lc_show()
220 struct lock_class *class; in lockdep_stats_show() local
222 list_for_each_entry(class, &all_lock_classes, lock_entry) { in lockdep_stats_show()
224 if (class->usage_mask == 0) in lockdep_stats_show()
226 if (class->usage_mask == LOCKF_USED) in lockdep_stats_show()
228 if (class->usage_mask & LOCKF_USED_IN_IRQ) in lockdep_stats_show()
230 if (class->usage_mask & LOCKF_ENABLED_IRQ) in lockdep_stats_show()
232 if (class->usage_mask & LOCKF_USED_IN_SOFTIRQ) in lockdep_stats_show()
234 if (class->usage_mask & LOCKF_ENABLED_SOFTIRQ) in lockdep_stats_show()
236 if (class->usage_mask & LOCKF_USED_IN_HARDIRQ) in lockdep_stats_show()
238 if (class->usage_mask & LOCKF_ENABLED_HARDIRQ) in lockdep_stats_show()
240 if (class->usage_mask & LOCKF_USED_IN_IRQ_READ) in lockdep_stats_show()
242 if (class->usage_mask & LOCKF_ENABLED_IRQ_READ) in lockdep_stats_show()
244 if (class->usage_mask & LOCKF_USED_IN_SOFTIRQ_READ) in lockdep_stats_show()
246 if (class->usage_mask & LOCKF_ENABLED_SOFTIRQ_READ) in lockdep_stats_show()
248 if (class->usage_mask & LOCKF_USED_IN_HARDIRQ_READ) in lockdep_stats_show()
250 if (class->usage_mask & LOCKF_ENABLED_HARDIRQ_READ) in lockdep_stats_show()
253 sum_forward_deps += lockdep_count_forward_deps(class); in lockdep_stats_show()
368 struct lock_class *class; member
433 struct lock_class *class; in seq_stats() local
438 class = data->class; in seq_stats()
442 if (class->name_version > 1) in seq_stats()
444 if (class->subclass) in seq_stats()
448 cname = rcu_dereference_sched(class->name); in seq_stats()
449 ckey = rcu_dereference_sched(class->key); in seq_stats()
467 if (class->name_version > 1) { in seq_stats()
468 snprintf(name+namelen, 3, "#%d", class->name_version); in seq_stats()
471 if (class->subclass) { in seq_stats()
472 snprintf(name+namelen, 3, "/%d", class->subclass); in seq_stats()
507 if (class->contention_point[i] == 0) in seq_stats()
514 (void *)class->contention_point[i]); in seq_stats()
517 ip, (void *)class->contention_point[i]); in seq_stats()
522 if (class->contending_point[i] == 0) in seq_stats()
529 (void *)class->contending_point[i]); in seq_stats()
532 ip, (void *)class->contending_point[i]); in seq_stats()
551 "class name", in seq_header()
613 struct lock_class *class; in lock_stat_open() local
624 list_for_each_entry(class, &all_lock_classes, lock_entry) { in lock_stat_open()
625 iter->class = class; in lock_stat_open()
626 iter->stats = lock_stats(class); in lock_stat_open()
645 struct lock_class *class; in lock_stat_write() local
655 list_for_each_entry(class, &all_lock_classes, lock_entry) in lock_stat_write()
656 clear_lock_stats(class); in lock_stat_write()