函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_sched_in

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

返回类型:void

参数:

类型参数名称
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
struct task_struct *task
2523  cpu_ctx_sched_in(cpuctx, EVENT_PINNED, task)
2524  如果ctxctx_sched_in(ctx, cpuctx, EVENT_PINNED, task)
2526  cpu_ctx_sched_in(cpuctx, EVENT_FLEXIBLE, task)
2527  如果ctxctx_sched_in(ctx, cpuctx, EVENT_FLEXIBLE, task)
调用者
名称描述
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)
perf_event_context_sched_in
perf_rotate_context