Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:33:34
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called from scheduler to remove the events of the current task,* with interrupts disabled

Proto:void __perf_event_task_sched_out(struct task_struct *task, struct task_struct *next)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
struct task_struct *next
3364  If Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(perf_sched_cb_usages) Then This function provides the context switch callback to the lower code* layer. It is invoked ONLY when the context switch callback is enabled.* This callback is relevant even to per-cpu events; for example multi event
3367  If atomic_read( & nr_switch_events) Then perf_event_switch(task, next, false)
3370  for_each_task_context_nr(ctxn)
3371  perf_event_context_sched_out(task, ctxn, next)
3378  If atomic_read(this_cpu_ptr( & perf_cgroup_events)) Then perf_cgroup_sched_out(task, next)