Function report |
Source Code:kernel\debug\kdb\kdb_main.c |
Create Date:2022-07-28 11:42:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kdb_ps
Proto:static int kdb_ps(int argc, const char **argv)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | argc | |
| const char ** | argv |
| 2352 | If argc == 0 Then The user may not realize that ps/bta with no parameters does not print idle* or sleeping system daemon processes, so tell them how many were suppressed. |
| 2354 | kdb_printf("%-*s Pid Parent [*] cpu State %-*s Command\n", (int)(2 * size of * ) + 2, "Task Addr", (int)(2 * size of * ) + 2, "Thread") |
| 2357 | mask = kdb_task_state_string(argc ? argv[1] : NULL) |
| 2359 | for_each_online_cpu(cpu) |
| 2360 | If KDB_FLAG(CMD_INTERRUPT) Then Return 0 |
| 2362 | p = kdb_curr_task(cpu) |
| 2366 | kdb_printf("\n") |
| 2368 | Simplify coexistence with NPTL (g, p) |
| 2369 | If KDB_FLAG(CMD_INTERRUPT) Then Return 0 |
| 2373 | kdb_while_each_thread(g, p) |
| 2375 | Return 0 |
| 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 |