函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_set_head_page

函数原型:static struct buffer_page *rb_set_head_page(struct ring_buffer_per_cpu *cpu_buffer)

返回类型:struct buffer_page

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
1014  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, !ad from head )则返回:NULL
1018  list等于pages
1019  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, _list_head - remove any bit != list)则返回:NULL
1022  page等于head等于ad from head
1029 i小于3循环
1030  循环
1032  ad from head 等于page
1033  返回:page
1036 page不等于head循环
1039  uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 1)
1041  返回:NULL
调用者
名称描述
rb_check_pages_check_pages - integrity check of buffer pages*@cpu_buffer: CPU buffer with pages to test* As a safety measure we check to make sure the data pages have not* been corrupted.
rb_insert_pages
rb_inc_iter
rb_per_cpu_empty
ring_buffer_oldest_event_tsg_buffer_oldest_event_ts - get the oldest event timestamp from the buffer*@buffer: The ring buffer*@cpu: The per CPU buffer to read from.
rb_get_reader_page