函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kdb_symbol_print - Standard method for printing a symbol name and offset

函数原型:void kdb_symbol_print(unsigned long addr, const kdb_symtab_t *symtab_p, unsigned int punc)

返回类型:void

参数:

类型参数名称
unsigned longaddr
const kdb_symtab_t *symtab_p
unsigned intpunc
262  如果symtab_p
263  symtab_p2等于symtab_p
264  否则
265  symtab_p2等于symtab
266  kdbnearsym - Return the name of the symbol with the nearest address* less than 'addr'
268  如果非Full symbol name, including* any version punc按位与Print the value of the address 的值则返回
270  如果punc按位与Space before string kdb_printf(" ")
272  如果punc按位与Print the value of the address kdb_printf(kdb_machreg_fmt0, addr)
274  如果Full symbol name, including* any version
275  如果punc按位与Print the value of the address kdb_printf(" ")
277  如果punc按位与Parenthesis around string kdb_printf("(")
279  如果字符串比较kdb_printf("[%s]", Module containing symbol or* "kernel" )
281  kdb_printf("%s", Full symbol name, including* any version )
282  如果addr不等于sym_startkdb_printf("+0x%lx", addr - sym_start)
284  如果punc按位与Print the size of the symbol kdb_printf("/0x%lx", sym_end - sym_start)
287  如果punc按位与Parenthesis around string kdb_printf(")")
290  如果punc按位与Space after string kdb_printf(" ")
292  如果punc按位与Newline after string kdb_printf("\n")
调用者
名称描述
kdb_md_linekdb_md - This function implements the 'md', 'md1', 'md2', 'md4',* 'md8' 'mdr' and 'mds' commands.* md|mds [ [ []]]* mdWcN [ [ []]]* where W = is the width (1, 2, 4 or 8) and N is the count.* for eg
kdb_print_namevalkdb_print_nameval - Print a name and its value, converting the* value to a symbol lookup if possible.* Inputs:* name field name to print* val value of field
kdb_printbpkdb_printbp* Internal function to format and print a breakpoint entry.* Parameters:* None.* Outputs:* None.* Returns:* None.* Locking:* None.* Remarks:
kdb_parse