函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_main.c Create Date:2022-07-27 12:45:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

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

返回类型:void

参数:

类型参数名称
const char *fmtstr
unsigned longaddr
intsymbolic
intnosect
intbytesperword
intnum
intrepeat
intphys
1494  c等于cbuf
1499  memset(cbuf, '\0', cbuf的长度)
1500  如果physkdb_printf("phys "kdb_machreg_fmt0" ", addr)
1502  否则kdb_printf(kdb_machreg_fmt0" ", addr)
1505 i小于numrepeat自减循环
1506  如果phys
1509  否则如果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.退出
1511  kdb_printf(fmtstr, word)
1512  如果symbolickdbnearsym - Return the name of the symbol with the nearest address* less than 'addr'
1514  否则memset( & symtab, 0, symtab的长度)
1518  如果非nosect
1527  addr加等于bytesperword
1528  否则
1529  union{u64 word;unsigned char c[8];}wc
1537  cp等于c
1539  word等于word
1542 j小于bytesperword循环c自加等于printable_char( * cp++)
1544  addr加等于bytesperword
1548  kdb_printf("%*s %s\n", (int)((num - i) * (2 * bytesperword + 1) + 1), " ", cbuf)
调用者
名称描述
kdb_md
kdb_per_cpukdb_per_cpu - This function implements the 'per_cpu' command.