函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-27 13:00:36
Last Modify:2020-03-17 19:30:04 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rb_advance_reader

函数原型:static void rb_advance_reader(struct ring_buffer_per_cpu *cpu_buffer)

返回类型:void

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
3812  reader等于rb_get_reader_page(cpu_buffer)
3815  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, !reader)则返回
3818  event等于rb_reader_event(cpu_buffer)
3820  如果type_len小于等于RINGBUF_TYPE_DATA_TYPE_LEN_MAXread自加
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
调用者
名称描述
rb_buffer_peek
ring_buffer_peekg_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_consumeg_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_pageg_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