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

Name:kdb_md - This function implements the 'md', 'md1', 'md2', 'md4',* 'md8' 'mdr' and 'mds' commands.* md|mds [<addr arg> [<line count> [<radix>]]]* mdWcN [<addr arg> [<line count> [<radix>]]]* where W = is the width (1, 2, 4 or 8) and N is the count.* for eg

Proto:static void kdb_md_line(const char *fmtstr, unsigned long addr, int symbolic, int nosect, int bytesperword, int num, int repeat, int phys)

Type:void

Parameter:

TypeParameterName
const char *fmtstr
unsigned longaddr
intsymbolic
intnosect
intbytesperword
intnum
intrepeat
intphys
1494  c = cbuf
1499  memset(cbuf, '\0', size of cbuf )
1500  If phys Then kdb_printf("phys "kdb_machreg_fmt0" ", addr)
1502  Else kdb_printf(kdb_machreg_fmt0" ", addr)
1505  When i < num && repeat-- cycle
1506  If phys Then
1509  Else if kdb_getword - Read a binary value. Unlike kdb_getarea, this treats* data as numbers.* Inputs:* word Pointer to the word to receive the result.* addr Address of the area to copy.* size Size of the area.* Returns:* 0 for success, < 0 for error. Then Break
1511  kdb_printf(fmtstr, word)
1512  If symbolic Then kdbnearsym - Return the name of the symbol with the nearest address* less than 'addr'
1514  Else memset( & symtab, 0, size of symtab )
1518  If Not nosect Then
1527  addr += bytesperword
1528  Else
1529  union{u64 word;unsigned char c[8];}wc
1537  cp = c
1539  word = word
1542  When j < bytesperword cycle c++ = printable_char( * cp++)
1544  addr += bytesperword
1548  kdb_printf("%*s %s\n", (int)((num - i) * (2 * bytesperword + 1) + 1), " ", cbuf)
Caller
NameDescribe
kdb_md
kdb_per_cpukdb_per_cpu - This function implements the 'per_cpu' command.