函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:09:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tracing_stats_read
函数原型:static ssize_t tracing_stats_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
char __user * | ubuf | |
size_t | count | |
loff_t * | ppos |
7616 | inode等于file_inode(filp) |
7618 | trace_buf等于trace_buffer |
7619 | cpu等于Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized. |
7629 | trace_seq_init(s) |
7631 | cnt等于g_buffer_entries_cpu - get the number of entries in a cpu buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to get the entries from. |
7637 | cnt等于g_buffer_commit_overrun_cpu - get the number of overruns caused by* commits failing due to the buffer wrapping around while there are uncommitted* events, such as during an interrupt storm |
7640 | cnt等于g_buffer_bytes_cpu - get the number of bytes consumed in a cpu buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to read from. |
7643 | 如果 is this clock in nanoseconds? 则 |
7645 | t等于ns2usecs(g_buffer_oldest_event_ts - get the oldest event timestamp from the buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to read from.) |
7650 | t等于ns2usecs(ring_buffer_time_stamp(buffer, cpu)) |
7653 | 否则 |
7665 | cnt等于g_buffer_read_events_cpu - get the number of events successfully read*@buffer: The ring buffer*@cpu: The per CPU buffer to get the number of events read |
7673 | 返回:count |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |