函数逻辑报告 |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-27 13:37:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:parse_synth_field
函数原型:static struct synth_field *parse_synth_field(int argc, const char **argv, int *consumed)
返回类型:struct synth_field
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | argc | |
| const char ** | argv | |
| int * | consumed |
| 1015 | prefix等于NULL, field_type等于argv[0] |
| 1016 | ret等于0 |
| 1018 | 如果field_type[0]恒等于';'则field_type自加 |
| 1021 | 如果非字符串比较则 |
| 1028 | 否则 |
| 1029 | field_name等于argv[1] |
| 1030 | consumed等于2 |
| 1038 | array等于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 |
| 1041 | 否则如果field_name[len - 1]恒等于';'则len自减 |
| 1044 | name等于kmemdup_nul(field_name, len, GFP_KERNEL) |
| 1045 | 如果非name则 |
| 1050 | 如果field_type[0]恒等于';'则field_type自加 |
| 1059 | 如果非type则 |
| 1065 | strcat(type, field_type) |
| 1066 | 如果array则 |
| 1072 | size等于synth_field_size(type) |
| 1073 | 如果非size则 |
| 1078 | 如果synth_field_is_string(type)则is_string = true |
| 1081 | is_signed等于synth_field_signed(type) |
| 1083 | out : |
| 1084 | 返回:field |
| 1085 | free : |
| 1086 | free_synth_field(field) |
| 1088 | 转到:out |
| 名称 | 描述 |
|---|---|
| __create_synth_event |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |