Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:30:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:init_var_ref
Proto:static int init_var_ref(struct hist_field *ref_field, struct hist_field *var_field, char *system, char *event_name)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct hist_field * | ref_field | |
struct hist_field * | var_field | |
char * | system | |
char * | event_name |
2604 | err = 0 |
2610 | flags |= flags & (HIST_FIELD_FL_TIMESTAMP | HIST_FIELD_FL_TIMESTAMP_USECS) |
2613 | If system Then |
2619 | If event_name Then |
2620 | event_name = kstrdup(event_name, GFP_KERNEL) |
2621 | If Not event_name Then |
2627 | If name Then |
2628 | * The name field is used for EXPR and VAR_REF fields. VAR * fields contain the variable name in var.name. = kstrdup(name, GFP_KERNEL) |
2641 | type = kstrdup(type, GFP_KERNEL) |
2642 | If Not type Then |
2646 | out : |
2647 | Return err |
2648 | free : |
2650 | kfree(event_name) |
2651 | kfree(* The name field is used for EXPR and VAR_REF fields. VAR * fields contain the variable name in var.name.) |
2653 | Go to out |
Name | Describe |
---|---|
create_var_ref | 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 |
create_alias |
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 |