函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events.c Create Date:2022-07-27 13:25:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:trace_event_buffer_reserve

函数原型:void *trace_event_buffer_reserve(struct trace_event_buffer *fbuffer, struct trace_event_file *trace_file, unsigned long len)

返回类型:void

参数:

类型参数名称
struct trace_event_buffer *fbuffer
struct trace_event_file *trace_file
unsigned longlen
250  event_call等于event_call
252  如果* 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_FILTERtrace_event_ignore_this_pid(trace_file)则返回:NULL
256  local_save_flags(flags)
257  pc等于抢占计数值
264  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PREEMPTION)则pc自减
266  trace_file等于trace_file
268  event等于trace_event_buffer_lock_reserve( & buffer, trace_file, type, len, flags, pc)
272  如果非event则返回:NULL
275  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
276  返回:entry
调用者
名称描述
trace_inject_entry
trace_event_raw_event_synth