Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\debug_locks.c Create Date:2022-07-28 06:19:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Generic 'turn off all lock debugging' function:

Proto:int debug_locks_off(void)

Type:int

Parameter:Nothing

41  If 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() Then
44  Return 1
47  Return 0
Caller
NameDescribe
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