Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-28 11:59:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_iter_reset

Proto:void tracing_iter_reset(struct trace_iterator *iter, int cpu)

Type:void

Parameter:

TypeParameterName
struct trace_iterator *iter
intcpu
3499  entries = 0
3502  ({
3502  cpu
3502  ({
3502  Do
3502  const void * __vpp_verify = NULL
3502  When 0 cycle
3502  data
3502  })
3502  })->skipped_entries = 0
3504  buf_iter = trace_buffer_iter(iter, cpu)
3505  If Not buf_iter Then Return
3508  g_buffer_iter_reset - reset an iterator*@iter: The iterator to reset* Resets the iterator, so that it will start from the beginning* again.
3515  When event = 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. cycle
3516  If ts >= time_start Then Break
3518  entries++
3519  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.
3522  ({
3522  cpu
3522  ({
3522  Do
3522  const void * __vpp_verify = NULL
3522  When 0 cycle
3522  data
3522  })
3522  })->skipped_entries = entries
Caller
NameDescribe
s_startThe current tracer is copied to avoid a global locking* all around.
__tracing_open
ftrace_dump_buf