函数逻辑报告 |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-27 13:40:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:create_var
函数原型:static struct hist_field *create_var(struct hist_trigger_data *hist_data, struct trace_event_file *file, char *name, int size, const char *type)
返回类型:struct hist_field
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct hist_trigger_data * | hist_data | |
| struct trace_event_file * | file | |
| char * | name | |
| int | size | |
| const char * | type |
| 3493 | 如果非var则 |
| 3498 | idx等于racing_map_add_var - Add a field describing a tracing_map var*@map: The tracing_map* Add a var to the map and return the index identifying it in the map* and associated tracing_map_elts |
| 3499 | 如果idx小于0则 |
| 3505 | flags等于HIST_FIELD_FL_VAR |
| 3509 | name等于kstrdup(name, GFP_KERNEL) |
| 3510 | type等于kstrdup(type, GFP_KERNEL) |
| 3517 | out : |
| 3518 | 返回:var |
| 名称 | 描述 |
|---|---|
| create_field_var | |
| track_data_create |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |