函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 12:59:54 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:The lock and unlock are done within a preempt disable section
函数原型:static __always_inline int trace_recursive_lock(struct ring_buffer_per_cpu *cpu_buffer)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer |
2694 | val等于current_context |
2698 | 如果非pc按位与NMI_MASK按位或HARDIRQ_MASK按位或SOFTIRQ_OFFSET的值的值则bit等于RB_CTX_NORMAL |
2700 | 否则bit等于如果如果pc按位与NMI_MASK则RB_CTX_NMI否则pc按位与HARDIRQ_MASK则RB_CTX_IRQ否则RB_CTX_SOFTIRQ |
2704 | 如果此条件成立可能性小(为编译器优化)(val & (1 << (bit + nest)))则返回:1 |
2708 | current_context等于val |
2710 | 返回:0 |
名称 | 描述 |
---|---|
ring_buffer_lock_reserve | g_buffer_lock_reserve - reserve a part of the buffer*@buffer: the ring buffer to reserve from*@length: the length of the data to reserve (excluding event header)* Returns a reserved event on the ring buffer to copy directly to |
ring_buffer_write | g_buffer_write - write data to the buffer without reserving*@buffer: The ring buffer to write to |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |