Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events.c Create Date:2022-07-28 12:18:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_event_buffer_reserve

Proto:void *trace_event_buffer_reserve(struct trace_event_buffer *fbuffer, struct trace_event_file *trace_file, unsigned long len)

Type:void

Parameter:

TypeParameterName
struct trace_event_buffer *fbuffer
struct trace_event_file *trace_file
unsigned longlen
250  event_call = event_call
252  If * 32 bit flags: * bit 0: enabled * bit 1: enabled cmd record * bit 2: enable/disable with the soft disable bit * bit 3: soft disabled * bit 4: trigger enabled * Note: The bits must be set atomically to prevent races * from other writers. Reads of flags do & EVENT_FILE_FL_PID_FILTER && trace_event_ignore_this_pid(trace_file) Then Return NULL
256  local_save_flags(flags)
257  pc = 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.
264  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PREEMPTION) Then pc--
266  trace_file = trace_file
268  event = trace_event_buffer_lock_reserve( & buffer, trace_file, type, len, flags, pc)
272  If Not event Then Return NULL
275  entry = g_buffer_event_data - return the data of the event*@event: the event to get the data from
276  Return entry
Caller
NameDescribe
trace_inject_entry
trace_event_raw_event_synth