函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_exit_cpu_context

函数原型:static void perf_event_exit_cpu_context(int cpu)

返回类型:void

参数:

类型参数名称
intcpu
12433  mutex_lock( & pmus_lock)
12435  cpuctx等于per_cpu_ptr(pmu_cpu_context, cpu)
12436  ctx等于ctx
12438  mutex_lock( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.)
12439  smp_call_function_single(cpu, __perf_event_exit_context, ctx, 1)
12440  online等于0
12441  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
12443  清空CPU信息
12444  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
调用者
名称描述
perf_event_exit_cpu