函数逻辑报告 |
Source Code:kernel\trace\trace_irqsoff.c |
Create Date:2022-07-27 13:15:59 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Prologue for the preempt and irqs off function tracers.* Returns 1 if it is OK to continue, and data->disabled is* incremented.* 0 if the trace is to be ignored, and data->disabled* is kept the same.* Note, this function is also used outside this ifdef but
函数原型:static int func_prolog_dec(struct trace_array *tr, struct trace_array_cpu **data, unsigned long *flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct trace_array * | tr | |
| struct trace_array_cpu ** | data | |
| unsigned long * | flags |
| 113 | 如果此条件成立可能性大(为编译器优化)(!per_cpu(tracing_cpu, cpu))则返回:0 |
| 116 | local_save_flags( * flags) |
| 125 | data等于per_cpu_ptr(data, cpu) |
| 126 | disabled等于atomic_inc_return( & disabled) |
| 128 | 如果此条件成立可能性大(为编译器优化)(disabled == 1)则返回:1 |
| 131 | atomic_dec( & disabled) |
| 133 | 返回:0 |
| 名称 | 描述 |
|---|---|
| irqsoff_tracer_call | qsoff uses its own tracer function to keep the overhead down: |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |