Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:trace_alloc_entry

Proto:static void *trace_alloc_entry(struct trace_event_call *call, int *size)

Type:void

Parameter:

TypeParameterName
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
173  str_loc = entry_size & 0xffff
175  str_item = entry + offset
176  str_item = str_loc
177  Else
180  paddr = entry + offset
181  paddr = ""
185  size = entry_size + 1
186  Return entry
Caller
NameDescribe
parse_entryCaller is responsible to free the *pentry.