Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:55:07 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rb_advance_reader
Proto:static void rb_advance_reader(struct ring_buffer_per_cpu *cpu_buffer)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer |
3812 | reader = rb_get_reader_page(cpu_buffer) |
3815 | If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, !reader) Then Return |
3818 | event = rb_reader_event(cpu_buffer) |
3820 | If type_len <= RINGBUF_TYPE_DATA_TYPE_LEN_MAX Then read++ |
3823 | rb_update_read_stamp(cpu_buffer, event) |
3825 | length = Return the length of the given event. Will return* the length of the time extend if the event is a* time extend. |
3826 | dex for next read += length |
Name | Describe |
---|---|
rb_buffer_peek | |
ring_buffer_peek | g_buffer_peek - peek at the next event to be read*@buffer: The ring buffer to read*@cpu: The cpu to peak at*@ts: The timestamp counter of this event |
ring_buffer_consume | g_buffer_consume - return an event and consume it*@buffer: The ring buffer to get the next event from*@cpu: the cpu to read the buffer from*@ts: a variable to store the timestamp (may be NULL)*@lost_events: a variable to store if events were lost (may be |
ring_buffer_read_page | g_buffer_read_page - extract a page from the ring buffer*@buffer: buffer to extract from*@data_page: the page to use allocated from ring_buffer_alloc_read_page*@len: amount to extract*@cpu: the cpu of the buffer to extract |
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 |