Lines Matching full:assign

71 DEFINE_STATIC_CALL_NULL(x86_pmu_assign, *x86_pmu.assign);
787 * Assign events iterating over all events and counters, beginning
963 * Assign a counter for each event.
966 int wmin, int wmax, int gpmax, int *assign) in perf_assign_events() argument
975 if (assign) in perf_assign_events()
976 assign[sched.state.event] = sched.state.counter; in perf_assign_events()
983 int x86_schedule_events(struct cpu_hw_events *cpuc, int n, int *assign) in x86_schedule_events() argument
1054 if (assign) in x86_schedule_events()
1055 assign[i] = hwc->idx; in x86_schedule_events()
1086 wmax, gpmax, assign); in x86_schedule_events()
1097 * validate an event group (assign == NULL) in x86_schedule_events()
1099 if (!unsched && assign) { in x86_schedule_events()
1101 static_call_cond(x86_pmu_commit_scheduling)(cpuc, i, assign[i]); in x86_schedule_events()
1222 idx = hwc->idx = cpuc->assign[i]; in x86_assign_hw_event()
1279 return hwc->idx == cpuc->assign[i] && in match_prev_assignment()
1444 int assign[X86_PMC_IDX_MAX]; in x86_pmu_add() local
1469 ret = static_call(x86_pmu_schedule_events)(cpuc, n, assign); in x86_pmu_add()
1476 memcpy(cpuc->assign, assign, n*sizeof(int)); in x86_pmu_add()
1652 cpuc->assign[i-1] = cpuc->assign[i]; in x86_pmu_del()
2013 static_call_update(x86_pmu_assign, x86_pmu.assign); in x86_pmu_static_call_update()
2273 int assign[X86_PMC_IDX_MAX]; in x86_pmu_commit_txn() local
2288 ret = static_call(x86_pmu_schedule_events)(cpuc, n, assign); in x86_pmu_commit_txn()
2296 memcpy(cpuc->assign, assign, n*sizeof(int)); in x86_pmu_commit_txn()
2478 __clear_bit(cpuc->assign[i], cpuc->dirty); in perf_clear_dirty_counters()