Function report |
Source Code:kernel\trace\ring_buffer.c |
Create Date:2022-07-28 11:54:07 |
| Last Modify:2020-03-17 19:30:04 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:rb_reset_tail
Proto:static inline void rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer, unsigned long tail, struct rb_event_info *info)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ring_buffer_per_cpu * | cpu_buffer | |
| unsigned long | tail | |
| struct rb_event_info * | info |
| 2140 | If tail >= BUF_PAGE_SIZE Then |
| 2146 | If tail == BUF_PAGE_SIZE Then al end of data = 0 |
| 2149 | local_sub(length, & dex for next write ) |
| 2150 | Return |
| 2153 | event = __rb_page_index(tail_page, tail) |
| 2156 | local_add(BUF_PAGE_SIZE - tail, & entries_bytes) |
| 2163 | al end of data = tail |
| 2176 | If tail > BUF_PAGE_SIZE - wo 32bit words Then |
| 2188 | array[0] = BUF_PAGE_SIZE - tail - RB_EVNT_HDR_SIZE |
| 2189 | type_len = RINGBUF_TYPE_PADDING |
| 2191 | time_delta = 1 |
| 2194 | length = tail + length - BUF_PAGE_SIZE |
| 2195 | local_sub(length, & dex for next write ) |
| 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 |