Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:01:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:tracing_entries_read
Proto:static ssize_t tracing_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
char __user * | ubuf | |
size_t | cnt | |
loff_t * | ppos |
6342 | inode = file_inode(filp) |
6343 | tr = s or device private pointer |
6344 | cpu = Should be used after trace_array_get(), trace_types_lock* ensures that i_cdev was already initialized. |
6346 | r = 0 |
6351 | If cpu == RING_BUFFER_ALL_CPUS Then |
6355 | size = 0 |
6356 | buf_size_same = 1 |
6358 | for_each_tracing_cpu(cpu) |
6361 | })->entries |
6362 | if (size != ({ |
6362 | })->entries) |
6363 | buf_size_same = 0 |
6364 | Break |
6368 | If buf_size_same Then |
6369 | If Not On boot up, the ring buffer is set to the minimum size, so that* we do not waste memory on systems that are not using tracing. Then r = sprintf(buf, "%lu (expanded: %lu)\n", size >> 10, trace_buf_size >> 10) |
6383 | 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 |