函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_advance_iter

函数原型:static void rb_advance_iter(struct ring_buffer_iter *iter)

返回类型:void

参数:

类型参数名称
struct ring_buffer_iter *iter
3835  cpu_buffer等于cpu_buffer
3840  如果head大于等于Size is determined by what has been committed
3842  如果head_page恒等于committed pages 则返回
3844  rb_inc_iter(iter)
3845  返回
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  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, (head_page == committed pages ) && (head + length > rb_commit_index(cpu_buffer)))则返回
3861  rb_update_iter_read_stamp(iter, event)
3863  head加等于length
3866  如果head大于等于Size is determined by what has been committed head_page不等于committed pages rb_inc_iter(iter)
调用者
名称描述
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.