Lines Matching refs:pcpu
95 struct cpu_perf_ibs __percpu *pcpu; member
426 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_start() local
446 set_bit(IBS_STARTED, pcpu->state); in perf_ibs_start()
447 clear_bit(IBS_STOPPING, pcpu->state); in perf_ibs_start()
457 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_stop() local
461 if (test_and_set_bit(IBS_STOPPING, pcpu->state)) in perf_ibs_stop()
464 stopping = test_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
478 set_bit(IBS_STOPPED, pcpu->state); in perf_ibs_stop()
489 clear_bit(IBS_STARTED, pcpu->state); in perf_ibs_stop()
510 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_add() local
512 if (test_and_set_bit(IBS_ENABLED, pcpu->state)) in perf_ibs_add()
517 pcpu->event = event; in perf_ibs_add()
528 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_del() local
530 if (!test_and_clear_bit(IBS_ENABLED, pcpu->state)) in perf_ibs_del()
535 pcpu->event = NULL; in perf_ibs_del()
1021 struct cpu_perf_ibs *pcpu = this_cpu_ptr(perf_ibs->pcpu); in perf_ibs_handle_irq() local
1022 struct perf_event *event = pcpu->event; in perf_ibs_handle_irq()
1032 if (!test_bit(IBS_STARTED, pcpu->state)) { in perf_ibs_handle_irq()
1040 if (test_and_clear_bit(IBS_STOPPED, pcpu->state)) in perf_ibs_handle_irq()
1175 struct cpu_perf_ibs __percpu *pcpu; in perf_ibs_pmu_init() local
1178 pcpu = alloc_percpu(struct cpu_perf_ibs); in perf_ibs_pmu_init()
1179 if (!pcpu) in perf_ibs_pmu_init()
1182 perf_ibs->pcpu = pcpu; in perf_ibs_pmu_init()
1186 perf_ibs->pcpu = NULL; in perf_ibs_pmu_init()
1187 free_percpu(pcpu); in perf_ibs_pmu_init()
1255 free_percpu(perf_ibs_op.pcpu); in perf_event_ibs_init()
1256 perf_ibs_op.pcpu = NULL; in perf_event_ibs_init()
1259 free_percpu(perf_ibs_fetch.pcpu); in perf_event_ibs_init()
1260 perf_ibs_fetch.pcpu = NULL; in perf_event_ibs_init()