Hello Scoot.

When I want something specif that a debug-flag does not cover, I usually 
implement my own debug-flag printing only the information that I need.

I would suggest checking if you can use an existing debug-flag to do the 
instruction trace (In O3CPU model I know that there are debug-flags that give 
you the information about the instruction trace, but it is so verbose due to 
contains other information about the current stage). If doesn't exist, create 
your own debug-flag (http://learning.gem5.org/book/part2/debugging.html).

Best regards
Debugging gem5 — gem5 Tutorial 0.1 
documentation<http://learning.gem5.org/book/part2/debugging.html>
Debugging gem5¶. In the previous chapters we covered how to create a very 
simple SimObject. In this chapter, we will replace the simple print to stdout 
with gem5’s debugging support.. gem5 provides support for printf-style 
tracing/debugging of your code via debug flags.These flags allow every 
component to have many debug-print statements, without all of them enabled at 
the same time.
learning.gem5.org


----------------------------------------------------------------------------------------------------------------------------------------------
Francisco Carlos Silva Junior
Phd student at University of Brasilia

________________________________
De: Scott Blankenberg via gem5-users <gem5-users@gem5.org>
Enviado: quinta-feira, 16 de setembro de 2021 16:18
Para: gem5-users@gem5.org <gem5-users@gem5.org>
Cc: scot...@synopsys.com <scot...@synopsys.com>
Assunto: [gem5-users] Re: How to extract instruction traces

Update: Since then I have used the --debug-flags=ExecEnable,ExecUser,ExecKernel 
to extract a trace file.

However, I can't seem to find away to clip the output to just contain the 
instruction addresses. There does not seem to be an option for this.

Does this mean I will have to modify the trace writer?
_______________________________________________
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
_______________________________________________
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

Reply via email to