Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:37:52 |
| 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_mmap_output
Proto:static void perf_event_mmap_output(struct perf_event *event, void *data)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| void * | data |
| 7615 | mmap_event = data |
| 7622 | If Not perf_event_mmap_match(event, data) Then Return |
| 7625 | If mmap2 Then |
| 7626 | type = PERF_RECORD_MMAP2 |
| 7630 | size += size of ino_generation |
| 7635 | perf_event_header__init_id( & header, & sample, event) |
| 7636 | ret = perf_output_begin( & handle, event, size) |
| 7641 | pid = perf_event_pid(event, current process) |
| 7642 | tid = perf_event_tid(event, current process) |
| 7644 | perf_output_put( & handle, event_id) |
| 7646 | If mmap2 Then |
| 7647 | perf_output_put( & handle, maj) |
| 7648 | perf_output_put( & handle, min) |
| 7649 | perf_output_put( & handle, ino) |
| 7650 | perf_output_put( & handle, ino_generation) |
| 7651 | perf_output_put( & handle, prot) |
| 7652 | perf_output_put( & handle, flags) |
| 7655 | __output_copy( & handle, file_name, file_size) |
| 7658 | perf_event__output_id_sample(event, & handle, & sample) |
| 7660 | perf_output_end( & handle) |
| 7661 | out : |
| 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 |