Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:02:41 |
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_read
Proto:static ssize_t tracing_buffers_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
char __user * | ubuf | |
size_t | count | |
loff_t * | ppos |
7348 | ret = 0 |
7351 | If Not count Then Return 0 |
7359 | If Not spare Then |
7360 | spare = g_buffer_alloc_read_page - allocate a page to read from buffer*@buffer: the buffer to allocate for |
7365 | Else |
7376 | again : |
7377 | trace_access_lock(cpu_file) |
7382 | trace_access_unlock(cpu_file) |
7384 | If ret < 0 Then |
7385 | If trace_empty(iter) Then |
7395 | Return 0 |
7398 | read = 0 |
7399 | read : |
7413 | Return size |
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 |