TMF: Add automatic execution of module dependencies

Change-Id: I461805133715db09f47293af73e9ef5952797298
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/35991
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf.ui: remove duplication in TimeCompressionBar

Change-Id: Ice353af65b57ef71b85082e55fea67a20c61f4af
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37054
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
ctf: add equals and hashcodes to Declarations

Change-Id: I15d8030d2f75979012b87caae4dfc08bbda3ee7a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36093
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
rcp: Change workspace directory to .tracecompass

This was supposed to be part of the big patchset of renames,
but got lost somehow.

Also updated the PLUGIN_ID while at it.

Change-Id: I05664f5697fd655b250884a4ed3e985eeed7a2ff
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/36726
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
ctf: add isBinaryEquivalent() to IDeclaration

This makes EventHeader substitutions more reliable.
Fixes bug 446190

Change-Id: I06f8c0fc99b6a9d07377d57198985d39fb63bc9b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/35984
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
ctf: add test coverage

Change-Id: I405cded362e408fe50e1871143ba5e07069a62d3
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36160
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
ctf: improve testing of EventHeaderDeclaration

Add more subtle test cases

Change-Id: I5a61426a9f4358af522c84de5ae4a8a4ca0e773e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36161
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Add a TmfTraceUtils class for advanced getter methods

For instance, the various getModuleFromClass() methods should not
be part of the base interface, the trace should only expose a basic
getter. The more fancy functions can however be implemented in a
separate utility class.

Change-Id: I8d957971abfbcc7e3afe81f5db2dba43cbebe84d
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/37218
Tested-by: Hudson CI
ctf: make uint_5t and 27t aligned on 1 bit

Change-Id: Idb8d1c96fcf64929f8b49af47910b49e86c2e0c3
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36162
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
ctf: add trace to test ctf

this trace is the one from bug 446190, it contains headers that are 64 bit aligned.

Change-Id: I1ee228ee4f0635b940032f14bf6a080dc8a5c8f2
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36178
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
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
ss: remove e.printStackTrace()s from HT_IO

Change-Id: Ieab2def800f88e50548d8f94b1a39c41e401247c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37047
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Make ITmfTrace.getEventAspects() @NonNull

It's easier to deal with empty collections than dealing with
null/non-null references (for Collection.addAll() and such).

Change-Id: I9e8d0091e099027b5da0c15881b73130b4ef2e9d
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/37121
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
ctf: test reading all downloaded traces once

Change-Id: I28e5feef958ab974f411d43ee6e98ed74ac0ca9b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36179
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Use a CountDownLatch instead of Object.wait() in TmfEventThread

The current way to manage paused requests in TmfEventThread uses
a wait()/notify() on a custom Object. Since this object is not used
for anything else, we can replace its with a CountDownLatch, which
does the same thing without requiring an additional synchronized lock.

Change-Id: Ie69612769e3554d6e71d030230b409d8a0145450
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/36516
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Upgrade to Tycho 0.22

Change-Id: Id5bd57f9dd1197ac6ecbae7720fc18b4e981f73c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36944
Tested-by: Hudson CI
TMF: Change the return type of the CPU aspect to Integer

Change-Id: I8f58d1d72b9ae984d0833d3f15af9793d4d2057f
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/37290
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
lttng: Remove dependency to CtfTmfEvent in analyses

Change-Id: I944f49f1bf8d2b9cb3933a3a20c0d4a86d806ae9
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/36704
Tested-by: Hudson CI
tmf: Execute TmfEventTable's request handler only on success

The handler for the TmfTimeSynchSignal in TmfEventsTable sends an event
request to "position" the experiment to the correct timestamp/event. This
request executes a seek() on the experiment itself, and is located in the
handleCompleted() callback.

It should be moved to the handleSuccess() callback instead: this
repositioning of the experiment should only be done when the request
finishes succesfully. It should not be run if the request was cancelled,
for example because the executor was flooded with requests and cancelled
some of them.

Partial fix for bug 451615.

Change-Id: I905bb5d19aa0fe40f9d63bfd2e4f60d90aba3050
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/36517
Tested-by: Hudson CI
Bug 448058: Update lttng user documentation: Using Remote Services
instead of RSE

Change-Id: I2e9e7682ed611d25ff1a463b4460ac93c2915212
Signed-off-by: Markus Schorn <markus.schorn@windriver.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37114
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>