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:41:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_go - This function implements the 'go' command.* go [address-expression]

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

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
1800  If These macros fold the SMP functionality into a single CPU system() != cpu number that owns kdb Then
1801  kdb_printf("go must execute on the entry cpu, please use \"cpu %d\" and then execute go\n", cpu number that owns kdb )
1804  Return KDB_BADCPUNUM
1806  If argc == 1 Then
1807  nextarg = 1
1808  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
1810  If diag Then Return diag
1812  Else if argc Then
1813  Return KDB_ARGCOUNT
1816  diag = Kernel Debugger Command codes. Must not overlap with error codes.
1817  If KDB_FLAG(CATASTROPHIC) Then
1818  kdb_printf("Catastrophic error detected\n")
1819  kdb_printf("kdb_continue_catastrophic=%d, ", kdb_continue_catastrophic)
1821  If kdb_continue_catastrophic == 0 && kdb_go_count++ == 0 Then
1822  kdb_printf("type go a second time if you really want to continue\n")
1824  Return 0
1826  If kdb_continue_catastrophic == 2 Then
1827  kdb_printf("forcing reboot\n")
1830  kdb_printf("attempting to continue\n")
1832  Return diag