Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
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
2106  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2108  perf_pmu_disable(pmu)
2110  del(event, 0)
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)
Caller
NameDescribe
perf_put_aux_event
group_sched_out
__perf_remove_from_contextCross 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_disableCross CPU call to disable a performance event
group_sched_in