Function report |
Source Code:kernel\locking\lockdep.c |
Create Date:2022-07-28 09:49:50 |
| Last Modify:2020-03-17 14:16:01 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:print_lock_nested_lock_not_held
Proto:static void print_lock_nested_lock_not_held(struct task_struct *curr, struct held_lock *hlock, unsigned long ip)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | curr | |
| struct held_lock * | hlock | |
| unsigned long | ip |
| 3774 | If Not Generic 'turn off all lock debugging' function: Then Return |
| 3776 |
If The locking-testsuite uses |
| 3779 | pr_warn("\n") |
| 3780 | pr_warn("==================================\n") |
| 3781 | pr_warn("WARNING: Nested lock was not taken\n") |
| 3782 | print_kernel_ident() |
| 3783 | pr_warn("----------------------------------\n") |
| 3786 | print_lock(hlock) |
| 3788 | pr_warn("\nbut this task is not holding:\n") |
| 3791 | pr_warn("\nstack backtrace:\n") |
| 3792 | dump_stack() |
| 3794 | pr_warn("\nother info that might help us debug this:\n") |
| 3795 | lockdep_print_held_locks(curr) |
| 3797 | pr_warn("\nstack backtrace:\n") |
| 3798 | dump_stack() |
| Name | Describe |
|---|---|
| __lock_acquire | This gets called for every mutex_lock*()/spin_lock*() operation |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |