函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:g_buffer_iter_peek - peek at the next event to be read*@iter: The ring buffer iterator*@ts: The timestamp counter of this event.* This will return the event that will be read next, but does* not increment the iterator.

函数原型:struct ring_buffer_event *ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts)

返回类型:struct ring_buffer_event

参数:

类型参数名称
struct ring_buffer_iter *iter
u64 *ts
4117  cpu_buffer等于cpu_buffer
4121  again :
4122  raw_spin_lock_irqsave( & serialize readers , flags)
4123  event等于rb_iter_peek(iter, ts)
4124  raw_spin_unlock_irqrestore( & serialize readers , flags)
4126  如果eventtype_len恒等于RINGBUF_TYPE_PADDING则转到:again
4129  返回:event
调用者
名称描述
peek_next_entry
tracing_iter_reset
get_return_for_leaf