Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\ring_buffer.c Create Date:2022-07-28 11:53:28
Last Modify:2020-03-17 19:30:04 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_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.

Proto:static int rb_check_pages(struct ring_buffer_per_cpu *cpu_buffer)

Type:int

Parameter:

TypeParameterName
struct ring_buffer_per_cpu *cpu_buffer
1156  head = pages
1160  If ad from head Then rb_set_head_page(cpu_buffer)
1163  _head_page_deactivate - clears head page ptr (for free list)
1165  If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, prev != head) Then Return -1
1167  If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, next != head) Then Return -1
1170  If _check_list - make sure a pointer to a list has the last bits zero Then Return -1
1174  If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, prev != & list of buffer pages ) Then Return -1
1177  If uffer may be either ring_buffer or ring_buffer_per_cpu (cpu_buffer, next != & list of buffer pages ) Then Return -1
1180  If _check_list - make sure a pointer to a list has the last bits zero Then Return -1
1184  _head_page_activate - sets up head page
1186  Return 0
Caller
NameDescribe
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.