函数逻辑报告 |
Source Code:kernel\profile.c |
Create Date:2022-07-27 11:37:31 |
Last Modify:2020-03-17 15:11:09 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function accesses profiling information. The returned data is* binary: the sampling step and the actual contents of the profile* buffer. Use of the program readprofile is recommended in order to* get meaningful info out of these data.
函数原型:static ssize_t read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
char __user * | buf | |
size_t | count | |
loff_t * | ppos |
471 | sample_step等于1左移prof_shift位 |
473 | profile_flip_buffers() |
478 | read等于0 |
481 | 如果put_user - Write a simple value into user space( * ((char * )( & sample_step) + p), buf)则返回:负EFAULT |
483 | buf自加 |
483 | p自加 |
483 | count自减 |
483 | read自加 |
485 | pnt等于prof_buffer加p减sizeof(atomic_t) |
486 | 如果copy_to_user(buf, (void * )pnt, count)则返回:负EFAULT |
490 | 返回:read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |