Home
last modified time | relevance | path

Searched refs:riscv_pmu (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/kernel/arch/riscv/kernel/
H A Dperf_event.c35 static const struct riscv_pmu *riscv_pmu __read_mostly;
144 if (config >= riscv_pmu->max_events) in riscv_map_hw_event()
147 return riscv_pmu->hw_events[config]; in riscv_map_hw_event()
163 if (!riscv_pmu->cache_events || err) in riscv_map_cache_event()
171 code = (*riscv_pmu->cache_events)[type][op][result]; in riscv_map_cache_event()
234 ((1ULL << riscv_pmu->counter_width) - 1); in riscv_pmu_read()
259 riscv_pmu->pmu->read(event); in riscv_pmu_stop()
302 if (cpuc->n_events == riscv_pmu->num_counters) in riscv_pmu_add()
320 riscv_pmu->pmu->start(event, PERF_EF_RELOAD); in riscv_pmu_add()
335 riscv_pmu->pmu->stop(event, PERF_EF_UPDATE); in riscv_pmu_del()
[all …]
/OK3568_Linux_fs/kernel/Documentation/riscv/
H A Dpmu.rst46 *riscv_pmu* is a global pointer of type *struct riscv_pmu*, which contains
49 *riscv_pmu* points to a constant structure *riscv_base_pmu*, which has very
52 Then he/she can either assign the instance's pointer to *riscv_pmu* so that
74 *riscv_pmu*.
228 * struct riscv_pmu: arch/riscv/include/asm/perf_event.h
236 *struct riscv_pmu* defines PMU-specific parameters. The naming follows the
/OK3568_Linux_fs/kernel/arch/riscv/include/asm/
H A Dperf_event.h54 struct riscv_pmu { struct