函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static void ftrace_ops_assist_func(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *op, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
unsigned longip
unsigned longparent_ip
struct ftrace_ops *op
struct pt_regs *regs
6883  如果flags按位与FTRACE_OPS_FL_RCU且非_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则返回
6886  bit等于trace_test_and_set_recursion(TRACE_LIST_START, TRACE_LIST_MAX)
6887  如果bit小于0则返回
6890  preempt_disable_notrace()
6892  func(ip, parent_ip, op, regs)
6894  preempt_enable_notrace()
6895  trace_clear_recursion(bit)