函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_recursion_context

函数原型:static inline int get_recursion_context(int *recursion)

返回类型:int

参数:

类型参数名称
int *recursion
210  如果此条件成立可能性小(为编译器优化)(in_nmi())则rctx等于3
212  否则如果Are we doing bottom half or hardware interrupt processing?* in_irq() - We're in (hard) IRQ context* in_softirq() - We have BH disabled, or are processing softirqs* in_interrupt() - We're in NMI,IRQ,SoftIRQ context or have BH disabled* in_serving_softirq() ()则rctx等于2
214  否则如果in_softirq()则rctx等于1
216  否则rctx等于0
219  如果recursion[rctx]则返回:负1
222  recursion[rctx]自加
223  The "volatile" is due to gcc bugs ()
225  返回:rctx
调用者
名称描述
perf_swevent_get_recursion_context
get_callchain_entry