Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\internal.h Create Date:2022-07-28 13:31:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_recursion_context

Proto:static inline int get_recursion_context(int *recursion)

Type:int

Parameter:

TypeParameterName
int *recursion
210  If Value for the false possibility is greater at compile time(in_nmi()) Then rctx = 3
212  Else if 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() () Then rctx = 2
214  Else if in_softirq() Then rctx = 1
216  Else rctx = 0
219  If recursion[rctx] Then Return -1
222  recursion[rctx]++
223  The "volatile" is due to gcc bugs ()
225  Return rctx
Caller
NameDescribe
perf_swevent_get_recursion_context
get_callchain_entry