Re: How to read RISC-V mcycle CSR from Linux userspace app?

2022-07-25 Thread Bin Meng
On Tue, Jul 26, 2022 at 12:58 AM Maxim Blinov wrote: > > Hi all, stupid question but I can't for the life of me figure this out > even with all the docs open. > > I need to get an estimate figure for the cyclecount of a busy loop in > one of my small Linux userspace apps. The app in question is

How to read RISC-V mcycle CSR from Linux userspace app?

2022-07-25 Thread Maxim Blinov
Hi all, stupid question but I can't for the life of me figure this out even with all the docs open. I need to get an estimate figure for the cyclecount of a busy loop in one of my small Linux userspace apps. The app in question is running in qemu-system-riscv64. I've compiled QEMU myself, and the