Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:32:39 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:event_sched_out
Proto:static void event_sched_out(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct perf_event * | event | |
| struct perf_cpu_context * | cpuctx | |
| struct perf_event_context * | ctx |
| 2093 | state = PERF_EVENT_STATE_INACTIVE |
| 2095 | WARN_ON_ONCE(ctx != ctx) |
| 2096 | lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:) |
| 2098 | If state != PERF_EVENT_STATE_ACTIVE Then Return |
| 2108 | perf_pmu_disable(pmu) |
| 2111 | oncpu = -1 |
| 2113 | If READ_ONCE(pending_disable) >= 0 Then |
| 2114 | WRITE_ONCE(pending_disable, - 1) |
| 2115 | state = PERF_EVENT_STATE_OFF |
| 2117 | perf_event_set_state(event, state) |
| 2119 | If Not is_software_event(event) Then active_oncpu-- |
| 2121 | If Not --nr_active Then perf_event_ctx_deactivate(ctx) |
| 2123 | If freq && sample_freq Then nr_freq-- |
| 2125 | If exclusive || Not active_oncpu Then exclusive = 0 |
| 2128 | perf_pmu_enable(pmu) |
| Name | Describe |
|---|---|
| perf_put_aux_event | |
| group_sched_out | |
| __perf_remove_from_context | Cross CPU call to remove a performance event* We disable the event on the hardware level first. After that we* remove it from the context list. |
| __perf_event_disable | Cross CPU call to disable a performance event |
| group_sched_in |
| 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 |