HPM: Hardware Performance Monitoring
Today’s @risc_v Tip:
Machine (M) mode supports hardware performance monitoring (HPM) with the following CSRs:
mcycle
: number of clock cycles executedminstret
: number of instructions retiredmhpmcounter[3-31]
: event countersmhpmevent[3-31]
: event selectors