| Function report | 
| Source Code: kernel\trace\trace_events_hist.c | Create Date:2022-07-28 12:30:26 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:reate_var_ref - Create a variable reference and attach it to trigger*@hist_data: The trigger that will be referencing the variable*@var_field: The VAR field to create a reference to*@system: The optional system string*@event_name: The optional event_name
Proto:static struct hist_field *create_var_ref(struct hist_trigger_data *hist_data, struct hist_field *var_field, char *system, char *event_name)
Type:struct hist_field
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct hist_trigger_data * | hist_data | |
| struct hist_field * | var_field | |
| char * | system | |
| char * | event_name | 
| 2691 | flags = HIST_FIELD_FL_VAR_REF | 
| 2696 | When i < n_var_refs cycle | 
| 2700 | get_hist_field(ref_field) | 
| 2701 | Return ref_field | 
| 2705 | ref_field = create_hist_field(hist_data, NULL, flags, NULL) | 
| 2706 | If ref_field Then | 
| 2707 | If init_var_ref(ref_field, var_field, system, event_name) Then | 
| 2708 | destroy_hist_field(ref_field, 0) | 
| 2709 | Return NULL | 
| 2712 | var_refs[n_var_refs] = ref_field | 
| 2716 | Return ref_field | 
| Name | Describe | 
|---|---|
| parse_var_ref | |
| track_data_create | |
| trace_action_create | 
| 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 |