Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kdb_symbol_print - Standard method for printing a symbol name and offset

Proto:void kdb_symbol_print(unsigned long addr, const kdb_symtab_t *symtab_p, unsigned int punc)

Type:void

Parameter:

TypeParameterName
unsigned longaddr
const kdb_symtab_t *symtab_p
unsigned intpunc
262  If symtab_p Then
263  symtab_p2 = symtab_p
264  Else
265  symtab_p2 = symtab
266  kdbnearsym - Return the name of the symbol with the nearest address* less than 'addr'
268  If Not (Full symbol name, including* any version || punc & Print the value of the address ) Then Return
270  If punc & Space before string Then kdb_printf(" ")
272  If punc & Print the value of the address Then kdb_printf(kdb_machreg_fmt0, addr)
274  If Full symbol name, including* any version Then
275  If punc & Print the value of the address Then kdb_printf(" ")
277  If punc & Parenthesis around string Then kdb_printf("(")
279  If strcmp(Module containing symbol or* "kernel" , "kernel") Then kdb_printf("[%s]", Module containing symbol or* "kernel" )
281  kdb_printf("%s", Full symbol name, including* any version )
282  If addr != sym_start Then kdb_printf("+0x%lx", addr - sym_start)
284  If punc & Print the size of the symbol Then kdb_printf("/0x%lx", sym_end - sym_start)
287  If punc & Parenthesis around string Then kdb_printf(")")
290  If punc & Space after string Then kdb_printf(" ")
292  If punc & Newline after string Then kdb_printf("\n")
Caller
NameDescribe
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