[PATCH v3 07/11] lib: sbi: Allow programmable counters to monitor cycle/instret events
Bin Meng
bmeng.cn at gmail.com
Thu Nov 4 01:36:46 PDT 2021
On Tue, Nov 2, 2021 at 11:11 PM Atish Patra <atish.patra at wdc.com> wrote:
>
> A platform may use programmable counters for cycle/instret events.
> The priv spec allows that provided that cycle/instret also report those
> events in addition to the programmable counters. We should allow that
> functionality in OpenSBI.
>
> Signed-off-by: Atish Patra <atish.patra at wdc.com>
> ---
> include/sbi/sbi_pmu.h | 1 +
> lib/sbi/sbi_pmu.c | 59 +++++++++++++++++++++++++++++++------------
> 2 files changed, 44 insertions(+), 16 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the opensbi
mailing list