函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 12:58:14
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:g_buffer_event_length - return the length of the event*@event: the event to get the length of* Returns the size of the data load of a data event.* If the event is something other than a data event, it* returns the size of the event itself

函数原型:unsigned ring_buffer_event_length(struct ring_buffer_event *event)

返回类型:unsigned

参数:

类型参数名称
struct ring_buffer_event *event
233  如果extended_time(event)则event等于skip_time_extend(event)
236  length等于Return the length of the given event. Will return* the length of the time extend if the event is a* time extend.
237  如果type_len大于RINGBUF_TYPE_DATA_TYPE_LEN_MAX则返回:length
239  length减等于RB_EVNT_HDR_SIZE
240  如果length大于RB_MAX_SMALL_DATAarray[0]的长度则length减等于array[0]的长度
242  返回:length
调用者
名称描述
trace_process_export
peek_next_entry