函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__register_ftrace_function

函数原型:int __register_ftrace_function(struct ftrace_ops *ops)

返回类型:int

参数:

类型参数名称
struct ftrace_ops *ops
310  如果flags按位与FTRACE_OPS_FL_DELETED则返回:负EINVAL
313  如果WARN_ON(flags & FTRACE_OPS_FL_ENABLED)则返回:负EBUSY
322  如果flags按位与FTRACE_OPS_FL_SAVE_REGS且非flags按位与FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTED的值则返回:负EINVAL
326  如果flags按位与FTRACE_OPS_FL_SAVE_REGS_IF_SUPPORTEDflags或等于FTRACE_OPS_FL_SAVE_REGS
329  如果非race_enabled is a method to turn ftrace on or off flags按位与FTRACE_OPS_FL_PERMANENT则返回:负EBUSY
332  如果非re_kernel_data - tell if addr points to kernel data*@addr: address to test* Returns true if @addr passed in is from the core kernel data* section.* Note: On some archs it may return true for core RODATA, and false* for othersflags或等于FTRACE_OPS_FL_DYNAMIC
335  add_ftrace_ops( & ftrace_ops_list, ops)
338  saved_func等于func
340  如果ftrace_pids_enabled(ops)则func等于ftrace_pid_func
343  ftrace_update_trampoline(ops)
345  如果race_enabled is a method to turn ftrace on or off update_ftrace_function()
348  返回:0