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:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Caller is responsible to free the *pentry.

Proto:static int parse_entry(char *str, struct trace_event_call *call, void **pentry)

Type:int

Parameter:

TypeParameterName
char *str
struct trace_event_call *call
void **pentry
196  void * entry = NULL
198  val = 0
201  entry = trace_alloc_entry(call, & entry_size)
202  pentry = entry
203  If Not entry Then Return -ENOMEM
206  local_save_flags(irq_flags)
207  tracing_generic_entry_update(entry, type, irq_flags, We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt.)
210  When (len = parse_field(str, call, & field, & val)) > 0 cycle
211  If is_function_field(field) Then Return -EINVAL
214  If is_string_field(field) Then
215  addr = val
219  Else if filter_type == FILTER_DYN_STRING Then
235  Else
238  paddr = entry + offset
241  Else
243  Case size == 1
244  tmp = val
246  No 3D Now!(entry + offset, & tmp, 1)
247  Break
249  Case size == 2
250  tmp = val
252  No 3D Now!(entry + offset, & tmp, 2)
253  Break
255  Case size == 4
256  tmp = val
258  No 3D Now!(entry + offset, & tmp, 4)
259  Break
261  Case size == 8
262  No 3D Now!(entry + offset, & val, 8)
263  Break
264  Default
265  Return -EINVAL
269  str += len
272  If len < 0 Then Return len
275  Return entry_size
Caller
NameDescribe
event_inject_write