Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:55:36 |
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_alloc_read_page - allocate a page to read from buffer*@buffer: the buffer to allocate for
Proto:void *ring_buffer_alloc_read_page(struct ring_buffer *buffer, int cpu)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct ring_buffer * | buffer | |
int | cpu |
4596 | struct buffer_data_page * bpage = NULL |
4603 | cpu_buffer = buffers[cpu] |
4604 | local_irq_save(flags) |
4605 | r sched/core.c and kernel_lock.c: ( & lock) |
4607 | If free_page Then |
4612 | arch_spin_unlock( & lock) |
4613 | local_irq_restore(flags) |
4618 | page = Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online. |
4623 | bpage = page_address(page) |
4625 | out : |
4626 | rb_init_page(bpage) |
4628 | Return bpage |
Name | Describe |
---|---|
read_page | |
tracing_buffers_read | |
tracing_buffers_splice_read |
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 |