| Function report | 
| Source Code: kernel\trace\trace.c | Create Date:2022-07-28 12:01:33 | 
| 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_pipe
Proto:static int tracing_open_pipe(struct inode *inode, struct file *filp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct file * | filp | 
| 5947 | tr = s or device private pointer | 
| 5951 | ret = tracing_check_open_get_tr(tr) | 
| 5958 | iter = 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). | 
| 5959 | If Not iter Then | 
| 5966 | trace = current_trace | 
| 5968 | If Not alloc_cpumask_var( & started, GFP_KERNEL) Then | 
| 5976 | If trace_flags & TRACE_ITER_LATENCY_FMT Then iter_flags |= TRACE_FILE_LAT_FMT | 
| 5980 | If is this clock in nanoseconds? Then iter_flags |= TRACE_FILE_TIME_IN_NS | 
| 5984 | trace_buffer = trace_buffer | 
| 5985 | cpu_file = Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized. | 
| 5986 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & mutex) | 
| 5992 | nonseekable_open(inode, filp) | 
| 5994 | ref++ | 
| 5995 | out : | 
| 5997 | Return ret | 
| 5999 | fail : | 
| 6001 | __trace_array_put(tr) | 
| 6003 | 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 |