Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:53:25 |
Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:_tail_page_update - move the tail page forward
Proto:static void rb_tail_page_update(struct ring_buffer_per_cpu *cpu_buffer, struct buffer_page *tail_page, struct buffer_page *next_page)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct ring_buffer_per_cpu * | cpu_buffer | |
struct buffer_page * | tail_page | |
struct buffer_page * | next_page |
1078 | old_write = local_add_return - add and return*@i: integer value to add*@l: pointer to type local_t* Atomically adds @i to @l and returns @i + @l |
1079 | old_entries = local_add_return - add and return*@i: integer value to add*@l: pointer to type local_t* Atomically adds @i to @l and returns @i + @l |
1081 | local_inc( & pages_touched) |
1093 | If tail_page == READ_ONCE(write to tail ) Then |
1108 | local_cmpxchg( & dex for next write , old_write, val) |
1109 | local_cmpxchg( & ries on this page , old_entries, eval) |
1116 | local_set( & write committed index , 0) |
1119 | cmpxchg( & write to tail , tail_page, next_page) |
Name | Describe |
---|---|
rb_move_tail | This is the slow path, force gcc not to inline it. |
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 |