Home
last modified time | relevance | path

Searched refs:ctr_values (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/kvm/riscv/
A Dsbi_pmu_test.c155 counter_val = READ_ONCE(snapshot_data->ctr_values[0]); in guest_irq_handler()
321 counter_value_post = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
331 WRITE_ONCE(snapshot_data->ctr_values[0], ULONG_MAX/2); in test_pmu_event_snapshot()
334 counter_value_pre = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
336 WRITE_ONCE(snapshot_data->ctr_values[0], counter_init_value); in test_pmu_event_snapshot()
339 counter_value_post = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
345 WRITE_ONCE(snapshot_data->ctr_values[0], counter_init_value); in test_pmu_event_snapshot()
350 counter_value_post = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_snapshot()
369 WRITE_ONCE(snapshot_data->ctr_values[0], counter_init_value); in test_pmu_event_overflow()
376 counter_value_post = READ_ONCE(snapshot_data->ctr_values[0]); in test_pmu_event_overflow()
[all …]
/linux/tools/testing/selftests/kvm/include/riscv/
A Dsbi.h74 u64 ctr_values[64]; member
/linux/drivers/perf/
A Driscv_pmu_sbi.c662 val = sdata->ctr_values[idx]; in pmu_sbi_ctr_read()
758 sdata->ctr_values[hwc->idx] = sdata->ctr_values[0]; in pmu_sbi_ctr_stop()
759 sdata->ctr_values[0] = 0; in pmu_sbi_ctr_stop()
843 sdata->ctr_values[idx]; in pmu_sbi_stop_hw_ctrs()
852 sdata->ctr_values[idx] = cpu_hw_evt->snapshot_cval_shcopy[idx]; in pmu_sbi_stop_hw_ctrs()
930 sdata->ctr_values[idx] = in pmu_sbi_start_ovf_ctrs_snapshot()
/linux/arch/riscv/include/asm/
A Dsbi.h156 u64 ctr_values[64]; member
/linux/arch/riscv/kvm/
A Dvcpu_pmu.c519 pmc->counter_val = kvpmu->sdata->ctr_values[i]; in kvm_riscv_vcpu_pmu_ctr_start()
624 kvpmu->sdata->ctr_values[i] = pmc->counter_val; in kvm_riscv_vcpu_pmu_ctr_stop()

Completed in 17 milliseconds