I am trying to do precise performance measurements on the F3.
RISC-V spec suggests to use rdtime, rdinstret and rdcycle CSRs for performance monitoring in userspace applications. The default setting of kernel disables rdinstret and rdcycle, only rdtime is working. I suspect from the documentation that mcountinhibit CSR needs to be cleared.
Is there a way to enable rdinstret and rdcycle ie. with kernel bootarg?