| Function report | 
| Source Code: kernel\trace\trace_events_hist.c | Create Date:2022-07-28 12:30:03 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:hist_trigger_elt_data_alloc
Proto:static int hist_trigger_elt_data_alloc(struct tracing_map_elt *elt)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct tracing_map_elt * | elt | 
| 2258 | hist_data = private_data | 
| 2259 | size = Task command name length: | 
| 2264 | elt_data = 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). | 
| 2271 | If flags & HIST_FIELD_FL_EXECNAME Then | 
| 2272 | comm = 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). | 
| 2273 | If Not comm Then | 
| 2277 | Break | 
| 2281 | n_str = n_field_var_str + n_save_var_str | 
| 2286 | field_var_str[i] = 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). | 
| 2287 | If Not field_var_str[i] Then | 
| 2288 | hist_elt_data_free(elt_data) | 
| 2289 | Return -ENOMEM | 
| 2293 | private_data = elt_data | 
| 2295 | Return 0 | 
| 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 |