函数逻辑报告 |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-27 13:40:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:reate_field_var_hist - Automatically create a histogram and var for a field*@target_hist_data: The target hist trigger*@subsys_name: Optional subsystem name*@event_name: Optional event name*@field_name: The name of the field (and the resulting variable)*
函数原型:static struct hist_field *create_field_var_hist(struct hist_trigger_data *target_hist_data, char *subsys_name, char *event_name, char *field_name)
返回类型:struct hist_field
参数:
类型 | 参数 | 名称 |
---|---|---|
struct hist_trigger_data * | target_hist_data | |
char * | subsys_name | |
char * | event_name | |
char * | field_name |
3300 | 如果n_field_var_hists大于等于SYNTH_FIELDS_MAX则 |
3302 | 返回:错误号 |
3305 | file等于event_file(tr, subsys_name, event_name) |
3307 | 如果是错误则 |
3320 | 如果非hist_data则 |
3321 | hist_err(tr, HIST_ERR_HIST_NOT_FOUND, errpos(field_name)) |
3322 | 返回:错误号 |
3336 | 如果非cmd则 |
3349 | first = false |
3354 | strcat(cmd, field_name) |
3356 | strcat(cmd, field_name) |
3359 | saved_filter等于find_trigger_filter(hist_data, file) |
3360 | 如果saved_filter则 |
3362 | strcat(cmd, saved_filter) |
3365 | cmd等于kstrdup(cmd, GFP_KERNEL) |
3366 | 如果非cmd则 |
3376 | ret等于event_hist_trigger_func( & trigger_hist_cmd, file, "", "hist", cmd) |
3378 | 如果ret则 |
3382 | hist_err(tr, HIST_ERR_HIST_CREATE_FAIL, errpos(field_name)) |
3383 | 返回:错误号 |
3391 | 如果是错误或空则 |
3395 | 返回:错误号 |
3398 | n等于n_field_var_hists |
3399 | field_var_hists[n]等于var_hist |
3400 | n_field_var_hists自加 |
3402 | 返回:event_var |
名称 | 描述 |
---|---|
trace_action_create_field_var |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |