函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:54:34
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_read

函数原型:static ssize_t perf_read(struct file *file, char __user *buf, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
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  如果ret则返回: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  返回:ret