函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_ctx_lock

函数原型:static void perf_ctx_lock(struct perf_cpu_context *cpuctx, struct perf_event_context *ctx)

返回类型:void

参数:

类型参数名称
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
154  raw_spin_lock( & Protect the states of the events in the list,* nr_active, and the list:)
155  如果ctxraw_spin_lock( & Protect the states of the events in the list,* nr_active, and the list:)
调用者
名称描述
event_function
event_function_localSimilar to event_function_call() + event_function(), but hard assumes IRQs* are already disabled and we're on the right CPU.
perf_pmu_resched
perf_pmu_sched_taskThis 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
perf_event_context_sched_in
perf_rotate_context
perf_event_enable_on_execEnable all of a task's events that have been marked enable-on-exec.* This expects task == current.