Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:31:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:create_var
Proto:static struct hist_field *create_var(struct hist_trigger_data *hist_data, struct trace_event_file *file, char *name, int size, const char *type)
Type:struct hist_field
Parameter:
Type | Parameter | Name |
---|---|---|
struct hist_trigger_data * | hist_data | |
struct trace_event_file * | file | |
char * | name | |
int | size | |
const char * | type |
3492 | var = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
3493 | If Not var Then |
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 | If idx < 0 Then |
3505 | flags = HIST_FIELD_FL_VAR |
3509 | name = kstrdup(name, GFP_KERNEL) |
3510 | type = kstrdup(type, GFP_KERNEL) |
3517 | out : |
3518 | Return var |
Name | Describe |
---|---|
create_field_var | |
track_data_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 |