Searched refs:current_idx (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/arch/alpha/kernel/
H A Dperf_event.c46 int current_idx[MAX_HWEVENTS]; member in struct:cpu_hw_events
341 int *current_idx) collect_events()
351 current_idx[n++] = PMC_NO_INDEX; collect_events()
359 current_idx[n++] = PMC_NO_INDEX; collect_events()
401 if (cpuc->current_idx[j] != PMC_NO_INDEX && maybe_change_configuration()
402 cpuc->current_idx[j] != pe->hw.idx) { maybe_change_configuration()
403 alpha_perf_event_update(pe, &pe->hw, cpuc->current_idx[j], 0); maybe_change_configuration()
404 cpuc->current_idx[j] = PMC_NO_INDEX; maybe_change_configuration()
415 if (cpuc->current_idx[j] == PMC_NO_INDEX) { maybe_change_configuration()
417 cpuc->current_idx[j] = idx; maybe_change_configuration()
421 cpuc->idx_mask |= (1<<cpuc->current_idx[j]); maybe_change_configuration()
459 cpuc->current_idx[n0] = PMC_NO_INDEX; alpha_pmu_add()
496 int idx = cpuc->current_idx[j]; alpha_pmu_del()
504 cpuc->current_idx[j - 1] = alpha_pmu_del()
505 cpuc->current_idx[j]; alpha_pmu_del()
839 if (cpuc->current_idx[j] == idx) alpha_perf_event_irq_handler()
339 collect_events(struct perf_event *group, int max_count, struct perf_event *event[], unsigned long *evtype, int *current_idx) collect_events() argument
/linux-4.4.14/arch/sparc/kernel/
H A Dperf_event.c103 int current_idx[MAX_HWEVENTS]; member in struct:cpu_hw_events
924 if (cpuc->current_idx[i] != PIC_NO_INDEX && read_in_all_counters()
925 cpuc->current_idx[i] != cp->hw.idx) { read_in_all_counters()
927 cpuc->current_idx[i]); read_in_all_counters()
928 cpuc->current_idx[i] = PIC_NO_INDEX; read_in_all_counters()
953 if (cpuc->current_idx[i] != PIC_NO_INDEX) calculate_single_pcr()
957 cpuc->current_idx[i] = idx; calculate_single_pcr()
985 if (cpuc->current_idx[i] != PIC_NO_INDEX) calculate_multiple_pcrs()
988 cpuc->current_idx[i] = idx; calculate_multiple_pcrs()
1065 return cpuc->current_idx[i]; active_event_index()
1120 cpuc->current_idx[i - 1] = sparc_pmu_del()
1121 cpuc->current_idx[i]; sparc_pmu_del()
1224 * to the per-cpu cpuc->current_idx[] slots, see the code in
1332 int *current_idx) collect_events()
1342 current_idx[n++] = PIC_NO_INDEX; collect_events()
1351 current_idx[n++] = PIC_NO_INDEX; collect_events()
1371 cpuc->current_idx[n0] = PIC_NO_INDEX; sparc_pmu_add()
1635 int idx = cpuc->current_idx[i]; perf_event_nmi_handler()
1330 collect_events(struct perf_event *group, int max_count, struct perf_event *evts[], unsigned long *events, int *current_idx) collect_events() argument

Completed in 96 milliseconds