函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 12:59:42 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rb_try_to_discard
函数原型:static inline int rb_try_to_discard(struct ring_buffer_per_cpu *cpu_buffer, struct ring_buffer_event *event)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer | |
struct ring_buffer_event * | event |
2423 | new_index等于rb_event_index(event) |
2424 | old_index等于new_index加Return total length of time extend and data,* or just the event length for all other events. |
2428 | bpage等于READ_ONCE(write to tail ) |
2430 | 如果Actual data page 恒等于addr且rb_page_write(bpage)恒等于old_index则 |
2433 | event_length等于Return the length of the given event. Will return* the length of the time extend if the event is a* time extend. |
2440 | old_index加等于write_mask |
2441 | new_index加等于write_mask |
2442 | index等于local_cmpxchg( & dex for next write , old_index, new_index) |
2445 | local_sub(event_length, & entries_bytes) |
2446 | 返回:1 |
2451 | 返回:0 |
名称 | 描述 |
---|---|
ring_buffer_discard_commit | g_buffer_commit_discard - discard an event that has not been committed*@buffer: the ring buffer*@event: non committed event to discard* Sometimes an event that is in the ring buffer needs to be ignored |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |