Function report |
Source Code:kernel\trace\trace_events.c |
Create Date:2022-07-28 12:19:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_enable_write
Proto:static ssize_t event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filp | |
| const char __user * | ubuf | |
| size_t | cnt | |
| loff_t * | ppos |
| 1090 | ret = kstrtoul_from_user(ubuf, cnt, 10, & val) |
| 1094 | ret = racing_update_buffers - used by tracing facility to expand ring buffers* To save on memory when the tracing is never used on a system with it* configured in |
| 1099 | Case val == 0 |
| 1100 | Case val == 1 |
| 1102 | mutex_lock( & event_mutex) |
| 1103 | file = event_file_data(filp) |
| 1104 | If Value is more likely to compile time(file) Then ret = ftrace_event_enable_disable(file, val) |
| 1107 | Break |
| 1109 | Default |
| 1110 | Return -EINVAL |
| 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 |