Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:35:05
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Read the performance event - simple non blocking version for now

Proto:static ssize_t __perf_read(struct perf_event *event, char __user *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
struct perf_event *event
char __user *buf
size_tcount
5014  read_format = read_format
5022  If state == PERF_EVENT_STATE_ERROR Then Return 0
5025  If count < read_size Then Return -ENOSPC
5028  WARN_ON_ONCE(parent_ctx)
5029  If read_format & PERF_FORMAT_GROUP Then ret = perf_read_group(event, read_format, buf)
5031  Else ret = perf_read_one(event, read_format, buf)
5034  Return ret
Caller
NameDescribe
perf_read