Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:32:52
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:group_sched_in

Proto:static int group_sched_in(struct perf_event *group_event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx)

Type:int

Parameter:

TypeParameterName
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  If state == PERF_EVENT_STATE_OFF Then Return 0
2417  start_txn(pmu, xn to add/schedule event on PMU )
2419  If event_sched_in(group_event, cpuctx, ctx) Then
2420  cancel_txn(pmu)
2421  perf_mux_hrtimer_restart(cpuctx)
2422  Return -EAGAIN
2429  If event_sched_in(event, cpuctx, ctx) Then
2430  partial_group = event
2431  Go to group_error
2435  If Not commit_txn(pmu) Then Return 0
2438  group_error :
2445  If event == partial_group Then Break
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  Return -EAGAIN
Caller
NameDescribe
pinned_sched_in
flexible_sched_in