Home
last modified time | relevance | path

Searched +full:event +full:- +full:to +full:- +full:mhpmevent (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/Documentation/devicetree/bindings/perf/
H A Driscv,pmu.yaml1 # SPDX-License-Identifier: BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RISC-V SBI PMU events
10 - Atish Patra <atishp@rivosinc.com>
13 The SBI PMU extension allows supervisor software to configure, start and
18 The platform must provide information about PMU event to counter mappings
19 either via device tree or another way, specific to the platform.
20 Without the event to counter mappings, the SBI PMU extension cannot be used.
22 Platforms should provide information about the PMU event selector values
[all …]
/openbmc/qemu/target/riscv/
H A Dpmu.c2 * RISC-V PMU file.
21 #include "qemu/error-report.h"
25 #include "sysemu/cpu-timers.h"
31 * To keep it simple, any event can be mapped to any programmable counters in
34 * to provide the correct value as well. Heterogeneous PMU per hart is not
42 * The event encoding is specified in the SBI specification in riscv_pmu_generate_fdt_node()
43 * Event idx is a 20bits wide number encoded as follows: in riscv_pmu_generate_fdt_node()
78 qemu_fdt_setprop(fdt, pmu_name, "riscv,event-to-mhpmcounters", in riscv_pmu_generate_fdt_node()
85 !(cpu->pmu_avail_ctrs & BIT(ctr_idx))) { in riscv_pmu_counter_valid()
94 CPURISCVState *env = &cpu->env; in riscv_pmu_counter_enabled()
[all …]