函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:read_event

函数原型:static enum event_status read_event(int cpu)

返回类型:enum event_status

参数:

类型参数名称
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  如果非event则返回:EVENT_DROPPED
95  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
96  如果entry不等于cpu
97  TEST_ERROR()
98  返回:EVENT_DROPPED
101  read自加
102  返回:EVENT_FOUND
调用者
名称描述
ring_buffer_consumer