Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:00:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tracing_open
Proto:static int tracing_open(struct inode *inode, struct file *file)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
struct file * | file |
4351 | tr = s or device private pointer |
4355 | ret = tracing_check_open_get_tr(tr) |
4360 | If f_mode & le is open for writing && f_flags & O_TRUNC Then |
4361 | cpu = Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized. |
4362 | trace_buf = trace_buffer |
4369 | If cpu == RING_BUFFER_ALL_CPUS Then tracing_reset_online_cpus(trace_buf) |
4371 | Else tracing_reset_cpu(trace_buf, cpu) |
4375 | If f_mode & le is open for reading Then |
4376 | iter = __tracing_open(inode, file, false) |
4379 | Else if trace_flags & TRACE_ITER_LATENCY_FMT Then iter_flags |= TRACE_FILE_LAT_FMT |
4386 | 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 |