函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ftrace_enable_sysctl

函数原型:int ftrace_enable_sysctl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

返回类型:int

参数:

类型参数名称
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
7283  ret等于负ENODEV
7285  mutex_lock( & ftrace_lock)
7287  如果此条件成立可能性小(为编译器优化)(race_disabled is set when an anomaly is discovered.* ftrace_disabled is much stronger than ftrace_enabled.)则转到:out
7290  ret等于读sysctl整数向量
7292  如果ret或非writelast_ftrace_enabled恒等于非非race_enabled is a method to turn ftrace on or off 则转到:out
7295  如果race_enabled is a method to turn ftrace on or off
7298  如果cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(ftrace_ops_list, lockdep_is_held( & ftrace_lock))不等于ftrace_list_endupdate_ftrace_function()
7302  ftrace_startup_sysctl()
7304  否则
7305  如果is_permanent_ops_registered()则
7307  ret等于负EBUSY
7308  转到:out
7312  ftrace_trace_function等于ftrace_stub
7314  ftrace_shutdown_sysctl()
7317  last_ftrace_enabled等于非非race_enabled is a method to turn ftrace on or off
7318  out :
7319  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
7320  返回:ret