Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:read_event

Proto:static enum event_status read_event(int cpu)

Type:enum event_status

Parameter:

TypeParameterName
intcpu
91  event = g_buffer_consume - return an event and consume it*@buffer: The ring buffer to get the next event from*@cpu: the cpu to read the buffer from*@ts: a variable to store the timestamp (may be NULL)*@lost_events: a variable to store if events were lost (may be
92  If Not event Then Return EVENT_DROPPED
95  entry = g_buffer_event_data - return the data of the event*@event: the event to get the data from
96  If entry != cpu Then
97  TEST_ERROR()
98  Return EVENT_DROPPED
101  read++
102  Return EVENT_FOUND
Caller
NameDescribe
ring_buffer_consumer