Function report |
Source Code:kernel\events\ring_buffer.c |
Create Date:2022-07-28 13:42:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ring_buffer_init
Proto:static void ring_buffer_init(struct ring_buffer *rb, long watermark, int flags)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct ring_buffer * | rb | |
long | watermark | |
int | flags |
306 | max_size = perf_data_size(rb) |
308 | If watermark Then wakeup watermark = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(max_size, watermark) |
311 | If Not wakeup watermark Then wakeup watermark = max_size / 2 |
314 | If flags & Buffer handling Then can overwrite itself = 0 |
316 | Else can overwrite itself = 1 |
328 | If Not nr of data pages Then can write into ring buffer = 1 |
Name | Describe |
---|---|
rb_alloc |
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 |