函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int ddebug_exec_queries(char *query, const char *modname)

返回类型:int

参数:

类型参数名称
char *query
const char *modname
482  errs等于0, exitcode等于0, nfound等于0
484 query循环
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  如果splitsplit自加等于'\0'
489  query等于字符串删除空格
490  如果非query或非queryquery恒等于'#'则继续下一循环
493  vpr_info("query %d: \"%s\"\n", i, query)
495  rc等于ddebug_exec_query(query, modname)
496  如果rc小于0则
497  errs自加
498  exitcode等于rc
499  否则
500  nfound加等于rc
502  i自加
504  vpr_info("processed %d queries, with %d matches, %d errs\n", i, nfound, errs)
507  如果exitcode则返回:exitcode
509  返回:nfound
调用者
名称描述
ddebug_proc_write
ddebug_dyndbg_param_cbhelper for ddebug_dyndbg_(boot|module)_param_cb
dynamic_debug_init