Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:36:30 |
| 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__init_id
Proto:static void __perf_event_header__init_id(struct perf_event_header *header, struct perf_sample_data *data, struct perf_event *event)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event_header * | header | |
| struct perf_sample_data * | data | |
| struct perf_event * | event |
| 6393 | sample_type = sample_type |
| 6395 | type = sample_type |
| 6396 | size += id_header_size |
| 6398 | If sample_type & PERF_SAMPLE_TID Then |
| 6400 | pid = perf_event_pid(event, current process) |
| 6401 | tid = perf_event_tid(event, current process) |
| 6404 | If sample_type & PERF_SAMPLE_TIME Then time = perf_event_clock(event) |
| 6407 | If sample_type & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER) Then id = If we inherit events we want to return the parent event id* to userspace. |
| 6410 | If sample_type & PERF_SAMPLE_STREAM_ID Then stream_id = id |
| 6413 | If sample_type & PERF_SAMPLE_CPU Then |
| 6415 | reserved = 0 |
| Name | Describe |
|---|---|
| perf_event_header__init_id | |
| perf_prepare_sample |
| 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 |