函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_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.

函数原型:static int rb_check_pages(struct ring_buffer_per_cpu *cpu_buffer)

返回类型:int

参数:

类型参数名称
struct ring_buffer_per_cpu *cpu_buffer
1156  head等于pages
1160  如果ad from head rb_set_head_page(cpu_buffer)
1163  _head_page_deactivate - clears head page ptr (for free list)
1165  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 链表前项 != head)则返回:负1
1167  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 链表后项 != head)则返回:负1
1170  如果_check_list - make sure a pointer to a list has the last bits zero则返回:负1
1174  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 链表前项 != & list of buffer pages )则返回:负1
1177  如果uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, 链表后项 != & list of buffer pages )则返回:负1
1180  如果_check_list - make sure a pointer to a list has the last bits zero则返回:负1
1184  _head_page_activate - sets up head page
1186  返回:0
调用者
名称描述
rb_allocate_pages
ring_buffer_resizeg_buffer_resize - resize the ring buffer*@buffer: the buffer to resize.*@size: the new size.*@cpu_id: the cpu buffer to resize* Minimum size is 2 * BUF_PAGE_SIZE.* Returns 0 on success and < 0 on failure.
ring_buffer_read_finishg_buffer_read_finish - finish reading the iterator of the buffer*@iter: The iterator retrieved by ring_buffer_start* This re-enables the recording to the buffer, and frees the* iterator.