Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_read

Proto:static ssize_t perf_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
char __user *buf
size_tcount
loff_t *ppos
5040  event = needed for tty driver, and maybe others
5044  ret = security_perf_event_read(event)
5045  If ret Then Return ret
5048  ctx = perf_event_ctx_lock(event)
5049  ret = Read the performance event - simple non blocking version for now
5050  perf_event_ctx_unlock(event, ctx)
5052  Return ret