函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:52:45
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Called from scheduler to remove the events of the current task,* with interrupts disabled

函数原型:void __perf_event_task_sched_out(struct task_struct *task, struct task_struct *next)

返回类型:void

参数:

类型参数名称
struct task_struct *task
struct task_struct *next
3364  如果Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(perf_sched_cb_usages)则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  如果atomic_read( & nr_switch_events)则perf_event_switch(task, next, false)
3370  for_each_task_context_nr(ctxn)
3371  perf_event_context_sched_out(task, ctxn, next)
3378  如果atomic_read(this_cpu_ptr( & perf_cgroup_events))则perf_cgroup_sched_out(task, next)