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:ddebug_exec_query

Proto:static int ddebug_exec_query(char *query_string, const char *modname)

Type:int

Parameter:

TypeParameterName
char *query_string
const char *modname
448  flags = 0 , mask = 0
454  nwords = Split the buffer `buf' into space-separated words.* Handles simple " and ' quoting, i.e. without nested,* embedded or escaped \". Return the number of words* or <0 on error.
455  If nwords <= 0 Then
456  pr_err("tokenize failed\n")
457  Return -EINVAL
460  If Parse `str' as a flags specification, format [-+=][p]+.* Sets up *maskp and *flagsp to be used when changing the* flags fields of matched _ddebug's. Returns 0 on success* or <0 on error. Then
461  pr_err("flags parse failed\n")
462  Return -EINVAL
464  If Parse words[] as a ddebug query specification, which is a series* of (keyword, value) pairs chosen from these possibilities:* func * file * file * module * format Then
465  pr_err("query parse failed\n")
466  Return -EINVAL
469  nfound = 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.
470  vpr_info_dq( & query, nfound ? "applied" : "no-match")
472  Return nfound
Caller
NameDescribe
ddebug_exec_querieshandle 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.