I'm trying to take baby steps with Trace Compass to make my own parsers for bare metal non-Linux tracking. I'm outputting a simple trace in CTF format and have successfully imported into Trace Compass. TC recognized/tagged it as "Common Trace Format:Generic CTF Trace". Below is what the event list looks like in Eclipse:
Timestamp Event type Contents
16:00:13.059 673 ThreadRun threadId=40
16:00:13.059 768 ThreadRun threadId=15
16:00:13.059 786 ThreadRun threadId=40
16:00:13.059 823 ThreadRun threadId=3
16:00:13.059 855 ThreadSleep threadId=3, sleepUsec=1000
16:00:13.059 859 ThreadRun threadId=40
16:00:13.059 996 ThreadRun threadId=0
I'm trying to just get an extremely simple/useless custom xml working similar to what's documented in http://archive.eclipse.org/tracecompass/doc/stable/org.eclipse.tracecompass.doc.user/Data-driven-analysis.html#Data_driven_analysis so that I can verify the basic steps and understand what's going on. Below is the xml:
<?xml version="1.0" encoding="UTF-8"?>
<tmfxml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xmlDefinition.xsd">
<stateProvider version="0" id="thread.test.analysis">
<head>
<!-- traceType id="?" /-->
<label value="Thread test analysis" />
</head>
<definedValue name="RUNNING" value="0" />
<eventHandler eventName="ThreadRun">
<stateChange>
<stateAttribute type="constant" value="Tasks" />
<stateAttribute type="eventField" value="threadId" />
<stateValue type="int" value="$RUNNING" />
</stateChange>
</eventHandler>
</stateProvider>
</tmfxml>
I see "Thread test analysis" show up in the State System Explorer view but no tree nodes under it.
What am I doing wrong? What is traceType supposed to be for a generic CTF?
Thanks in advance for your help.