Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:35:15 |
| 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_period
Proto:static void __perf_event_period(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| struct perf_cpu_context * | cpuctx | |
| struct perf_event_context * | ctx | |
| void * | info |
| 5146 | If freq Then |
| 5147 | sample_freq = value |
| 5148 | Else |
| 5149 | sample_period = value |
| 5150 | sample_period = value |
| 5153 | active = state == PERF_EVENT_STATE_ACTIVE |
| 5154 | If active Then |
| 5155 | perf_pmu_disable(pmu) |
| 5160 | If interrupts == MAX_INTERRUPTS Then |
| 5161 | interrupts = 0 |
| 5162 | perf_log_throttle(event, 1) |
| 5167 | local64_set( & period_left, 0) |
| 5169 | If active Then |
| 5170 | start(event, load the counter when starting ) |
| 5171 | perf_pmu_enable(pmu) |
| 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 |