Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:If 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.

Proto:static void ftrace_ops_assist_func(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
unsigned longip
unsigned longparent_ip
struct ftrace_ops *op
struct pt_regs *regs
6883  If flags & FTRACE_OPS_FL_RCU && Not _is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections Then Return
6886  bit = trace_test_and_set_recursion(TRACE_LIST_START, TRACE_LIST_MAX)
6887  If bit < 0 Then Return
6890  preempt_disable_notrace()
6892  func(ip, parent_ip, op, regs)
6894  preempt_enable_notrace()
6895  trace_clear_recursion(bit)