tmf.analysis: Restore the "getCPU" for data-driven analyses
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 12 Nov 2014 18:42:53 +0000 (13:42 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 28 Nov 2014 22:42:58 +0000 (17:42 -0500)
commit35f3942093c6ed66478e5a68befbd4d6d8370e43
tree40e1ce74a5ddcb0c6ba4a28480f7f04f4e06d6d7
parent5002d6c4ff7ab78a64b1df6c903edd2a6dfc55d8
tmf.analysis: Restore the "getCPU" for data-driven analyses

XML data-driven analyses used to use ITmfEvent.getSource() to get
the event's CPU. This was misleading, because trace types were free
to define "source" as something other than CPUs.

Now instead use a CpuAspect to get the CPU of an event. This
should restore support for getting the CPU of CTF traces, as it
did before.

Also added a new method to TmfTraceUtils to get the aspects matching
a specific class. The analysis modules will make use of this to get
the "cpu" aspects.

Change-Id: I88437b4a419e81aef36f2aa5298ff54f87242b23
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/36366
Tested-by: Hudson CI
org.eclipse.tracecompass.tmf.analysis.xml.core/META-INF/MANIFEST.MF
org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/tmf/analysis/xml/core/model/TmfXmlStateAttribute.java
org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/tmf/analysis/xml/core/model/TmfXmlStateValue.java
org.eclipse.tracecompass.tmf.core.tests/src/org/eclipse/tracecompass/tmf/core/tests/trace/TmfTraceTest.java
org.eclipse.tracecompass.tmf.core.tests/src/org/eclipse/tracecompass/tmf/core/tests/trace/TmfTraceUtilsTest.java
org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/tmf/core/trace/TmfTraceUtils.java
This page took 0.032089 seconds and 5 git commands to generate.