Function report |
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 activity | Download SCCT | Chinese |
Name:find_fetch_type
Proto:static const struct fetch_type *find_fetch_type(const char *type)
Type:struct fetch_type
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 116 | type++ |
| 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 |
| Name | Describe |
|---|---|
| find_fetch_type | |
| parse_probe_arg | Recursive argument parser |
| traceprobe_parse_probe_arg_body | String length checking wrapper |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |