函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_fetch_type

函数原型:static const struct fetch_type *find_fetch_type(const char *type)

返回类型:struct fetch_type

参数:

类型参数名称
const char *type
105  如果非typetype等于DEFAULT_FETCH_TYPE_STR
109  如果type恒等于'b'则
112  type等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
113  如果非type则转到:fail
116  type自加
117  如果kstrtoul - convert a string to an unsigned long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.则转到:fail
121  :bs恒等于8
122  返回:find_fetch_type("u8")
123  :bs恒等于16
124  返回:find_fetch_type("u16")
125  :bs恒等于32
126  返回:find_fetch_type("u32")
127  :bs恒等于64
128  返回:find_fetch_type("u64")
129  默认
130  转到:fail
134 Name of type 循环
135  如果字符串比较恒等于0则返回:Fetch type information table [i]
139  fail :
140  返回:NULL
调用者
名称描述
find_fetch_type
parse_probe_argRecursive argument parser
traceprobe_parse_probe_arg_bodyString length checking wrapper