函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ddebug_exec_query

函数原型:static int ddebug_exec_query(char *query_string, const char *modname)

返回类型:int

参数:

类型参数名称
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  如果nwords小于等于0则
456  打印错误信息("tokenize failed\n")
457  返回:负EINVAL
460  如果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.
461  打印错误信息("flags parse failed\n")
462  返回:负EINVAL
464  如果Parse words[] as a ddebug query specification, which is a series* of (keyword, value) pairs chosen from these possibilities:* func * file * file * module * format
465  打印错误信息("query parse failed\n")
466  返回:负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  返回:nfound
调用者
名称描述
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.