Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:52:53
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return the length of the given event. Will return* the length of the time extend if the event is a* time extend.

Proto:static inline unsigned rb_event_length(struct ring_buffer_event *event)

Type:unsigned

Parameter:

TypeParameterName
struct ring_buffer_event *event
181  Case type_len == RINGBUF_TYPE_PADDING
182  If rb_null_event(event) Then Return -1
185  Return array[0] + RB_EVNT_HDR_SIZE
187  Case type_len == RINGBUF_TYPE_TIME_EXTEND
188  Return RB_LEN_TIME_EXTEND
190  Case type_len == RINGBUF_TYPE_TIME_STAMP
191  Return RB_LEN_TIME_STAMP
193  Case type_len == define RINGBUF_TYPE_DATA for 'case RINGBUF_TYPE_DATA:'
194  Return rb_event_data_length(event)
195  Default
196  BUG()
199  Return 0
Caller
NameDescribe
rb_event_ts_lengthReturn total length of time extend and data,* or just the event length for all other events.
ring_buffer_event_lengthg_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
rb_try_to_discard
rb_advance_reader
rb_advance_iter
ring_buffer_read_pageg_buffer_read_page - extract a page from the ring buffer*@buffer: buffer to extract from*@data_page: the page to use allocated from ring_buffer_alloc_read_page*@len: amount to extract*@cpu: the cpu of the buffer to extract