Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.h Create Date:2022-07-28 11:51:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_get_context_bit

Proto:static __always_inline int trace_get_context_bit(void)

Type:int

Parameter:Nothing

632  If in_interrupt() Then
633  If in_nmi() Then bit = 0
636  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 bit = 1
638  Else bit = 2
640  Else bit = 3
643  Return bit