Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:kdb_ps

Proto:static int kdb_ps(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
intargc
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)
2363  If kdb_task_state(p, mask) Then kdb_ps - This function implements the 'ps' command which shows a* list of the active processes.* ps [DRSTCZEUIMA] All processes, optionally filtered by state
2366  kdb_printf("\n")
2368  Simplify coexistence with NPTL (g, p)
2369  If KDB_FLAG(CMD_INTERRUPT) Then Return 0
2371  If kdb_task_state(p, mask) Then kdb_ps - This function implements the 'ps' command which shows a* list of the active processes.* ps [DRSTCZEUIMA] All processes, optionally filtered by state
2373  kdb_while_each_thread(g, p)
2375  Return 0