Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rb_advance_iter

Proto:static void rb_advance_iter(struct ring_buffer_iter *iter)

Type:void

Parameter:

TypeParameterName
struct ring_buffer_iter *iter
3835  cpu_buffer = cpu_buffer
3840  If head >= Size is determined by what has been committed Then
3842  If head_page == committed pages Then Return
3844  rb_inc_iter(iter)
3845  Return
3848  event = rb_iter_head_event(iter)
3850  length = Return the length of the given event. Will return* the length of the time extend if the event is a* time extend.
3856  If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, (head_page == committed pages ) && (head + length > rb_commit_index(cpu_buffer))) Then Return
3861  rb_update_iter_read_stamp(iter, event)
3863  head += length
3866  If head >= Size is determined by what has been committed && head_page != committed pages Then rb_inc_iter(iter)
Caller
NameDescribe
rb_iter_peek
ring_buffer_readg_buffer_read - read the next item in the ring buffer by the iterator*@iter: The ring buffer iterator*@ts: The time stamp of the event read.* This reads the next event in the ring buffer and increments the iterator.