函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 12:59:11 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:rb_remove_pages
函数原型:static int rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned long nr_pages)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer | |
unsigned long | nr_pages |
1504 | head_bit等于0 |
1507 | atomic_inc( & record_disabled) |
1531 | 以nr_removed小于nr_pages循环 |
1533 | head_bit或等于to_remove按位与RB_PAGE_HEAD |
1560 | read等于0 |
1563 | atomic_dec( & record_disabled) |
1564 | raw_spin_unlock_irq( & serialize readers ) |
1571 | tmp_iter_page等于first_page |
1573 | 循环 |
1574 | cond_resched() |
1576 | to_remove_page等于tmp_iter_page |
1577 | rb_inc_page(cpu_buffer, & tmp_iter_page) |
1581 | 如果page_entries则 |
1588 | local_add(page_entries, & overrun) |
1589 | local_sub(BUF_PAGE_SIZE, & entries_bytes) |
1597 | nr_removed自减 |
1599 | 当to_remove_page不等于last_page循环 |
1603 | 返回:nr_removed恒等于0 |
名称 | 描述 |
---|---|
rb_update_pages |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |