Function report |
Source Code:kernel\events\ring_buffer.c |
Create Date:2022-07-28 13:42:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Copy out AUX data from an AUX handle.
Proto:long perf_output_copy_aux(struct perf_output_handle *aux_handle, struct perf_output_handle *handle, unsigned long from, unsigned long to)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_output_handle * | aux_handle | |
| struct perf_output_handle * | handle | |
| unsigned long | from | |
| unsigned long | to |
| 572 | len = 0 |
| 576 | from &= (aux_nr_pages << PAGE_SHIFT determines the page size ) - 1 |
| 577 | to &= (aux_nr_pages << PAGE_SHIFT determines the page size ) - 1 |
| 579 | Do |
| 580 | tocopy = PAGE_SIZE - offset_in_page(from) |
| 581 | If to > from Then tocopy = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(tocopy, to - from) |
| 583 | If Not tocopy Then Break |
| 586 | addr = aux_pages[from >> PAGE_SHIFT determines the page size ] |
| 587 | addr += offset_in_page(from) |
| 589 | remainder = perf_output_copy(handle, addr, tocopy) |
| 595 | from &= (aux_nr_pages << PAGE_SHIFT determines the page size ) - 1 |
| 598 | Return len |
| 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 |