shioyadan / Konata

Konata is an instruction pipeline visualizer for Onikiri2-Kanata/Gem5-O3PipeView formats. You can download the pre-built binaries from https://github.com/shioyadan/Konata/releases
BSD 3-Clause "New" or "Revised" License
383 stars 34 forks source link

gem5 dependency arrow #11

Closed mshiryaev closed 1 year ago

mshiryaev commented 1 year ago

Hello,

I am using the latest gem5 release (v22.1) and the latest pre-built Konata (v0.38). I see that "View->Dependency arrow" menu option is available but it doesn't change displaying in any way. The trace was collected with "--debug-flags=O3PipeView,O3CPUAll".

Could you please clarify what is the proper way to enable dependency arrow for gem5 trace (maybe some additional options, patches should be applied)?

shioyadan commented 1 year ago

Hello,

There are no operations required other than to add O3PipeView and O3CPUAll.

The dependent arrow feature is implemented by parsing physical register numbers contained in the gem5 log, but it is vulnerable because it relies on unstructured debug messages. Perhaps the message format has changed in the latest gem5. I will check it, so please wait a while.

shioyadan commented 1 year ago

I found that the log format has changed slightly in the latest gem5, so I made it compatible with the latest format. I also found bugs related to the dependency arrow feature and fixed them.

If you can try the latest commits, please try it. If you cannot try it yourself, please try it after I release a pre-built binary with the fixes. I will release it soon.

mshiryaev commented 1 year ago

@shioyadan I validated Konata from master branch, now dependency arrows are displayed with the latest gem5. Thank you for the fix!