Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:33:56 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static void perf_adjust_freq_unthr_context(struct perf_event_context *ctx, int needs_unthr)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event_context * | ctx | |
int | needs_unthr |
3758 | If Not (nr_freq || needs_unthr) Then Return |
3762 | perf_pmu_disable(pmu) |
3765 | If state != PERF_EVENT_STATE_ACTIVE Then Continue |
3768 | If Not event_filter_match(event) Then Continue |
3771 | perf_pmu_disable(pmu) |
3775 | If interrupts == MAX_INTERRUPTS Then |
3781 | If Not freq || Not sample_freq Then Go to next |
3789 | now = local64_read( & count) |
3790 | delta = now - freq_count_stamp |
3791 | freq_count_stamp = now |
3800 | If delta > 0 Then perf_adjust_period(event, period, delta, false) |
3803 | start(event, delta > 0 ? load the counter when starting : 0) |
3804 | next : |
3805 | perf_pmu_enable(pmu) |
3808 | perf_pmu_enable(pmu) |
Name | Describe |
---|---|
perf_event_task_tick |
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 |