I am going crazy with gem5. When I run a program that just outputs "Hello, world". Only set debug=Exec in gem5. I saw the operation of thousands of lines of assembly instructions. How can I only see the execution process of my own code?
1
I am going crazy with gem5. When I run a program that just outputs "Hello, world". Only set debug=Exec in gem5. I saw the operation of thousands of lines of assembly instructions. How can I only see the execution process of my own code?
Is running
ExecAll
which enablesExecSymbol
which shows the current function name good enough? E.g. with this I see the first instruction on main as:If you really don't want to log the instructions before main, you can also do a first run that determines the timestamp of the start of
main
(58852500 on the above run) and then use:I don't know any method that does not require an initial run to determine the timestamp. It would be cool to add something to gem5 that enables logging based on the symbol name, I've wanted that before.