[gem5-users] Re: Using perf_event with the ARM PMU inside gem5 on Linux

2020-09-29 Thread Giacomo Travaglini via gem5-users
Hey Pierre, You are actually very close to get it right! The problem is: there should be a single PMU instantiation. What you need to do in the BaseCPU is: # Generate nodes from the BaseCPU children. # Please note: this is mainly needed for the ISA class for node in

[gem5-users] Re: Using perf_event with the ARM PMU inside gem5 on Linux

2020-09-29 Thread Pierre Ayoub via gem5-users
Hi Giacomo, Thank you for your reply. Your hint about the DTB gives me a great starting point to make a lot of research about it, and its relation between the Linux kernel and the ARM PMU. I though that I would be able to fix this myself, by studying how gem5 generate the DTB and how the PMU