函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:peek_next_entry

函数原型:static struct trace_entry *peek_next_entry(struct trace_iterator *iter, int cpu, u64 *ts, unsigned long *lost_events)

返回类型:struct trace_entry

参数:

类型参数名称
struct trace_iterator *iter
intcpu
u64 *ts
unsigned long *lost_events
3367  buf_iter等于trace_buffer_iter(iter, cpu)
3369  如果buf_iterevent等于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.
3371  否则event等于g_buffer_peek - peek at the next event to be read*@buffer: The ring buffer to read*@cpu: The cpu to peak at*@ts: The timestamp counter of this event
3375  如果event
3376  ent_size等于g_buffer_event_length - return the length of the event*@event: the event to get the length of* Returns the size of the data load of a data event.* If the event is something other than a data event, it* returns the size of the event itself
3377  返回:g_buffer_event_data - return the data of the event*@event: the event to get the data from
3379  ent_size等于0
3380  返回:NULL
调用者
名称描述
__find_next_entry