函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Reset the state of the trace_iterator so that it can read consumed data.* Normally, the trace_iterator is used for reading the data when it is not* consumed, and must retain state.

函数原型:static __always_inline void trace_iterator_reset(struct trace_iterator *iter)

返回类型:void

参数:

类型参数名称
struct trace_iterator *iter
2014  offset等于offsetof(structtrace_iterator, seq)
2020  memset((char * )iter + offset, 0, sizeof(structtrace_iterator) - offset)
2022  pos等于负1
调用者
名称描述
ftrace_dump
ftrace_dump_buf