函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\lockdep_proc.c Create Date:2022-07-27 10:51:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lockdep_stats_show

函数原型:static int lockdep_stats_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *v
203  nr_unused等于0, nr_uncategorized等于0, nr_irq_safe等于0, nr_irq_unsafe等于0, nr_softirq_safe等于0, nr_softirq_unsafe等于0, nr_hardirq_safe等于0, nr_hardirq_unsafe等于0, nr_irq_read_safe等于0, nr_irq_read_unsafe等于0, nr_softirq_read_safe等于0, nr_softirq_read_unsafe等于0, nr_hardirq_read_safe等于0, nr_hardirq_read_unsafe等于0, sum_forward_deps等于0
253  seq_printf(m, " lock-classes: %11lu [max: %lu]\n", nr_lock_classes, MAX_LOCKDEP_KEYS)
255  seq_printf(m, " direct dependencies: %11lu [max: %lu]\n", nr_list_entries, MAX_LOCKDEP_ENTRIES)
257  seq_printf(m, " indirect dependencies: %11lu\n", sum_forward_deps)
266  seq_printf(m, " all direct dependencies: %11lu\n", nr_irq_unsafe * nr_irq_safe + nr_hardirq_unsafe * nr_hardirq_safe + nr_list_entries)
284  seq_printf(m, " in-process chains: %11u\n", nr_process_chains)
286  seq_printf(m, " stack-trace entries: %11lu [max: %lu]\n", nr_stack_trace_entries, Stack-trace: tightly packed array of stack backtrace* addresses. Protected by the hash_lock.)
294  seq_printf(m, " combined max dependencies: %11u\n", (nr_hardirq_chains + 1) * (nr_softirq_chains + 1) * (nr_process_chains + 1))
299  seq_printf(m, " hardirq-safe locks: %11lu\n", nr_hardirq_safe)
301  seq_printf(m, " hardirq-unsafe locks: %11lu\n", nr_hardirq_unsafe)
303  seq_printf(m, " softirq-safe locks: %11lu\n", nr_softirq_safe)
305  seq_printf(m, " softirq-unsafe locks: %11lu\n", nr_softirq_unsafe)
307  seq_printf(m, " irq-safe locks: %11lu\n", nr_irq_safe)
309  seq_printf(m, " irq-unsafe locks: %11lu\n", nr_irq_unsafe)
312  seq_printf(m, " hardirq-read-safe locks: %11lu\n", nr_hardirq_read_safe)
314  seq_printf(m, " hardirq-read-unsafe locks: %11lu\n", nr_hardirq_read_unsafe)
316  seq_printf(m, " softirq-read-safe locks: %11lu\n", nr_softirq_read_safe)
318  seq_printf(m, " softirq-read-unsafe locks: %11lu\n", nr_softirq_read_unsafe)
320  seq_printf(m, " irq-read-safe locks: %11lu\n", nr_irq_read_safe)
322  seq_printf(m, " irq-read-unsafe locks: %11lu\n", nr_irq_read_unsafe)
325  seq_printf(m, " uncategorized locks: %11lu\n", nr_uncategorized)
327  seq_printf(m, " unused locks: %11lu\n", nr_unused)
329  seq_printf(m, " max locking depth: %11u\n", max_lockdep_depth)
335  lockdep_stats_debug_show(m)
336  seq_printf(m, " debug_locks: %11u\n", We want to turn all lock-debugging facilities on/off at once,* via a global flag. The reason is that once a single bug has been* detected and reported, there might be cascade of followup bugs* that would just muddy the log. So we report the first one and)
339  返回:0