Lines Matching refs:assign
711 int wmin, int wmax, int *assign) in perf_assign_events() argument
720 if (assign) in perf_assign_events()
721 assign[sched.state.event] = sched.state.counter; in perf_assign_events()
727 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign) in x86_schedule_events() argument
763 if (assign) in x86_schedule_events()
764 assign[i] = hwc->idx; in x86_schedule_events()
769 num = perf_assign_events(constraints, n, wmin, wmax, assign); in x86_schedule_events()
775 if (!assign || num) { in x86_schedule_events()
826 hwc->idx = cpuc->assign[i]; in x86_assign_hw_event()
846 return hwc->idx == cpuc->assign[i] && in match_prev_assignment()
1006 int assign[X86_PMC_IDX_MAX]; in x86_pmu_add() local
1029 ret = x86_pmu.schedule_events(cpuc, n, assign); in x86_pmu_add()
1036 memcpy(cpuc->assign, assign, n*sizeof(int)); in x86_pmu_add()
1453 int assign[X86_PMC_IDX_MAX]; in x86_pmu_commit_txn() local
1461 ret = x86_pmu.schedule_events(cpuc, n, assign); in x86_pmu_commit_txn()
1469 memcpy(cpuc->assign, assign, n*sizeof(int)); in x86_pmu_commit_txn()