Function report | 
Source Code:kernel\debug\kdb\kdb_bt.c | 
Create Date:2022-07-28 11:43:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:kdb_bt
Proto:int kdb_bt(int argc, const char **argv)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| int | argc | |
| const char ** | argv | 
| 130 | btaprompt = 1 | 
| 141 | mask = kdb_task_state_string(argc ? argv[1] : NULL) | 
| 143 | 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. | 
| 146 | for_each_online_cpu(cpu) | 
| 147 | p = kdb_curr_task(cpu) | 
| 148 | If kdb_bt* This function implements the 'bt' command Then Return 0 | 
| 152 | Simplify coexistence with NPTL (g, p) | 
| 153 | If KDB_FLAG(CMD_INTERRUPT) Then Return 0 | 
| 155 | If ask_curr - is this task currently executing on a CPU?*@p: the task in question.* Return: 1 if the task is currently executing. 0 otherwise. Then Continue | 
| 157 | If kdb_bt* This function implements the 'bt' command Then Return 0 | 
| 159 | kdb_while_each_thread(g, p) | 
| 163 | If argc != 1 Then Return KDB_ARGCOUNT | 
| 169 | If p Then | 
| 170 | kdb_set_current_task(p) | 
| 173 | kdb_printf("No process with pid == %ld found\n", pid) | 
| 174 | Return 0 | 
| 176 | If argc != 1 Then Return KDB_ARGCOUNT | 
| 181 | kdb_set_current_task((structtask_struct * )addr) | 
| 184 | cpu = ~0 | 
| 186 | If argc > 1 Then Return KDB_ARGCOUNT | 
| 188 | If argc == 1 Then | 
| 193 | If cpu != ~0 Then | 
| 194 | kdb_bt_cpu(cpu) | 
| 195 | Else | 
| 200 | argv = NULL | 
| 201 | kdb_printf("btc: cpu status: ") | 
| 202 | kdb_parse("cpu\n") | 
| 203 | for_each_online_cpu(cpu) | 
| 204 | kdb_bt_cpu(cpu) | 
| 209 | Return 0 | 
| 210 | Else | 
| 211 | If argc Then | 
| 212 | nextarg = 1 | 
| 213 | diag = kdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller | 
| 217 | kdb_show_stack(kdb_current_task, (void * )addr) | 
| 218 | Return 0 | 
| 219 | Else | 
| 225 | 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  |