函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_bt

函数原型:int kdb_bt(int argc, const char **argv)

返回类型:int

参数:

类型参数名称
intargc
const char **argv
130  btaprompt等于1
136  kdbgetintenv - This function will return the value of an* integer-valued environment variable
138  如果字符串比较恒等于0则
141  mask等于kdb_task_state_string(argc ? argv[1] : NULL)
143  如果argc恒等于0则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.
147  p等于kdb_curr_task(cpu)
153  如果KDB_FLAG(CMD_INTERRUPT)则返回:0
159  kdb_while_each_thread(g, p)
160  否则如果字符串比较恒等于0则
163  如果argc不等于1则返回:KDB_ARGCOUNT
165  diag等于kdbgetularg - This function will convert a numeric string into an* unsigned long value.* Parameters:* arg A character string representing a numeric value* Outputs:* *value the unsigned long represntation of arg.* Returns:
166  如果diag则返回:diag
168  p等于Must be called under rcu_read_lock().
169  如果p
173  kdb_printf("No process with pid == %ld found\n", pid)
174  返回:0
175  否则如果字符串比较恒等于0则
176  如果argc不等于1则返回:KDB_ARGCOUNT
178  diag等于kdbgetularg - This function will convert a numeric string into an* unsigned long value.* Parameters:* arg A character string representing a numeric value* Outputs:* *value the unsigned long represntation of arg.* Returns:
179  如果diag则返回:diag
181  kdb_set_current_task((structtask_struct * )addr)
182  返回:kdb_bt* This function implements the 'bt' command
183  否则如果字符串比较恒等于0则
184  cpu等于0的反
185  save_current_task等于kdb_current_task
186  如果argc大于1则返回:KDB_ARGCOUNT
188  如果argc恒等于1则
190  如果diag则返回:diag
193  如果cpu不等于0的反则
194  kdb_bt_cpu(cpu)
195  否则
200  argv = NULL
201  kdb_printf("btc: cpu status: ")
202  kdb_parse("cpu\n")
209  返回:0
210  否则
211  如果argc
212  nextarg等于1
215  如果diag则返回:diag
218  返回:0
219  否则
225  返回:0