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:26
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:struct ring_buffer_event *ring_buffer_read(struct ring_buffer_iter *iter, u64 *ts)

Type:struct ring_buffer_event

Parameter:

TypeParameterName
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  If Not event Then Go to out
4320  If type_len == RINGBUF_TYPE_PADDING Then Go to again
4323  rb_advance_iter(iter)
4324  out :
4325  raw_spin_unlock_irqrestore( & serialize readers , flags)
4327  Return event
Caller
NameDescribe
trace_iterator_increment
tracing_iter_reset
get_return_for_leaf