[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tracecompass-dev] Populating Control Flow panel with generated events

Hello All,


I would like first to thank you all for the amazing work done!


I am trying to use Trace Compass to display scheduling data coming from a different OS.

I would in particular like to leverage "Control flow" panel to show threads execution.


I found trace_writer.py in https://github.com/lttng/lttng-analyses.git


that lets me  create events of type sched_switch  and  lttng_statedump_process_state


here's an example of the output of babeltrace of my generated trace

[01:00:00.058000000] (+0.000000000) lttng_statedump_process_state: { }, { tid = 2382439472, vtid = 2382439472, pid = 2382439472, vpid = 2382439472, ppid = 98, vppid = 98, name = "thd3", type = 0, mode = 5, submode = 0, status = 5, ns_level = 0, cpu_id = 0 }
[01:00:00.059000000] (+0.001000000) sched_switch: { }, { prev_comm = "test", prev_tid = 2382404352, prev_prio = 20, prev_state = 1, next_comm = "thd1", next_tid = 2382425552, next_prio = 20, cpu_id = 0 }
[01:00:00.059000000] (+0.000000000) sched_switch: { }, { prev_comm = "thd1", prev_tid = 2382425552, prev_prio = 20, prev_state = 1, next_comm = "thd2", next_tid = 2382432512, next_prio = 20, cpu_id = 0 }


I can see the event in the Histogram panel but not in the Control Flow one.


What do I need to do in order to have Trace Compass display data in Control Flow too?



Thank you very much for any input


Best Regards


Gudo