Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:02:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tracing_buffers_open
Proto:static int tracing_buffers_open(struct inode *inode, struct file *filp)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
struct file * | filp |
7296 | tr = s or device private pointer |
7300 | ret = tracing_check_open_get_tr(tr) |
7304 | info = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
7305 | If Not info Then |
7307 | Return -ENOMEM |
7313 | cpu_file = Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized. |
7314 | trace = current_trace |
7315 | trace_buffer = trace_buffer |
7316 | spare = NULL |
7318 | read = (unsigned int) - 1 |
7322 | ref++ |
7326 | ret = nonseekable_open(inode, filp) |
7330 | 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 |