gem5-users@gem5.org

The gem5 Users mailing list

View all threads

How to use Gem5 to collect instruction traces

SG
Setu Gupta
Tue, Sep 26, 2023 6:52 PM

Hi

I want to use Gem5 to generate instruction traces which I then want to use
in other simulators. How can I generate traces using Gem5, and what format
are the traces in?

Thanks and Regards
Setu

Hi I want to use Gem5 to generate instruction traces which I then want to use in other simulators. How can I generate traces using Gem5, and what format are the traces in? Thanks and Regards Setu
GT
Giacomo Travaglini
Wed, Sep 27, 2023 7:31 AM

Hi Setu,

It might depend on the ISA you are using.
You can generate an instruction trace by running gem5 with --debug-flags=Exec option and this is valid for all ISAs. If you are simulating an Arm CPU, an instruction trace in the Tarmac format can also be generated.

Kind Regards

Giacomo

From: Setu Gupta via gem5-users gem5-users@gem5.org
Date: Tuesday, 26 September 2023 at 19:55
To: gem5-users@gem5.org gem5-users@gem5.org
Cc: Setu Gupta setu@tamu.edu
Subject: [gem5-users] How to use Gem5 to collect instruction traces
Hi

I want to use Gem5 to generate instruction traces which I then want to use in other simulators. How can I generate traces using Gem5, and what format are the traces in?

Thanks and Regards
Setu
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Hi Setu, It might depend on the ISA you are using. You can generate an instruction trace by running gem5 with --debug-flags=Exec option and this is valid for all ISAs. If you are simulating an Arm CPU, an instruction trace in the Tarmac format can also be generated. Kind Regards Giacomo From: Setu Gupta via gem5-users <gem5-users@gem5.org> Date: Tuesday, 26 September 2023 at 19:55 To: gem5-users@gem5.org <gem5-users@gem5.org> Cc: Setu Gupta <setu@tamu.edu> Subject: [gem5-users] How to use Gem5 to collect instruction traces Hi I want to use Gem5 to generate instruction traces which I then want to use in other simulators. How can I generate traces using Gem5, and what format are the traces in? Thanks and Regards Setu IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.