Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kdb_parsebp

Proto:static int kdb_parsebp(int argc, const char **argv, int *nextargp, kdb_bp_t *bp)

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
int *nextargp
kdb_bp_t *bp
50  nextarg = nextargp
53  HW break length = 1
54  If argc + 1 != nextarg Then
55  If strncasecmp - Case insensitive, length-limited string comparison*@s1: One string*@s2: The other string*@len: the maximum number of characters to compare == 0 Then Uses hardware register = BP_ACCESS_WATCHPOINT
57  Else if strncasecmp - Case insensitive, length-limited string comparison*@s1: One string*@s2: The other string*@len: the maximum number of characters to compare == 0 Then Uses hardware register = BP_WRITE_WATCHPOINT
59  Else if strncasecmp - Case insensitive, length-limited string comparison*@s1: One string*@s2: The other string*@len: the maximum number of characters to compare == 0 Then Uses hardware register = BP_HARDWARE_BREAKPOINT
61  Else Return KDB_ARGCOUNT
64  HW break length = 1
66  nextarg++
68  If argc + 1 != nextarg Then
73  If diag Then Return diag
77  If len > 8 Then Return KDB_BADLENGTH
81  nextarg++
84  If argc + 1 != nextarg Then Return KDB_ARGCOUNT
88  nextargp = nextarg
89  Return 0
Caller
NameDescribe
kdb_bpkdb_bp* Handle the bp commands