函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Generic 'turn off all lock debugging' function:

函数原型:int debug_locks_off(void)

返回类型:int

参数:

41  如果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__debug_locks_off()则
44  返回:1
47  返回:0
调用者
名称描述
oops_enterCalled when the architecture enters its oops handler, before it prints* anything. If this is the first CPU to oops, and it's oopsing the first* time then let it proceed.* This is all enabled by the pause_on_oops kernel boot option. We do all
debug_locks_off_graph_unlockTurn lock debugging off and return with 0 if it was off already,* and also release the graph lock:
look_up_lock_class
assign_lock_keyStatic locks do not have their class-keys yet - for them the key is* the lock object itself. If the lock is in the per cpu area, the* canonical address of the lock (per cpu offset removed) is used.
print_lock_nested_lock_not_held
__lock_acquireThis gets called for every mutex_lock*()/spin_lock*() operation
print_unlock_imbalance_bug
__lockdep_reset_lockThe caller must hold the graph lock. Does not sleep.
print_freed_lock_bug
print_held_locks_bug
lockdep_sys_exit
debug_rt_mutex_print_deadlock
spin_bug
rwlock_bug
printk_safe_flush_on_panicprintk_safe_flush_on_panic - flush all per-cpu nmi buffers when the system* goes down.* Similar to printk_safe_flush() but it can be called even in NMI context when* the system goes down. It does the best effort to get NMI messages into
panicpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.