Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:32:17 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__perf_event_header_size
Proto:static void __perf_event_header_size(struct perf_event *event, u64 sample_type)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| u64 | sample_type |
| 1731 | size = 0 |
| 1733 | If sample_type & PERF_SAMPLE_IP Then size += size of ip |
| 1736 | If sample_type & PERF_SAMPLE_ADDR Then size += size of addr |
| 1739 | If sample_type & PERF_SAMPLE_PERIOD Then size += size of period |
| 1742 | If sample_type & PERF_SAMPLE_WEIGHT Then size += size of weight |
| 1745 | If sample_type & PERF_SAMPLE_READ Then size += read_size |
| 1748 | If sample_type & PERF_SAMPLE_DATA_SRC Then size += size of val |
| 1751 | If sample_type & PERF_SAMPLE_TRANSACTION Then size += size of txn |
| 1754 | If sample_type & PERF_SAMPLE_PHYS_ADDR Then size += size of phys_addr |
| 1757 | header_size = size |
| Name | Describe |
|---|---|
| perf_event__header_size | Called at perf_event creation and when events are attached/detached from a* group. |
| perf_event_validate_size |
| 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 |