函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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
112  cpu等于These macros fold the SMP functionality into a single CPU system()
113  如果此条件成立可能性大(为编译器优化)(!per_cpu(tracing_cpu, cpu))则返回:0
116  local_save_flags( * flags)
122  如果非设置中断标志( * flags)且非抢占计数值则返回:0
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_callqsoff uses its own tracer function to keep the overhead down: