函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:function_trace_call

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

返回类型:void

参数:

类型参数名称
unsigned longip
unsigned longparent_ip
struct ftrace_ops *op
struct pt_regs *pt_regs
128  tr等于private
135  如果此条件成立可能性小(为编译器优化)(! function tracing enabled )则返回
138  pc等于抢占计数值
139  preempt_disable_notrace()
141  bit等于trace_test_and_set_recursion(TRACE_FTRACE_START, TRACE_FTRACE_MAX)
142  如果bit小于0则转到:out
145  cpu等于当前cpu ID()
146  data等于per_cpu_ptr(data, cpu)
147  如果非atomic_read( & disabled)则
148  local_save_flags(flags)
149  trace_function(tr, ip, parent_ip, flags, pc)
151  trace_clear_recursion(bit)
153  out :
154  preempt_enable_notrace()