Function report |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-28 11:41:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kdb_main_loop - After initial setup and assignment of the* controlling cpu, all cpus are in this loop
Proto:int kdb_main_loop(kdb_reason_t reason, kdb_reason_t reason2, int error, kdb_dbtrap_t db_result, struct pt_regs *regs)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
kdb_reason_t | reason | |
kdb_reason_t | reason2 | |
int | error | |
kdb_dbtrap_t | db_result | |
struct pt_regs * | regs |
1400 | result = 1 |
1402 | When 1 cycle |
1413 | If Not KDB_STATE(KDB) Then KDB_STATE_SET(KDB) |
1417 | KDB_STATE_CLEAR(SUPPRESS) |
1425 | If result == KDB_CMD_CPU Then Break |
1428 | If result == KDB_CMD_SS Then |
1429 | KDB_STATE_SET(DOING_SS) |
1430 | Break |
1433 | If result == KDB_CMD_KGDB Then |
1434 | If Not KDB_STATE(DOING_KGDB) Then kdb_printf("Entering please attach debugger or use $D#44+ or $3#33\n") |
1437 | Break |
1439 | If result && result != 1 && result != Kernel Debugger Command codes. Must not overlap with error codes. Then kdb_printf("\nUnexpected kdb_local return code %d\n", result) |
1443 | Break |
1445 | If KDB_STATE(DOING_SS) Then KDB_STATE_CLEAR(SSBPT) |
1451 | Return result |
Name | Describe |
---|---|
kdb_stub |
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 |