On 1/12/2024 7:57 AM, elio.vinciguerra--- via gem5-users wrote:
Hi everybody, I should have the statistics provided by gem5 in stats.txt with an instruction level granularity. I noticed that by default gem5 provides them global, from the beginning of execution to the end. Is it possible to change this behavior and somehow get the stats for each simulated instruction?
I'm not sure this makes much sense. If you mean stats broken down for each individual instruction executed, the output would be prohibitively large. It also would be hard to pin down / define, since in pipelined and our-of-order processors, the execution of different instructions is overlapped, an instruction can be fetched but not executed, it can be executed speculatively and later dropped, etc. Consider just the "simple" question: How long did this instruction take to execute? It might have taken (say) 10 cycles in a deep pipeline to go all the way from being fetched to committed, but its contribution to the total execution time may be just one cycle or even zero (a correctly predicted branch on some architectures). Maybe if you tell us what you are really trying to get at we can be more helpful :-) ... Eliot Moss _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org