Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_fetch_type

Proto:static const struct fetch_type *find_fetch_type(const char *type)

Type:struct fetch_type

Parameter:

TypeParameterName
const char *type
105  If Not type Then type = DEFAULT_FETCH_TYPE_STR
109  If type == 'b' Then
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  If Not type Then Go to fail
116  type++
117  If 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. Then Go to fail
121  Case bs == 8
122  Return find_fetch_type("u8")
123  Case bs == 16
124  Return find_fetch_type("u16")
125  Case bs == 32
126  Return find_fetch_type("u32")
127  Case bs == 64
128  Return find_fetch_type("u64")
129  Default
130  Go to fail
134  When Name of type cycle
135  If strcmp(type, Name of type ) == 0 Then Return Fetch type information table [i]
139  fail :
140  Return NULL
Caller
NameDescribe
find_fetch_type
parse_probe_argRecursive argument parser
traceprobe_parse_probe_arg_bodyString length checking wrapper