函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:g_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.

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

返回类型:struct ring_buffer_event

参数:

类型参数名称
struct ring_buffer_iter *iter
u64 *ts
4311  cpu_buffer等于cpu_buffer
4314  raw_spin_lock_irqsave( & serialize readers , flags)
4315  again :
4316  event等于rb_iter_peek(iter, ts)
4317  如果非event则转到:out
4320  如果type_len恒等于RINGBUF_TYPE_PADDING则转到:again
4323  rb_advance_iter(iter)
4324  out :
4325  raw_spin_unlock_irqrestore( & serialize readers , flags)
4327  返回:event
调用者
名称描述
trace_iterator_increment
tracing_iter_reset
get_return_for_leaf