Function report |
Source Code:kernel\trace\ftrace.c |
Create Date:2022-07-28 12:46:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ftrace_enable_sysctl
Proto:int ftrace_enable_sysctl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ctl_table * | table | |
int | write | |
void __user * | buffer | |
size_t * | lenp | |
loff_t * | ppos |
7285 | mutex_lock( & ftrace_lock) |
7287 | If Value for the false possibility is greater at compile time(race_disabled is set when an anomaly is discovered.* ftrace_disabled is much stronger than ftrace_enabled.) Then Go to out |
7290 | ret = read a vector of integers |
7292 | If ret || Not write || last_ftrace_enabled == Not Not race_enabled is a method to turn ftrace on or off Then Go to out |
7295 | If race_enabled is a method to turn ftrace on or off Then |
7302 | ftrace_startup_sysctl() |
7304 | Else |
7305 | If is_permanent_ops_registered() Then |
7312 | ftrace_trace_function = ftrace_stub |
7314 | ftrace_shutdown_sysctl() |
7318 | out : |
7320 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |