Enable performance counters
xydas97 opened this issue · 2 comments
xydas97 commented
Hello, I would need some help enabling performance counters for rocket core of rocketchip. I am currently trying to directly use csr_write() on MCOUNTEREN, SCOUNTEREN, MCOUNTINHIBIT and MHPMEVENT in the sbi_init.c file. However I see that the values are not set in those counters. Are there any functions that I could use or any direction on how to monitor TLB misses with performance counters?
Or is there any documentation on how to use the sbi_pmu to set those performance counters?
lyctw commented