Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:55:23 |
| Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:g_buffer_read_prepare - Prepare for a non consuming read of the buffer*@buffer: The ring buffer to read from*@cpu: The cpu buffer to iterate over*@flags: gfp flags to use for memory allocation* This performs the initial preparations necessary to iterate
Proto:struct ring_buffer_iter *ring_buffer_read_prepare(struct ring_buffer *buffer, int cpu, gfp_t flags)
Type:struct ring_buffer_iter
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ring_buffer * | buffer | |
| int | cpu | |
| gfp_t | flags |
| 4209 | If Not pumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0 Then Return NULL |
| 4212 | iter = Allocation memory |
| 4213 | If Not iter Then Return NULL |
| 4216 | cpu_buffer = buffers[cpu] |
| 4218 | cpu_buffer = cpu_buffer |
| 4220 | atomic_inc( & resize_disabled) |
| 4221 | atomic_inc( & record_disabled) |
| 4223 | Return iter |
| Name | Describe |
|---|---|
| __tracing_open | |
| ftrace_dump_buf |
| 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 |