| Function report | 
| Source Code: kernel\trace\trace_events_hist.c | Create Date:2022-07-28 12:29:04 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:alloc_synth_event
Proto:static struct synth_event *alloc_synth_event(const char *name, int n_fields, struct synth_field **fields)
Type:struct synth_event
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | name | |
| int | n_fields | |
| struct synth_field ** | fields | 
| 1247 | event = 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). | 
| 1248 | If Not event Then | 
| 1253 | name = kstrdup(name, GFP_KERNEL) | 
| 1254 | If Not name Then | 
| 1260 | fields = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). | 
| 1261 | If Not fields Then | 
| 1267 | dyn_event_init( & devent, & synth_event_ops) | 
| 1273 | out : | 
| 1274 | Return event | 
| Name | Describe | 
|---|---|
| __create_synth_event | 
| 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 |