Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__ftrace_ops_list_func

Proto:static inline __attribute__((__always_inline__)) void __ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ignored, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
unsigned longip
unsigned longparent_ip
struct ftrace_ops *ignored
struct pt_regs *regs
6808  bit = trace_test_and_set_recursion(TRACE_LIST_START, TRACE_LIST_MAX)
6809  If bit < 0 Then Return
6816  preempt_disable_notrace()
6818  Traverse the ftrace_global_list, invoking all entries. The reason that we* can use rcu_dereference_raw_check() is that elements removed from this list* are simply leaked, so there is no need to interact with a grace-period* mechanism(op, ftrace_ops_list)
6820  If flags & FTRACE_OPS_FL_STUB Then Continue
6833  If FTRACE_WARN_ON(!func) Then
6834  pr_warn("op=%p %pS\n", op, op)
6835  Go to out
6837  func(ip, parent_ip, op, regs)
6840  out :
Caller
NameDescribe
ftrace_ops_no_opsSee comment below, where ftrace_ops_list_func is defined