函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_sched_wakeup.c Create Date:2022-07-27 13:16:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:禁用抢占和中断

函数原型:static int func_prolog_preempt_disable(struct trace_array *tr, struct trace_array_cpu **data, int *pc)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
struct trace_array_cpu **data
int *pc
75  如果此条件成立可能性大(为编译器优化)(!wakeup_task)则返回:0
78  pc等于抢占计数值
79  preempt_disable_notrace()
81  cpu等于These macros fold the SMP functionality into a single CPU system()
82  如果cpu不等于wakeup_current_cpu则转到:out_enable
85  data等于per_cpu_ptr(data, cpu)
86  disabled等于atomic_inc_return( & disabled)
87  如果此条件成立可能性小(为编译器优化)(disabled != 1)则转到:out
90  返回:1
92  out :
93  atomic_dec( & disabled)
95  out_enable :
96  preempt_enable_notrace()
97  返回:0
调用者
名称描述
wakeup_tracer_callwakeup uses its own tracer function to keep the overhead down: