函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_sched_in

函数原型:static int group_sched_in(struct perf_event *group_event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx)

返回类型:int

参数:

类型参数名称
struct perf_event *group_event
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
2411  struct perf_event * event, * partial_group = NULL
2412  pmu等于pmu
2414  如果state恒等于PERF_EVENT_STATE_OFF则返回:0
2417  start_txn(pmu, xn to add/schedule event on PMU )
2419  如果event_sched_in(group_event, cpuctx, ctx)则
2420  cancel_txn(pmu)
2421  perf_mux_hrtimer_restart(cpuctx)
2422  返回:负EAGAIN
2429  如果event_sched_in(event, cpuctx, ctx)则
2430  partial_group等于event
2431  转到:group_error
2435  如果非commit_txn(pmu)则返回:0
2438  group_error :
2445  如果event恒等于partial_group退出
2448  event_sched_out(event, cpuctx, ctx)
2450  event_sched_out(group_event, cpuctx, ctx)
2452  cancel_txn(pmu)
2454  perf_mux_hrtimer_restart(cpuctx)
2456  返回:负EAGAIN
调用者
名称描述
pinned_sched_in
flexible_sched_in