Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_bt.c Create Date:2022-07-28 11:43:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_bt* This function implements the 'bt' command

Proto:static int kdb_bt1(struct task_struct *p, unsigned long mask, bool btaprompt)

Type:int

Parameter:

TypeParameterName
struct task_struct *p
unsigned longmask
boolbtaprompt
80  If Like get_user and put_user, kdb_getarea and kdb_putarea take variable* names, not pointers. The underlying *_size functions take pointers.(ch, (unsignedlong)p) || Like get_user and put_user, kdb_getarea and kdb_putarea take variable* names, not pointers. The underlying *_size functions take pointers.(ch, (unsignedlong)(p + 1) - 1) Then Return KDB_BADADDR
83  If Not kdb_task_state - Return true if a process has the desired state* given by the mask.* Inputs:* p struct task for the process* mask mask from kdb_task_state_string to select processes* Returns: Then Return 0
85  kdb_printf("Stack traceback for pid %d\n", process id)
86  kdb_ps - This function implements the 'ps' command which shows a* list of the active processes.* ps [DRSTCZEUIMA] All processes, optionally filtered by state
87  kdb_show_stack(p, NULL)
88  If btaprompt Then
89  kdb_printf("Enter <q> to end, <cr> or <space> to continue:")
90  Do
92  When Not strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for cycle
93  kdb_printf("\n")
96  kdb_nextline = 1
98  If ch == 'q' Then Return 1
101  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
102  Return 0
Caller
NameDescribe
kdb_bt_cpu
kdb_bt