Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dynamic_debug.c Create Date:2022-07-28 07:15:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:handle multiple queries in query string, continue on error, returnlast error or number of matching callsites. Module name is eitherin param (for boot arg) or perhaps in query string.

Proto:static int ddebug_exec_queries(char *query, const char *modname)

Type:int

Parameter:

TypeParameterName
char *query
const char *modname
482  errs = 0 , exitcode = 0 , nfound = 0
484  When query cycle
485  split = strpbrk - Find the first occurrence of a set of characters*@cs: The string to be searched*@ct: The characters to search for
486  If split Then split++ = '\0'
489  query = skip_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.
490  If Not query || Not query || query == '#' Then Continue
493  vpr_info("query %d: \"%s\"\n", i, query)
495  rc = ddebug_exec_query(query, modname)
496  If rc < 0 Then
497  errs++
498  exitcode = rc
499  Else
500  nfound += rc
502  i++
504  vpr_info("processed %d queries, with %d matches, %d errs\n", i, nfound, errs)
507  If exitcode Then Return exitcode
509  Return nfound
Caller
NameDescribe
ddebug_proc_write
ddebug_dyndbg_param_cbhelper for ddebug_dyndbg_(boot|module)_param_cb
dynamic_debug_init