Function report |
Source Code:kernel\trace\trace_events_inject.c |
Create Date:2022-07-28 12:27:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:trace_alloc_entry
Proto:static void *trace_alloc_entry(struct trace_event_call *call, int *size)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_event_call * | call | |
int * | size |
155 | entry_size = trace_get_entry_size(call) |
158 | void * entry = NULL |
161 | entry = 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). |
162 | If Not entry Then Return NULL |
165 | head = trace_get_fields(call) |
167 | If Not is_string_field(field) Then Continue |
169 | If filter_type == FILTER_STATIC_STRING Then Continue |
171 | If filter_type == FILTER_DYN_STRING Then |
177 | Else |
185 | size = entry_size + 1 |
186 | Return entry |
Name | Describe |
---|---|
parse_entry | Caller is responsible to free the *pentry. |
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 |