函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_main.c Create Date:2022-07-27 12:46:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void kdb_ps_suppressed(void)

返回类型:void

参数:

2288  idle等于0, daemon等于0
2289  mask_I等于kdb_task_state_string("I"), mask_M等于kdb_task_state_string("M")
2293  遍历在线CPU(cpu)
2294  p等于kdb_curr_task(cpu)
2295  如果kdb_task_state(p, mask_I)则idle先自加
2298  Simplify coexistence with NPTL (g, p)
2299  如果kdb_task_state(p, mask_M)则daemon先自加
2301  kdb_while_each_thread(g, p)
2302  如果idledaemon
2303  如果idlekdb_printf("%d idle process%s (state I)%s\n", idle, idle == 1 ? "" : "es", daemon ? " and " : "")
2307  如果daemonkdb_printf("%d sleeping system daemon (state M) process%s", daemon, daemon == 1 ? "" : "es")
2311  kdb_printf(" suppressed,\nuse 'ps A' to see all.\n")
调用者
名称描述
kdb_ps
kdb_bt