Skip to main content

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


Thanks for contacting us!
This is very odd, the trace with sched_switch should work....

Are you allowed to share the trace? We can look at it and see where things go awry.

If indeed this is a bug, we are in the right time to fix it as trace compass 4.2 is almost out.

Here's something we can test while waiting.

Does your trace icon look like a happy purple mole? or an excel spreadsheet?

If it's the mole, we have a legit bug.

If it's the spreadsheet...

In your metadata file, you have an env block, could you share it?

Does it have something like "lttng-modules=2.7"?

You need that string to autodetect the trace as a kernel trace, if not, you can override it by right clicking on the trace, then in select trace type, Common Trace Format, and click on linux kernel trace.

Then try re-opening the trace.

Please tell us if any of these shots in the dark worked.



From: tracecompass-dev-bounces@xxxxxxxxxxx <tracecompass-dev-bounces@xxxxxxxxxxx> on behalf of Guido Roncarolo <guido.roncarolo@xxxxxxx>
Sent: Wednesday, December 5, 2018 8:13:10 AM
To: tracecompass-dev@xxxxxxxxxxx
Subject: [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 in

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


Back to the top