函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Search the tables for _ddebug's which match the given `query' and* apply the `flags' and `mask' to them. Returns number of matching* callsites, normally the same as number of changes. If verbose,* logs the changes. Takes ddebug_lock.

函数原型:static int ddebug_change(const struct ddebug_query *query, unsigned int flags, unsigned int mask)

返回类型:int

参数:

类型参数名称
const struct ddebug_query *query
unsigned intflags
unsigned intmask
146  nfound等于0
150  mutex_lock( & ddebug_lock)
154  如果module且非match_wildcard: - parse if a string matches given wildcard pattern*@pattern: wildcard pattern*@str: the string to be parsed* Description: Parse the string @str to check if matches wildcard* pattern @pattern则继续下一循环
158 i小于num_ddebugs循环
159  dp等于ddebugs[i]
162  如果filename且非match_wildcard: - parse if a string matches given wildcard pattern*@pattern: wildcard pattern*@str: the string to be parsed* Description: Parse the string @str to check if matches wildcard* pattern @pattern且非match_wildcard: - parse if a string matches given wildcard pattern*@pattern: wildcard pattern*@str: the string to be parsed* Description: Parse the string @str to check if matches wildcard* pattern @pattern且非match_wildcard: - parse if a string matches given wildcard pattern*@pattern: wildcard pattern*@str: the string to be parsed* Description: Parse the string @str to check if matches wildcard* pattern @pattern则继续下一循环
171  如果function且非match_wildcard: - parse if a string matches given wildcard pattern*@pattern: wildcard pattern*@str: the string to be parsed* Description: Parse the string @str to check if matches wildcard* pattern @pattern则继续下一循环
176  如果format且非strstr(format, format)则继续下一循环
181  如果first_linenolineno小于first_lineno则继续下一循环
184  如果last_linenolineno大于last_lineno则继续下一循环
188  nfound自加
190  newflags等于flags按位与mask按位或flags
191  如果newflags恒等于flags则继续下一循环
200  flags等于newflags
201  vpr_info("changed %s:%d [%s]%s =%s\n", Return the path relative to source root , lineno, mod_name, function, rmat a string into buf[] which describes the _ddebug's flags )
208  mutex_unlock( & ddebug_lock)
210  如果非nfoundverbose打印信息("no matches for query\n")
213  返回:nfound
调用者
名称描述
ddebug_exec_query