Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:55:18 |
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_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
Proto:struct ring_buffer_event *ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts, unsigned long *lost_events)
Type:struct ring_buffer_event
Parameter:
Type | Parameter | Name |
---|---|---|
struct ring_buffer * | buffer | |
int | cpu | |
u64 * | ts | |
unsigned long * | lost_events |
4083 | cpu_buffer = buffers[cpu] |
4088 | 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 |
4091 | again : |
4092 | local_irq_save(flags) |
4093 | dolock = rb_reader_lock(cpu_buffer) |
4094 | event = rb_buffer_peek(cpu_buffer, ts, lost_events) |
4095 | If event && type_len == RINGBUF_TYPE_PADDING Then rb_advance_reader(cpu_buffer) |
4097 | rb_reader_unlock(cpu_buffer, dolock) |
4098 | local_irq_restore(flags) |
4100 | If event && type_len == RINGBUF_TYPE_PADDING Then Go to again |
4103 | Return event |
Name | Describe |
---|---|
peek_next_entry | |
get_return_for_leaf |
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 |