Function report |
Source Code:lib\bug.c |
Create Date:2022-07-28 06:17:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:report_bug
Proto:enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs)
Type:enum bug_trap_type
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | bugaddr | |
| struct pt_regs * | regs |
| 149 | If Not is_valid_bugaddr(bugaddr) Then Return BUG_TRAP_TYPE_NONE |
| 153 | If Not bug Then Return BUG_TRAP_TYPE_NONE |
| 156 | file = NULL |
| 157 | line = 0 |
| 158 | warning = 0 |
| 160 | If bug Then |
| 169 | warning = (flags & BUGFLAG_WARNING) != 0 |
| 170 | once = (flags & BUGFLAG_ONCE) != 0 |
| 171 | done = (flags & BUGFLAG_DONE) != 0 |
| 174 | If done Then Return BUG_TRAP_TYPE_WARN |
| 180 | flags |= BUGFLAG_DONE |
| 190 | If (flags & BUGFLAG_NO_CUT_HERE) == 0 Then printk(he default kernel loglevel CUT_HERE) |
| 193 | If warning Then |
| 197 | Return BUG_TRAP_TYPE_WARN |
| 206 | Return BUG_TRAP_TYPE_BUG |
| 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 |