Lines Matching refs:m
26 static void *l_next(struct seq_file *m, void *v, loff_t *pos) in l_next() argument
31 static void *l_start(struct seq_file *m, loff_t *pos) in l_start() argument
36 static void l_stop(struct seq_file *m, void *v) in l_stop() argument
40 static void print_name(struct seq_file *m, struct lock_class *class) in print_name() argument
47 seq_printf(m, "%s", name); in print_name()
49 seq_printf(m, "%s", name); in print_name()
51 seq_printf(m, "#%d", class->name_version); in print_name()
53 seq_printf(m, "/%d", class->subclass); in print_name()
57 static int l_show(struct seq_file *m, void *v) in l_show() argument
64 seq_printf(m, "all lock classes:\n"); in l_show()
68 seq_printf(m, "%p", class->key); in l_show()
70 seq_printf(m, " OPS:%8ld", class->ops); in l_show()
73 seq_printf(m, " FD:%5ld", lockdep_count_forward_deps(class)); in l_show()
74 seq_printf(m, " BD:%5ld", lockdep_count_backward_deps(class)); in l_show()
78 seq_printf(m, " %s", usage); in l_show()
80 seq_printf(m, ": "); in l_show()
81 print_name(m, class); in l_show()
82 seq_puts(m, "\n"); in l_show()
86 seq_printf(m, " -> [%p] ", entry->class->key); in l_show()
87 print_name(m, entry->class); in l_show()
88 seq_puts(m, "\n"); in l_show()
91 seq_puts(m, "\n"); in l_show()
116 static void *lc_start(struct seq_file *m, loff_t *pos) in lc_start() argument
127 static void *lc_next(struct seq_file *m, void *v, loff_t *pos) in lc_next() argument
130 return lc_start(m, pos); in lc_next()
133 static void lc_stop(struct seq_file *m, void *v) in lc_stop() argument
137 static int lc_show(struct seq_file *m, void *v) in lc_show() argument
144 seq_printf(m, "all lock chains:\n"); in lc_show()
148 seq_printf(m, "irq_context: %d\n", chain->irq_context); in lc_show()
155 seq_printf(m, "[%p] ", class->key); in lc_show()
156 print_name(m, class); in lc_show()
157 seq_puts(m, "\n"); in lc_show()
159 seq_puts(m, "\n"); in lc_show()
184 static void lockdep_stats_debug_show(struct seq_file *m) in lockdep_stats_debug_show() argument
196 seq_printf(m, " chain lookup misses: %11llu\n", in lockdep_stats_debug_show()
198 seq_printf(m, " chain lookup hits: %11llu\n", in lockdep_stats_debug_show()
200 seq_printf(m, " cyclic checks: %11llu\n", in lockdep_stats_debug_show()
202 seq_printf(m, " find-mask forwards checks: %11llu\n", in lockdep_stats_debug_show()
204 seq_printf(m, " find-mask backwards checks: %11llu\n", in lockdep_stats_debug_show()
207 seq_printf(m, " hardirq on events: %11llu\n", hi1); in lockdep_stats_debug_show()
208 seq_printf(m, " hardirq off events: %11llu\n", hi2); in lockdep_stats_debug_show()
209 seq_printf(m, " redundant hardirq ons: %11llu\n", hr1); in lockdep_stats_debug_show()
210 seq_printf(m, " redundant hardirq offs: %11llu\n", hr2); in lockdep_stats_debug_show()
211 seq_printf(m, " softirq on events: %11llu\n", si1); in lockdep_stats_debug_show()
212 seq_printf(m, " softirq off events: %11llu\n", si2); in lockdep_stats_debug_show()
213 seq_printf(m, " redundant softirq ons: %11llu\n", sr1); in lockdep_stats_debug_show()
214 seq_printf(m, " redundant softirq offs: %11llu\n", sr2); in lockdep_stats_debug_show()
218 static int lockdep_stats_show(struct seq_file *m, void *v) in lockdep_stats_show() argument
268 seq_printf(m, " lock-classes: %11lu [max: %lu]\n", in lockdep_stats_show()
270 seq_printf(m, " direct dependencies: %11lu [max: %lu]\n", in lockdep_stats_show()
272 seq_printf(m, " indirect dependencies: %11lu\n", in lockdep_stats_show()
281 seq_printf(m, " all direct dependencies: %11lu\n", in lockdep_stats_show()
287 seq_printf(m, " dependency chains: %11lu [max: %lu]\n", in lockdep_stats_show()
289 seq_printf(m, " dependency chain hlocks: %11d [max: %lu]\n", in lockdep_stats_show()
294 seq_printf(m, " in-hardirq chains: %11u\n", in lockdep_stats_show()
296 seq_printf(m, " in-softirq chains: %11u\n", in lockdep_stats_show()
299 seq_printf(m, " in-process chains: %11u\n", in lockdep_stats_show()
301 seq_printf(m, " stack-trace entries: %11lu [max: %lu]\n", in lockdep_stats_show()
303 seq_printf(m, " combined max dependencies: %11u\n", in lockdep_stats_show()
308 seq_printf(m, " hardirq-safe locks: %11lu\n", in lockdep_stats_show()
310 seq_printf(m, " hardirq-unsafe locks: %11lu\n", in lockdep_stats_show()
312 seq_printf(m, " softirq-safe locks: %11lu\n", in lockdep_stats_show()
314 seq_printf(m, " softirq-unsafe locks: %11lu\n", in lockdep_stats_show()
316 seq_printf(m, " irq-safe locks: %11lu\n", in lockdep_stats_show()
318 seq_printf(m, " irq-unsafe locks: %11lu\n", in lockdep_stats_show()
321 seq_printf(m, " hardirq-read-safe locks: %11lu\n", in lockdep_stats_show()
323 seq_printf(m, " hardirq-read-unsafe locks: %11lu\n", in lockdep_stats_show()
325 seq_printf(m, " softirq-read-safe locks: %11lu\n", in lockdep_stats_show()
327 seq_printf(m, " softirq-read-unsafe locks: %11lu\n", in lockdep_stats_show()
329 seq_printf(m, " irq-read-safe locks: %11lu\n", in lockdep_stats_show()
331 seq_printf(m, " irq-read-unsafe locks: %11lu\n", in lockdep_stats_show()
334 seq_printf(m, " uncategorized locks: %11lu\n", in lockdep_stats_show()
336 seq_printf(m, " unused locks: %11lu\n", in lockdep_stats_show()
338 seq_printf(m, " max locking depth: %11u\n", in lockdep_stats_show()
341 seq_printf(m, " max bfs queue depth: %11u\n", in lockdep_stats_show()
344 lockdep_stats_debug_show(m); in lockdep_stats_show()
345 seq_printf(m, " debug_locks: %11u\n", in lockdep_stats_show()
389 static void seq_line(struct seq_file *m, char c, int offset, int length) in seq_line() argument
394 seq_puts(m, " "); in seq_line()
396 seq_printf(m, "%c", c); in seq_line()
397 seq_puts(m, "\n"); in seq_line()
410 static void seq_time(struct seq_file *m, s64 time) in seq_time() argument
415 seq_printf(m, " %14s", num); in seq_time()
418 static void seq_lock_time(struct seq_file *m, struct lock_time *lt) in seq_lock_time() argument
420 seq_printf(m, "%14lu", lt->nr); in seq_lock_time()
421 seq_time(m, lt->min); in seq_lock_time()
422 seq_time(m, lt->max); in seq_lock_time()
423 seq_time(m, lt->total); in seq_lock_time()
424 seq_time(m, lt->nr ? div_s64(lt->total, lt->nr) : 0); in seq_lock_time()
427 static void seq_stats(struct seq_file *m, struct lock_stat_data *data) in seq_stats() argument
476 seq_printf(m, "%38s-W:", name); in seq_stats()
478 seq_printf(m, "%40s:", name); in seq_stats()
480 seq_printf(m, "%14lu ", stats->bounces[bounce_contended_write]); in seq_stats()
481 seq_lock_time(m, &stats->write_waittime); in seq_stats()
482 seq_printf(m, " %14lu ", stats->bounces[bounce_acquired_write]); in seq_stats()
483 seq_lock_time(m, &stats->write_holdtime); in seq_stats()
484 seq_puts(m, "\n"); in seq_stats()
488 seq_printf(m, "%38s-R:", name); in seq_stats()
489 seq_printf(m, "%14lu ", stats->bounces[bounce_contended_read]); in seq_stats()
490 seq_lock_time(m, &stats->read_waittime); in seq_stats()
491 seq_printf(m, " %14lu ", stats->bounces[bounce_acquired_read]); in seq_stats()
492 seq_lock_time(m, &stats->read_holdtime); in seq_stats()
493 seq_puts(m, "\n"); in seq_stats()
509 seq_line(m, '-', 40-namelen, namelen); in seq_stats()
513 seq_printf(m, "%40s %14lu %29s %pS\n", in seq_stats()
524 seq_line(m, '-', 40-namelen, namelen); in seq_stats()
528 seq_printf(m, "%40s %14lu %29s %pS\n", in seq_stats()
533 seq_puts(m, "\n"); in seq_stats()
534 seq_line(m, '.', 0, 40 + 1 + 12 * (14 + 1)); in seq_stats()
535 seq_puts(m, "\n"); in seq_stats()
539 static void seq_header(struct seq_file *m) in seq_header() argument
541 seq_puts(m, "lock_stat version 0.4\n"); in seq_header()
544 seq_printf(m, "*WARNING* lock debugging disabled!! - possibly due to a lockdep warning\n"); in seq_header()
546 seq_line(m, '-', 0, 40 + 1 + 12 * (14 + 1)); in seq_header()
547 seq_printf(m, "%40s %14s %14s %14s %14s %14s %14s %14s %14s %14s %14s " in seq_header()
562 seq_line(m, '-', 0, 40 + 1 + 12 * (14 + 1)); in seq_header()
563 seq_printf(m, "\n"); in seq_header()
566 static void *ls_start(struct seq_file *m, loff_t *pos) in ls_start() argument
568 struct lock_stat_seq *data = m->private; in ls_start()
581 static void *ls_next(struct seq_file *m, void *v, loff_t *pos) in ls_next() argument
584 return ls_start(m, pos); in ls_next()
587 static void ls_stop(struct seq_file *m, void *v) in ls_stop() argument
591 static int ls_show(struct seq_file *m, void *v) in ls_show() argument
594 seq_header(m); in ls_show()
596 seq_stats(m, v); in ls_show()
620 struct seq_file *m = file->private_data; in lock_stat_open() local
633 m->private = data; in lock_stat_open()