Home
last modified time | relevance | path

Searched refs:RISCV_MAX_COUNTERS (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/include/linux/perf/
H A Driscv_pmu.h22 #define RISCV_MAX_COUNTERS 64 macro
37 struct perf_event *events[RISCV_MAX_COUNTERS];
39 DECLARE_BITMAP(used_hw_ctrs, RISCV_MAX_COUNTERS);
41 DECLARE_BITMAP(used_fw_ctrs, RISCV_MAX_COUNTERS);
49 u64 snapshot_cval_shcopy[RISCV_MAX_COUNTERS];
/linux-6.15/drivers/perf/
H A Driscv_pmu_sbi.c359 for_each_set_bit(i, &cmask, RISCV_MAX_COUNTERS) { in riscv_pmu_get_hpm_info()
837 for (i = 0; i < BITS_TO_LONGS(RISCV_MAX_COUNTERS); i++) { in pmu_sbi_stop_hw_ctrs()
853 for_each_set_bit(idx, cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS) in pmu_sbi_stop_hw_ctrs()
877 for (i = 0; i < BITS_TO_LONGS(RISCV_MAX_COUNTERS); i++) { in pmu_sbi_start_ovf_ctrs_sbi()
929 for (i = 0; i < BITS_TO_LONGS(RISCV_MAX_COUNTERS); i++) { in pmu_sbi_start_ovf_ctrs_snapshot()
970 fidx = find_first_bit(cpu_hw_evt->used_hw_ctrs, RISCV_MAX_COUNTERS); in pmu_sbi_ovf_handler()
971 if (fidx == RISCV_MAX_COUNTERS) { in pmu_sbi_ovf_handler()
1157 int enabled = bitmap_weight(cpuc->used_hw_ctrs, RISCV_MAX_COUNTERS); in riscv_pm_pmu_notify()
1164 for (idx = 0; idx < RISCV_MAX_COUNTERS; idx++) { in riscv_pm_pmu_notify()
1350 if (num_counters > RISCV_MAX_COUNTERS) { in pmu_sbi_device_probe()
[all …]
H A Driscv_pmu.c405 for (i = 0; i < RISCV_MAX_COUNTERS; i++) in riscv_pmu_alloc()
/linux-6.15/arch/riscv/kvm/
H A Dvcpu_pmu.c508 for_each_set_bit(i, &ctr_mask, RISCV_MAX_COUNTERS) { in kvm_riscv_vcpu_pmu_ctr_start()
579 for_each_set_bit(i, &ctr_mask, RISCV_MAX_COUNTERS) { in kvm_riscv_vcpu_pmu_ctr_stop()