Helllo. I encounter the following problem when I try to simulate the starter_fs.py in aarch64. Following these following posts https://www.mail-archive.com/gem5-users@gem5.org/msg18401.html & https://stackoverflow.com/questions/63988672/using-perf-event-with-the-arm-pmu-inside-gem5 I did the steps to apply the patch and changes and also instantiate the pmus. I write a script in the image to access directly the registers. I manage to read all the events except the cycle counter which always return 0. I try to read the cycle counter by instantiating a pmu event counter with 0x11 but as reading from the ccnt it didn't work as well. How GEM5 increments this counter. Are the steps to read it the same as in a real platform or the simulator has a mismatch configuration? Also the values obtained reading the counters are not exactly the same as the m5 resetstats - m5 dumpstats. I guess maybe these two are syscalls as I read . Another question is how to add the other events that are not implemented. I tried to do the following in the ArmPMU.py but it didn't work despite seeing the events created in the console they return 0 values. self.addEvent(ProbeEvent(self,0x01,icache,"L1I_CACHE_REFILL"))
self.addEvent(ProbeEvent(self,0x0D, bpred, "BR_IMMED_RETIRED")) Probably you need to add some counters in the component? Or are the implemented and I do sth wrong? Really want some guidance. Thank you [Leti_logo_mail] Nikolaos Foivos POLYCHRONOU PhD Student - Security of Embedded Systems/IoT/IIoT Département DSYS / LSOSP 17, rue des martyrs | 38000 Grenoble Fix work . +33 4 38 78 19 58 Office Bat. 4022 - P. 221 nikolaos.polychro...@cea.fr LETI, technology research institute Commissariat à l'énergie atomique et aux énergies alternatives www.leti.fr<http://www.leti.fr/> | LETI is a member of the Carnot Institutes network [icone_youtube]<https://www.youtube.com/channel/UC3JgudJblGykrECv6OUhWFg> [icone_twitter] <https://twitter.com/cea_leti> [icone_linkedin] <https://www.linkedin.com/company/leti>
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s