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

Colouring based on ThreadID not working #17

Open cnpapado opened 11 months ago

cnpapado commented 11 months ago

Hello, I noticed that when choosing to colour instructions based on ThreadID, all instructions have the same colour regardless of the thread. Moreover, when hovering to any instruction in the left pane, the TID field is always 0.

For example the following inst (sn: 5250) belongs to thread 1 as we can see from the O3CPUAll log:

5504500: global: DynInst: [sn:5250] Instruction created. Instcount for system.cpu = 33
5504500: system.cpu.fetch: [tid:1] Instruction PC (0x101ce=>0x101d0).(0=>1) created [sn:5250].
5504500: system.cpu.fetch: [tid:1] Instruction is: c_addi a5, 8

But in Konata is it displayed as if it was belonging to thread 0:

image

Let me know if I'm missing anything. Thanks!

shioyadan commented 11 months ago

Hello, I apologize for my delayed response.

At the moment, the color scheme for threads is implemented exclusively for the Kanata log format, not the gem5 log format. I am eager to extend this implementation to support the gem5 log format. Could you please share some sample log files that include multi-thread execution in gem5? Thanks.