Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int ddebug_change(const struct ddebug_query *query, unsigned int flags, unsigned int mask)

Type:int

Parameter:

TypeParameterName
const struct ddebug_query *query
unsigned intflags
unsigned intmask
146  nfound = 0
150  mutex_lock( & ddebug_lock)
154  If module && Not 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 Then Continue
158  When i < num_ddebugs cycle
159  dp = ddebugs[i]
162  If filename && Not 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 && Not 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 && Not 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 Then Continue
171  If function && Not 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 Then Continue
176  If format && Not strstr(format, format) Then Continue
181  If first_lineno && lineno < first_lineno Then Continue
184  If last_lineno && lineno > last_lineno Then Continue
188  nfound++
190  newflags = flags & mask | flags
191  If newflags == flags Then Continue
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  If Not nfound && verbose Then pr_info("no matches for query\n")
213  Return nfound
Caller
NameDescribe
ddebug_exec_query