Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:peek_next_entry

Proto:static struct trace_entry *peek_next_entry(struct trace_iterator *iter, int cpu, u64 *ts, unsigned long *lost_events)

Type:struct trace_entry

Parameter:

TypeParameterName
struct trace_iterator *iter
intcpu
u64 *ts
unsigned long *lost_events
3367  buf_iter = trace_buffer_iter(iter, cpu)
3369  If buf_iter Then 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.
3371  Else 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  If event Then
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  Return g_buffer_event_data - return the data of the event*@event: the event to get the data from
3379  ent_size = 0
3380  Return NULL
Caller
NameDescribe
__find_next_entry