lib: sbi: Implement firmware counters
authorAtish Patra <atish.patra@wdc.com>
Sat, 10 Jul 2021 16:18:14 +0000 (09:18 -0700)
committerAnup Patel <anup@brainfault.org>
Sun, 11 Jul 2021 05:08:23 +0000 (10:38 +0530)
commit764a17d852a8cc80050016a6e2ccdcaddd43f68c
tree03db9a920bfd843301af4c7eecac02bb76921eb1
parent37f9b0f2f265b2f312d974fb8d100b85b3faf94f
lib: sbi: Implement firmware counters

RISC-V SBI v0.3 specification defines a set of firmware events that can
provide additional information about the current firmware context. All
of the firmware event monitoring are enabled now. The firmware
events must be defined as raw perf event with MSB set as specified in the
specification.

Reviewed-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_illegal_insn.c
lib/sbi/sbi_ipi.c
lib/sbi/sbi_misaligned_ldst.c
lib/sbi/sbi_timer.c
lib/sbi/sbi_tlb.c
lib/sbi/sbi_trap.c