函数逻辑报告 |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-27 13:01:21 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:We only allocate new buffers, never free them if the CPU goes down.* If we were to free the buffer, then the user would lose any trace that was in* the buffer.
函数原型:int trace_rb_cpu_prepare(unsigned int cpu, struct hlist_node *node)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | cpu | |
struct hlist_node * | node |
4877 | 如果测试CPU信息则返回:0 |
4880 | nr_pages等于0 |
4881 | nr_pages_same等于1 |
4883 | for_each_buffer_cpu(buffer, cpu_i) |
4893 | 如果非nr_pages_same则nr_pages等于2 |
4902 | smp_wmb() |
4903 | 设置CPU信息 |
4904 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |