Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trace_test_and_set_recursion

Proto:static __always_inline int trace_test_and_set_recursion(int start, int max)

Type:int

Parameter:

TypeParameterName
intstart
intmax
648  val = trace_recursion
652  If (val & TRACE_CONTEXT_MASK) > max Then Return 0
655  bit = trace_get_context_bit() + start
656  If Value for the false possibility is greater at compile time(val & (1 << bit)) Then Return -1
659  val |= 1 << bit
660  trace_recursion = val
661  The "volatile" is due to gcc bugs ()
663  Return bit
Caller
NameDescribe
function_trace_call
__ftrace_ops_list_func
ftrace_ops_assist_funcIf there's only one function registered but it does not support* recursion, needs RCU protection and/or requires per cpu handling, then* this function will be called by the mcount trampoline.