函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-27 13:05:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:tracing_iter_reset

函数原型:void tracing_iter_reset(struct trace_iterator *iter, int cpu)

返回类型:void

参数:

类型参数名称
struct trace_iterator *iter
intcpu
3499  entries等于0
3502  ({
3502  cpu
3502  ({
3502  循环
3502  const void * __vpp_verify = NULL
3502  当0循环
3502  data
3502  })
3502  })->skipped_entries = 0
3504  buf_iter等于trace_buffer_iter(iter, cpu)
3505  如果非buf_iter则返回
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 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.循环
3516  如果ts大于等于time_start退出
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  循环
3522  const void * __vpp_verify = NULL
3522  当0循环
3522  data
3522  })
3522  })->skipped_entries = entries
调用者
名称描述
s_startThe current tracer is copied to avoid a global locking* all around.
__tracing_open
ftrace_dump_buf