Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:33: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_adjust_period
Proto:static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count, bool disable)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | |
u64 | nsec | |
u64 | count | |
bool | disable |
3717 | period = perf_calculate_period(event, nsec, count) |
3719 | delta = period - sample_period |
3722 | sample_period = sample_period + delta |
3724 | If Not sample_period Then sample_period = 1 |
3727 | sample_period = sample_period |
3729 | If local64_read( & period_left) > 8 * sample_period Then |
3730 | If disable Then stop(event, update the counter when stopping ) |
3733 | local64_set( & period_left, 0) |
3735 | If disable Then start(event, load the counter when starting ) |
Name | Describe |
---|---|
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_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 |