| 函数逻辑报告 | 
| Source Code: kernel\trace\trace.c | Create Date:2022-07-27 13:05:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__find_next_entry
函数原型:static struct trace_entry *__find_next_entry(struct trace_iterator *iter, int *ent_cpu, unsigned long *missing_events, u64 *ent_ts)
返回类型:struct trace_entry
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct trace_iterator * | iter | |
| int * | ent_cpu | |
| unsigned long * | missing_events | |
| u64 * | ent_ts | 
| 3388 | struct trace_entry * ent, * next = NULL | 
| 3389 | lost_events等于0, next_lost等于0 | 
| 3391 | next_ts等于0 | 
| 3392 | next_cpu等于负1 | 
| 3393 | next_size等于0 | 
| 3400 | 如果cpu_file大于RING_BUFFER_ALL_CPUS则 | 
| 3401 | 如果g_buffer_empty_cpu - is a cpu buffer of a ring buffer empty?*@buffer: The ring buffer*@cpu: The CPU buffer to test则返回:NULL | 
| 3403 | ent等于peek_next_entry(iter, cpu_file, ent_ts, missing_events) | 
| 3407 | 返回:ent | 
| 3410 | for_each_tracing_cpu(cpu) | 
| 3412 | 如果g_buffer_empty_cpu - is a cpu buffer of a ring buffer empty?*@buffer: The ring buffer*@cpu: The CPU buffer to test则继续下一循环 | 
| 3415 | ent等于peek_next_entry(iter, cpu, & ts, & lost_events) | 
| 3437 | 如果missing_events则missing_events等于next_lost | 
| 3440 | 返回:next | 
| 名称 | 描述 | 
|---|---|
| trace_find_next_entry | Find the next real entry, without updating the iterator itself | 
| trace_find_next_entry_inc | Find the next real entry, and increment the iterator to the next entry | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |