函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_pmu_enable

函数原型:void perf_pmu_enable(struct pmu *pmu)

返回类型:void

参数:

类型参数名称
struct pmu *pmu
1141  count等于this_cpu_ptr(pmu_disable_count)
1142  如果非count先自减则pmu_enable(pmu)
调用者
名称描述
event_sched_out
group_sched_out
event_sched_in
ctx_reschedWe want to maintain the following priority of scheduling:* - CPU pinned (EVENT_CPU | EVENT_PINNED)* - task pinned (EVENT_PINNED)* - CPU flexible (EVENT_CPU | EVENT_FLEXIBLE)* - task flexible (EVENT_FLEXIBLE)
ctx_sched_out
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_adjust_freq_unthr_contextmbine freq adjustment with unthrottling to avoid two passes over the* events. At the same time, make sure, having freq events does not change* the rate of unthrottling as that would introduce bias.
perf_rotate_context
__perf_event_period
perf_pmu_commit_txn
perf_pmu_cancel_txn