[PATCH v5 06/22] drivers/perf: riscv: Implement SBI PMU snapshot function