Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:38:22 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_log_throttle
Proto:static void perf_log_throttle(struct perf_event *event, int enable)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| int | enable |
| 8089 | struct{struct perf_event_header header;u64 time;u64 id;u64 stream_id;}throttle_event = {header = {type = PERF_RECORD_THROTTLE, misc = 0, size = size of throttle_event , }, time = perf_event_clock(event), id = If we inherit events we want to return the parent event id* to userspace., stream_id = id, } |
| 8105 | If enable Then type = PERF_RECORD_UNTHROTTLE |
| 8108 | perf_event_header__init_id( & header, & sample, event) |
| 8110 | ret = perf_output_begin( & handle, event, size) |
| 8112 | If ret Then Return |
| 8115 | perf_output_put( & handle, throttle_event) |
| 8116 | perf_event__output_id_sample(event, & handle, & sample) |
| 8117 | perf_output_end( & handle) |
| Name | Describe |
|---|---|
| event_sched_in | |
| perf_adjust_freq_unthr_context | mbine freq adjustment with unthrottling to avoid two passes over the* events. At the same time, make sure, having freq events does not change* the rate of unthrottling as that would introduce bias. |
| __perf_event_period | |
| __perf_event_account_interrupt |
| 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 |