deliverable/tracecompass.git
10 years agotmf: Add timeouts to potentially hanging tests
Alexandre Montplaisir [Mon, 25 Nov 2013 22:27:44 +0000 (17:27 -0500)] 
tmf: Add timeouts to potentially hanging tests

Change-Id: Ia429dad124844abbac44afa644250238c8a60f5a
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/18863
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Etienne Bergeron <etienne.bergeron@gmail.com>
10 years agotmf: Remove unused TmfSortedArray.
Etienne Bergeron [Tue, 26 Nov 2013 01:49:28 +0000 (20:49 -0500)] 
tmf: Remove unused TmfSortedArray.

This data-structure seems unused.
It's implemented with an insertion sort, and won't scale.

Change-Id: I49ae518a384817c4fd537c989240454e00f6f38b
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18875
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

10 years ago[ctf] Fix coding style issues in BitBuffer.
Etienne Bergeron [Fri, 22 Nov 2013 05:11:19 +0000 (00:11 -0500)] 
[ctf] Fix coding style issues in BitBuffer.

Fix potential issue with an undefined behavior in CTF.
 - Reading a integer of zero bit at the end of the buffer may be valid.
 - Change the behavior to accept it.

Change-Id: I22fccc4e2ffee3bbf796e52b516b00f7fc5e31ac
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18707
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years ago[ctf] Fix binary search for a long sequence of same timestamps.
Etienne Bergeron [Thu, 21 Nov 2013 00:03:05 +0000 (19:03 -0500)] 
[ctf] Fix binary search for a long sequence of same timestamps.

The binary search algorithm does not need a third case
(when values are equals) if there is a guarantee to remove
one element in the search space at each iteration.
The actual binary search implementation performs a sequential
search on elements with the same timestamp (to find the first
one).

The ETW2CTF traces produce many debug events for the debugging
information at the module load timestamp. Which is the worse
case for the actual implementation.

We changed the algorithm to use the timestamp end of a packet
instead of the beginning. We changed the way to choose a
middle element to ease the recursion by using only two cases.

Change-Id: I4f16d43b9533f8f1449cdb3c4c213bcb9f962daf
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18654
Reviewed-by: Matthias Nick <Matthias.Nick@bsiag.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tested-by: Hudson CI
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoTMF: Check presence of fields for TCP event synchronization
Geneviève Bastien [Mon, 25 Nov 2013 19:27:57 +0000 (14:27 -0500)] 
TMF: Check presence of fields for TCP event synchronization

Traces using an old version of the TCP addons module would get a NPE when
getting the key to match packets.

Change-Id: Ib0470834807b1933f5f46069c5377115764b9dda
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/18848
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

10 years agoctf: Replace Long.compare() with Java 6 compatible method
Alexandre Montplaisir [Mon, 25 Nov 2013 18:08:32 +0000 (13:08 -0500)] 
ctf: Replace Long.compare() with Java 6 compatible method

We still technically support Java 6, and Long.compare() was added in 7.

Change-Id: I565b40bbc11c1c1c3b05a4097cc0e619598d0553
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/18841
Reviewed-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>

10 years agoctf: Remove unused StreamInputReaderComparator.
Etienne Bergeron [Sun, 24 Nov 2013 21:36:14 +0000 (16:36 -0500)] 
ctf: Remove unused StreamInputReaderComparator.

This is a clone of StreamInputReaderTimestampComparator.

Change-Id: Ib640cbafe8105bad2c18a3f5e35136e0a5693597
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18796
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years ago[ctf] Simplify the logic of the unsigned long comparator.
Etienne Bergeron [Sun, 24 Nov 2013 05:17:35 +0000 (00:17 -0500)] 
[ctf] Simplify the logic of the unsigned long comparator.

To understand this modification, let assume the "char 8-bits" domain.

unsigned [0 .. 255]
signed [-128 .. 127]

By receiving the parameters encoded in a signed number, the method receives

left:  [0..127,-128..-1]  (which represents [0..127,128..255])
right: [0..127,-128..-1]  (which represents [0..127,128..255])

By definition (on an unconstrained domain), this assertion holds

 left < right  <==>  left + k < right + k

Thus, the idea is to rotate the domain by k to allow a signed operator to
be able to compare to full domain.
In this case k must be -128.

By rotating the domain, left and right range become [-128..-1,0..127],
and are now comparable with the signed operator.

Change-Id: I92b27ab00e8f14102a04e085ef807e211e39a7f0
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18784
Tested-by: Hudson CI
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
IP-Clean: Xavier Raynaud <xavier.raynaud@kalray.eu>
Tested-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
10 years agoAvoid multiple seek to the same location.
Etienne Bergeron [Tue, 19 Nov 2013 02:14:46 +0000 (21:14 -0500)] 
Avoid multiple seek to the same location.

There is multiple instance of seeking to the same location twice.
To solve this issue the seek method check if the current location is the same.
Here is the explanation:
[CtfTmfContext.java]
    public void setLocation(ITmfLocation location) {
        curLocation = (CtfLocation) location;
        if (curLocation != null) {
            getIterator().seek(curLocation.getLocationInfo());
        }
    }
GetIterator  --> will force a seek to curLocation
.seek        --> force an other seek to curLocation
Here are the called method:
    private CtfIterator getIterator() {
        return CtfIteratorManager.getIterator(fTrace, this);
    }
    public static synchronized CtfIterator getIterator(final CtfTmfTrace trace,
            final CtfTmfContext ctx) {
        return map.get(trace).getIterator(ctx);
    }
    public CtfIterator getIterator(final CtfTmfContext context) {
            [...]
            if (context.getLocation() != null) {
                final CtfLocationInfo location = (CtfLocationInfo) context.getLocation().getLocationInfo();
                retVal.seek(location);   /// FORCE SEEK!!!!!!!!!!!!
            }
Change-Id: Ib5ad6d05eb47045660c7ab5076930a30e829c7a0
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18461
Reviewed-by: François Doray <fdoray.eclipse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Fix unsafe cast warning in TmfTrace
Alexandre Montplaisir [Fri, 4 Oct 2013 21:57:28 +0000 (17:57 -0400)] 
tmf: Fix unsafe cast warning in TmfTrace

Now that TmfData/EventProvider are merged, .getType() will always
return an instance of an ÌTmfEvent. Simply fix the generic types
to take this in consideration.

Change-Id: I791b59c480311a34c7416564219f6d3fed3f5951
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17054
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agotmf: Move TmfEventRequest.ALL_DATA to the interface
Alexandre Montplaisir [Fri, 4 Oct 2013 22:08:09 +0000 (18:08 -0400)] 
tmf: Move TmfEventRequest.ALL_DATA to the interface

No reasons for static defines to not be in the interface. And it was
always confusing that ExcecutionType was in the interface, but
ALL_DATA was not.

Change-Id: I373f0d36e779e9194315ad5d1df8c1237b94be1f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17053
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agoMerge branch 'master' into lttng-luna
Alexandre Montplaisir [Fri, 22 Nov 2013 21:41:01 +0000 (16:41 -0500)] 
Merge branch 'master' into lttng-luna

10 years agotmf: Merge TmfDataProvider and TmfEventProvider together
Alexandre Montplaisir [Fri, 4 Oct 2013 20:50:46 +0000 (16:50 -0400)] 
tmf: Merge TmfDataProvider and TmfEventProvider together

Initially, there was a plan to support "traces" that had no timestamps,
and this would be handled by a DataProvider. Turns out the whole
framework requires some sort of timestamp nowadays, so this distinction
is no longer necessary.

(If a trace really does not have any timestamp, they could just use the
event rank as a sort of dummy timestamp, which is quite intuitive anyway).

This also merges Tmf{Data|Event}Request and TmfCoalesced{Data|Event}Request.

Change-Id: I734bb297d252d56902e1eb0534669b0d4088d911
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17052
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoctf: Update paths in the CTF-Testsuite tests
Alexandre Montplaisir [Sun, 17 Nov 2013 19:13:26 +0000 (14:13 -0500)] 
ctf: Update paths in the CTF-Testsuite tests

The upstream CTF-Testsuite was updated, let's follow 'suite'.

This also changes the test mechanisms to use parametrized tests. This
way, we get one JUnit test per test-trace being run, so we'll know the
exact amount of tests that are failing (instead of bailing out as soon
as we get one failure).

Those tests are disabled by default to avoid build failures for now,
but they should be fixed/reenabled as soon as possible.

Change-Id: Iadcd7c2d4352301cf60c132e0f2d8dc80f75a688
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/18479
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>

10 years agoAvoid flickering redraw of TmfEventsTable on open.
Etienne Bergeron [Sat, 16 Nov 2013 06:48:36 +0000 (01:48 -0500)] 
Avoid flickering redraw of TmfEventsTable on open.

There is a 4 or 5 redraw of the Events table caused by the columns pack.
To avoid flickering, it's better to disable the redraw of the table.

I didn't try this fix on linux.

Change-Id: Idcfd1f5a79faee8ae0c31b268c67576ba1547760
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18648
Reviewed-by: François Doray <fdoray.eclipse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
10 years ago[ctf] Fixes multiple coding style issues while reading ctf Types.
Etienneb Bergeron [Fri, 22 Nov 2013 05:30:05 +0000 (00:30 -0500)] 
[ctf] Fixes multiple coding style issues while reading ctf Types.

Change-Id: I73a2e42b76090ed344a32da330cd0ab240b68099
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18706
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Fix NullPointerException TmfTraceElement
Bernd Hufmann [Fri, 22 Nov 2013 17:45:17 +0000 (12:45 -0500)] 
tmf: Fix NullPointerException TmfTraceElement

and fix timing issues in TMF UI tests. The NPE and timing issues
causes problems in the TMF UI tests. That's way they are committed in
one patch.

Change-Id: If80562c11f9daab5756adf982b35a9e6b308e03b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18748
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoShortcut string creation in tracing functions.
Etienne Bergeron [Fri, 15 Nov 2013 04:17:37 +0000 (23:17 -0500)] 
Shortcut string creation in tracing functions.

This quick fix avoid useless creation of the message to be logged when tracing isn't enabled.

Change-Id: If1a667451c59afa67e25572f598e0826ce92f090
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18453
Reviewed-by: François Doray <fdoray.eclipse@gmail.com>
Tested-by: Hudson CI
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Remember last selected directory in Batch Import wizard
Marc-Andre Laperle [Sun, 17 Nov 2013 23:25:26 +0000 (18:25 -0500)] 
tmf: Remember last selected directory in Batch Import wizard

Change-Id: I2a166af74ef8720ec672b56980493967bf7eb874
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18480
Tested-by: Hudson CI
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoTMF: Add base class and interface for state system analysis
Geneviève Bastien [Thu, 14 Nov 2013 16:42:31 +0000 (11:42 -0500)] 
TMF: Add base class and interface for state system analysis

Also update the state system explorer to show state systems from modules
instead.

Change-Id: Iab6424be1a469c541d3e9b199d7377c8a4e70299
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/18098
Tested-by: Hudson CI
10 years agoMerge branch 'master' into lttng-luna
Alexandre Montplaisir [Mon, 18 Nov 2013 23:37:31 +0000 (18:37 -0500)] 
Merge branch 'master' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.tmf.ui/META-INF/MANIFEST.MF
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/DeleteTraceHandler.java
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfTraceElement.java

Change-Id: I06c617e5e9ec6e691592971f9fc78812751623c8

10 years agoRevert "ctf: Simplify position arithmetic in aligned reads"
Alexandre Montplaisir [Mon, 18 Nov 2013 23:29:12 +0000 (18:29 -0500)] 
Revert "ctf: Simplify position arithmetic in aligned reads"

This reverts commit 24aae8967b763e5e2c8d87acac9c1a10533ae598.

With the newest content of master, this patch fails some unit tests while it didn't before... This will have to be investigated further.

Change-Id: I08dae5325b2048d84a6492780a02132a485ca914
Reviewed-on: https://git.eclipse.org/r/18536
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoMerge commit 'cea87c3123c41bd06cd2b816f885a27612dfc356' into lttng-luna
Alexandre Montplaisir [Mon, 18 Nov 2013 23:18:15 +0000 (18:18 -0500)] 
Merge commit 'cea87c3123c41bd06cd2b816f885a27612dfc356' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.ctf.core.tests/pom.xml
lttng/org.eclipse.linuxtools.ctf.core.tests/shared/org/eclipse/linuxtools/ctf/core/tests/shared/CtfTestTrace.java
lttng/org.eclipse.linuxtools.ctf.core.tests/traces/.gitignore
lttng/org.eclipse.linuxtools.ctf.core.tests/traces/get-traces.xml
lttng/org.eclipse.linuxtools.tmf.core.tests/shared/org/eclipse/linuxtools/tmf/core/tests/shared/CtfTmfTestTrace.java

Change-Id: Id7e995409cfeace1407abea1bd7c3c81f758ef22

10 years agoMerge commit '2c789b58062b5bf3bb16ca1654ccf9cf87f3c444' into lttng-luna
Alexandre Montplaisir [Mon, 18 Nov 2013 22:14:16 +0000 (17:14 -0500)] 
Merge commit '2c789b58062b5bf3bb16ca1654ccf9cf87f3c444' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDefinition.java
lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/FloatDefinition.java
lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IntegerDefinition.java
lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDefinition.java
lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StructDefinition.java

Change-Id: I1f0ffe6e8f8546aa1e0a6b850841558d57eb766b

10 years agoctf: Simplify position arithmetic in aligned reads
Alexandre Montplaisir [Sun, 17 Nov 2013 05:09:46 +0000 (00:09 -0500)] 
ctf: Simplify position arithmetic in aligned reads

Thanks to Étienne Bergeron for this suggestion.

Change-Id: Ib8617651e797afa806b4997828f6ba7e392e8165
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/18466

10 years agoctf: Move CTF-testsuite tests to a separate file
Alexandre Montplaisir [Sun, 17 Nov 2013 18:28:14 +0000 (13:28 -0500)] 
ctf: Move CTF-testsuite tests to a separate file

Change-Id: I0ebbe99f577430c16388ee6619d7a4d3a98044ae
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/18478
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agotmf: Import and Export trace package user guide
Marc-Andre Laperle [Fri, 1 Nov 2013 19:06:45 +0000 (15:06 -0400)] 
tmf: Import and Export trace package user guide

Change-Id: Ib9b56867257434db0afcb8c53e8969a1d6729d19
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18110

10 years agotmf: Import and Export trace package
Marc-Andre Laperle [Wed, 18 Sep 2013 22:19:26 +0000 (18:19 -0400)] 
tmf: Import and Export trace package

Import and export files, bookmarks, supplementary files for a
single trace as an archive (tar, tar.gz or zip)

Change-Id: I71f5f104b2c552a5dbb2721fbdde9b069dd1a306
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17666
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agoFix invalid cast which break trace files bigger than 2 gig.
Etienne Bergeron [Sat, 16 Nov 2013 02:57:08 +0000 (21:57 -0500)] 
Fix invalid cast which break trace files bigger than 2 gig.

The min operation received a value which can be negative after the cast.
(Values bigger then 2^31). Thus, the trace files has one chance on two to open.

Change-Id: Id97578f430af8336bab9d863f575f46ed7f54adc
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18456
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agoFix coding style in TmfVirtualTable.
Etienne Bergeron [Fri, 15 Nov 2013 05:56:20 +0000 (00:56 -0500)] 
Fix coding style in TmfVirtualTable.

Fixing some nits I've found while reading this file.
Mostly no behavior changed, except shortcut a loop and removing a useless test.

Change-Id: Iaa2db0f7fc6cf72a3b87b0f67763a4dbf073cf57
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18454
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoctf: Add advanced trace tests
Alexandre Montplaisir [Wed, 16 Oct 2013 23:18:56 +0000 (19:18 -0400)] 
ctf: Add advanced trace tests

Using a more exotic test trace.

I'm not exactly sure why a string field ends up in-between the variant
selector and its value, but this is how they are printed by Babeltrace,
so I assume we're doing the right thing.

Change-Id: I4bd0f35d31a7c592fafd64b3321f182f9de71c79
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17550

10 years agotmf: update batch import wizard to show file sizes
Matthew Khouzam [Thu, 17 Oct 2013 15:37:15 +0000 (11:37 -0400)] 
tmf: update batch import wizard to show file sizes

Change-Id: I970c569860f81a2bd33a3ab227aa7ff3db2679b8
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17690
Tested-by: Hudson CI
10 years agoctf: add synthetic LTTng kernel trace
Matthew Khouzam [Fri, 4 Oct 2013 20:39:44 +0000 (16:39 -0400)] 
ctf: add synthetic LTTng kernel trace

This will allow us to have much more control over testing the parser
and it allows scalability testing too.

Change-Id: I433709dafab8fd5c8d412cb9b4b632ade03f18a9
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17050
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

10 years agolttng: Bump the target definition sequence number because of RSE change
Marc-Andre Laperle [Mon, 18 Nov 2013 06:38:51 +0000 (01:38 -0500)] 
lttng: Bump the target definition sequence number because of RSE change

The sequence number needs to be changed so that PDE reloads the target
definition properly in certain cases. In Eclipse 4.4 it can lead to
non-obvious
errors, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=420322

Change-Id: I8fac34ba6c0edc3d3f243d70ec8b76bc6ddab9e9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18483

10 years agoMerge commit 'e1de8d2d152352eded708615a967021db7800709' into lttng-luna
Alexandre Montplaisir [Mon, 18 Nov 2013 04:03:50 +0000 (23:03 -0500)] 
Merge commit 'e1de8d2d152352eded708615a967021db7800709' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/Messages.java
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/messages.properties

Change-Id: I542be9c92e142114af14796545097c44c8962360

10 years agotmf: Add a debugging test Suite
Alexandre Montplaisir [Fri, 15 Nov 2013 23:45:51 +0000 (18:45 -0500)] 
tmf: Add a debugging test Suite

When a test suite is run with the new DebugSuite runner, the name
of every test being run will be printed to stdout. It's not used
by default, but it can be manually switched to. This can help debug
unit tests, especially when run from Maven.

Change-Id: I5b3ca8a0a0f7867977500e5b3a280c46d702672c
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/18464
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Add function name mapping to the Callstack View
Alexandre Montplaisir [Tue, 29 Oct 2013 22:35:33 +0000 (18:35 -0400)] 
tmf: Add function name mapping to the Callstack View

Initial version of the "function name mapper" for the Callstack View.
It currently only supports a text file listing addresses followed by
names, like the output of "nm [binary] > out.txt".

The next steps will be:
- Add support for reading the binary directly, by tapping into the
  relevant CDT components.
- Add a separate dialog that shows the currently imported file name(s).
- Add support for dynamically-loaded libraries. This will require some
  work on the tracer side.

Change-Id: Id622cce487965b8c770fc40218685ec7605924ff
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17978
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agoAvoid calling reverse on a list.
Etienne Bergeron [Sat, 9 Nov 2013 03:59:35 +0000 (22:59 -0500)] 
Avoid calling reverse on a list.

Change-Id: I3f3b17ea4372ef5db64b20f9c267d606ded8101a
Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-on: https://git.eclipse.org/r/18452
Reviewed-by: François Doray <fdoray.eclipse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoctf: Move non-aligned reads to a unified method
Matthew Khouzam [Wed, 6 Nov 2013 22:01:26 +0000 (17:01 -0500)] 
ctf: Move non-aligned reads to a unified method

* Clean up integer reading
* Clean up string reading
* Clean up enumeration reading
* Clean up float reading
* Clean up structure reading

Change-Id: I3627f0c1aaecbaa84d861cba05c0681a7b267388
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17465
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agolttng: Add icons to build.properties in UST UI plugin
Marc-Andre Laperle [Thu, 14 Nov 2013 23:32:33 +0000 (18:32 -0500)] 
lttng: Add icons to build.properties in UST UI plugin

Change-Id: Idfc348d1f281f609e12ae82118998c7b36fc858e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18415
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

10 years agotmf/lttng: Add Export To Text feature to User Guide
Bernd Hufmann [Fri, 15 Nov 2013 13:32:06 +0000 (08:32 -0500)] 
tmf/lttng: Add Export To Text feature to User Guide

Change-Id: Iff24f9af28fd0f97c0568bfb764d996ededa7b8b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18428
Tested-by: Hudson CI
Reviewed-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
IP-Clean: Xavier Raynaud <xavier.raynaud@kalray.eu>
Tested-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng: Add o.e.l.lttng2.ust feature to Linux Tools and LTTng releng
Bernd Hufmann [Tue, 12 Nov 2013 19:26:18 +0000 (14:26 -0500)] 
lttng: Add o.e.l.lttng2.ust feature to Linux Tools and LTTng releng

Change-Id: I3e00018fc190fa0883c4b6674987f33a772618f2
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18312
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Delete experiment supp files when adding/removing trace
Marc-Andre Laperle [Fri, 6 Sep 2013 14:54:07 +0000 (10:54 -0400)] 
tmf: Delete experiment supp files when adding/removing trace

Bug: 421372

Change-Id: I9dde1c7988df47348e5c96ecda43df45dc062c4a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18281
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoTMF: Export trace to text
Xavier Raynaud [Thu, 14 Nov 2013 11:58:46 +0000 (12:58 +0100)] 
TMF: Export trace to text

Add a command to export traces to text.
If a filter is applied, only filtered elements are exported.

Change-Id: Ie213eda715f68104572704cb3c08226aa5c52a85
Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Reviewed-on: https://git.eclipse.org/r/17813
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng-rcp: fix group-ids in pom.xml files
Bernd Hufmann [Thu, 14 Nov 2013 14:06:52 +0000 (09:06 -0500)] 
lttng-rcp: fix group-ids in pom.xml files

Change-Id: I13c40fce900473cee2a44051150e61f7353b04fa
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18384
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng-rcp: build rcp plug-ins and features by default
Bernd Hufmann [Tue, 12 Nov 2013 19:54:22 +0000 (14:54 -0500)] 
lttng-rcp: build rcp plug-ins and features by default

This allows us to notice errors during every Gerrit contribution and
build. Note that the product is not build by default (yet).

Change-Id: Ic2e5e0aef7d43c80027b0fbc6a5829916bea2e5d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18314
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

10 years agolttng: Use RSE SDK in target definitions so that sources are available
Marc-Andre Laperle [Tue, 12 Nov 2013 19:48:26 +0000 (14:48 -0500)] 
lttng: Use RSE SDK in target definitions so that sources are available

Change-Id: I73b42b577193da2b05ef7b6d14912bb9e08b466c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18313
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>

10 years agolttng: Disallow adding contexts on events for v2.2 or later (419455)
Bernd Hufmann [Thu, 24 Oct 2013 18:59:39 +0000 (14:59 -0400)] 
lttng: Disallow adding contexts on events for v2.2 or later (419455)

Change-Id: Ib68015ed1fb4b3bccfa18f010763a7c82ddf5806
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17744
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng/tmf/gdb: Remove not needed epl-v10 and license html files.
Bernd Hufmann [Sat, 9 Nov 2013 02:03:57 +0000 (21:03 -0500)] 
lttng/tmf/gdb: Remove not needed epl-v10 and license html files.

Since there is a shared license feature no need to have epl-v10.html
and license.html files in each feature project. All build.properties
file have been also updated for that.

Change-Id: I2e1265a95d73932672fa4fe9941541f7839523c9
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18243
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agolttng: Add possibility to select/deselect all in remote import dialog
Bernd Hufmann [Tue, 5 Nov 2013 19:57:10 +0000 (14:57 -0500)] 
lttng: Add possibility to select/deselect all in remote import dialog

Change-Id: I41c32e3d214b422795679ba1d2e425eb8af58e5b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18099
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
10 years agotmf: Fix display of title in the SelectSupplementaryResources dialog
Marc-Andre Laperle [Wed, 6 Nov 2013 22:50:50 +0000 (17:50 -0500)] 
tmf: Fix display of title in the SelectSupplementaryResources dialog

Change-Id: I659333998e5a22da8aea35741675f6d12c666388
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18157
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoMerge branch 'master' into lttng-luna
Alexandre Montplaisir [Wed, 6 Nov 2013 21:13:57 +0000 (16:13 -0500)] 
Merge branch 'master' into lttng-luna

10 years agotmf: add title to trace type selection dialog
Matthew Khouzam [Tue, 29 Oct 2013 15:54:00 +0000 (11:54 -0400)] 
tmf: add title to trace type selection dialog

Change-Id: I71ad373debffd63dc5f7263e0c850a3ad0c259f1
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17854
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Add open trace with trace type hint
Matthew Khouzam [Tue, 29 Oct 2013 22:15:41 +0000 (18:15 -0400)] 
tmf: Add open trace with trace type hint

Allows for better automation of trace opening if
you know your trace type in advance.

Change-Id: I5a9c0213ee54df921b3008cc7bdd99cf1da8f5ff
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17865
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agolttng: Provide detailed progress information for remote import
Bernd Hufmann [Tue, 5 Nov 2013 13:31:29 +0000 (08:31 -0500)] 
lttng: Provide detailed progress information for remote import

Change-Id: Ib1e6c1ddae38c407a39b56fbb2cfd0e313621b3b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18080
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng: Fix display of titles of all dialogs of the LTTng Control
Bernd Hufmann [Tue, 5 Nov 2013 20:30:40 +0000 (15:30 -0500)] 
lttng: Fix display of titles of all dialogs of the LTTng Control

Change-Id: Ibcc2ad1d9cef3152bf24d632f79939ebdbedb341
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18102
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agotmf: Fix concurrency issue of TmfEventThread (bug 421016)
Bernd Hufmann [Mon, 4 Nov 2013 19:53:19 +0000 (14:53 -0500)] 
tmf: Fix concurrency issue of TmfEventThread (bug 421016)

Change-Id: I4f8daf1fad5f24576e9b9db14a92edae2be8db70
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18061
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agotmf: Update the suspend and resume handling of requests
Bernd Hufmann [Mon, 4 Nov 2013 19:26:22 +0000 (14:26 -0500)] 
tmf: Update the suspend and resume handling of requests

The new implementation handles the event before suspending the thread
requested by the request executor. In the previous implementation the
thread is suspended before handleData() which causes unnecessary
handling of data if the request is canceled during the time the
thread is suspended.

Change-Id: I25e143db734ebf524630651e4ac779a7b4657e6a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18045
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Move default tracing project name to common constants
Marc-Andre Laperle [Thu, 31 Oct 2013 20:08:59 +0000 (16:08 -0400)] 
tmf: Move default tracing project name to common constants

Currently, the default tracing project name "Tracing" is defined
in the RCP only. It makes sense to also create a default project in
other cases such as when importing a trace with no projects in the
workspace so the name needs to be accessible to other plug-ins.

Change-Id: I8739e651217f8b369a37d8b4784df5d9f8110e18
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17944
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Optimize the ETERNITY time range
Alexandre Montplaisir [Fri, 1 Nov 2013 22:54:12 +0000 (18:54 -0400)] 
tmf: Optimize the ETERNITY time range

TmfTimeRange.ETERNITY is often used in requests and the like, when
you do not want to filter on timestamps at all. Implement it as
a subclass which does not even bother checking the range borders,
since any other timestamp or time range is definitely included.

Change-Id: I45c80523b054c33bd96f859355b795be38f7e760
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17981
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>

10 years agotmf: Fix zero timestamp being included in all time ranges
Alexandre Montplaisir [Fri, 1 Nov 2013 18:50:46 +0000 (14:50 -0400)] 
tmf: Fix zero timestamp being included in all time ranges

For some obscure unknown reason, if a timestamp's value was equal
to 0, the TmfTimeRange.contains() method would always consider that
timestamp to be included in the time range, which is obviously wrong.

Change-Id: I61afea2eb05ede61b02dbaaed388e1a49c041fa2
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17980
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoTMF: Introduce a framework to hook trace analysis modules/plugins
Geneviève Bastien [Mon, 15 Jul 2013 18:55:41 +0000 (14:55 -0400)] 
TMF: Introduce a framework to hook trace analysis modules/plugins

* Add a new extension point to define trace analysis modules.
* Add new interface IAnalysisModule and abstract class
  TmfAbstractAnalysisModule to implement the analysis itself.
* TmfAnalysisManager is the main class to obtain which analysis are available
  to a trace.
* IAnalysisOutput interface describe the different outputs the analysis can
  provide.  Objects of classes implementing this interface can register to an
  analysis module.
* The IAnalysisParameterProvider allows other parts of the system to set an
  analysis' parameters.
* Analysis are executed as Eclipse jobs.
* On the UI side, analysis and their provided outputs (if any) are now children
  of the trace and can be directly opened.
* Unit tests in tmf.core and tmf.ui provide stub analysis.

Change-Id: Ie0d0fa9b726555b6416829c1c49e44301297d11b
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/14935
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>

10 years agoTMF: Add open and select methods to trace stubs, and dispose method
Geneviève Bastien [Fri, 25 Oct 2013 13:03:38 +0000 (09:03 -0400)] 
TMF: Add open and select methods to trace stubs, and dispose method

bug 420406

Change-Id: I17389173a36f38a1b7fcc4e92b8ab50c695d1c03
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/17767
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>

10 years agoTMF: Fix concurrency issue in TMF scheduler tests
Bernd Hufmann [Fri, 1 Nov 2013 19:41:26 +0000 (15:41 -0400)] 
TMF: Fix concurrency issue in TMF scheduler tests

Change-Id: I4b360b8d1e5e064e0a9470ed8f450f52b969d189
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17971
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Fix ArrayIndexOutOfBoundsException in Batch import on Mac
Marc-Andre Laperle [Wed, 30 Oct 2013 03:08:50 +0000 (23:08 -0400)] 
tmf: Fix ArrayIndexOutOfBoundsException in Batch import on Mac

Bug: 420693

Change-Id: Ifad8934a4c85bf7885a7c7c20cb99d179c6898a3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17868
Tested-by: Hudson CI
10 years agotmf: Use a common method to get opened tmf projects
Marc-Andre Laperle [Wed, 30 Oct 2013 01:19:29 +0000 (21:19 -0400)] 
tmf: Use a common method to get opened tmf projects

Change-Id: I2caf2ef68ab336c1263e2b2bd883648cde081fa5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17867
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Fix SD unit tests with GTK3
Alexandre Montplaisir [Tue, 29 Oct 2013 20:25:07 +0000 (16:25 -0400)] 
tmf: Fix SD unit tests with GTK3

Using a very recent Eclipse integration build (which now uses the GTK3 SWT
backend), two of the Sequence Diagram unit tests fail because of invalid
parameter values.

This patch fixes the test by clamping the height/width area values to 1.
Exceptions can then only be thrown for run-time problems (like getDisplay()
returning null), so we let those go as runtime exceptions.

Change-Id: Idccbb3490e6a0ed9dc83c1f7582c61251ec09142
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17857
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>

10 years agoMerge branch 'master' into lttng-luna
Alexandre Montplaisir [Wed, 30 Oct 2013 19:03:58 +0000 (15:03 -0400)] 
Merge branch 'master' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.ctf.core.tests/traces/get-traces.sh
lttng/org.eclipse.linuxtools.lttng2.ust.core/src/org/eclipse/linuxtools/lttng2/ust/core/trace/LttngUstTrace.java
lttng/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/TmfCheckpointIndexTest.java
lttng/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/indexer/checkpoint/TmfCheckpointIndexTest2.java
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEventField.java

Change-Id: Ia1967a2a53ffe8006e4f99e523e385a852e44b11

10 years agotmf: Bug 420220: TimerThread leak
Patrick Tasse [Wed, 23 Oct 2013 21:04:17 +0000 (17:04 -0400)] 
tmf: Bug 420220: TimerThread leak

Change-Id: I5d82dc669dd6f1a4023072e18fe775d5a3414f9d
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/17707
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng-rcp: remove unnecessary maven nature of branding project
Bernd Hufmann [Tue, 29 Oct 2013 18:13:52 +0000 (14:13 -0400)] 
lttng-rcp: remove unnecessary maven nature of branding project

Change-Id: If039938f8bc6fcefd31048f3958ede114a69cb2a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17852
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Use long[] instead of List<Long> in CTF integer-array fields
Alexandre Montplaisir [Sat, 19 Oct 2013 02:51:52 +0000 (22:51 -0400)] 
tmf: Use long[] instead of List<Long> in CTF integer-array fields

Fixes a warning with Eclipse 4.4, as it doesn't like unchecked conversions
from non-generics types (here Object) to a type with generics.

Change-Id: I7645b61aebea8e76642572c8ad02d37abb1552d6
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17549
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
10 years agolttng: fix property display of function probe event Bug 419454
Bernd Hufmann [Thu, 24 Oct 2013 18:35:11 +0000 (14:35 -0400)] 
lttng: fix property display of function probe event Bug 419454

Change-Id: I4355b74e53c0241acf7f314477c7ea1695b91e21
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17745
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years ago[TMF] Don't enable OK button in delete supp files dialog unless something is selected
Marc-Andre Laperle [Thu, 24 Oct 2013 20:28:43 +0000 (16:28 -0400)] 
[TMF] Don't enable OK button in delete supp files dialog unless something is selected

Bug: 420332

Change-Id: I66b4ab6e5b6529251db4657bf8ab21646e59de2d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17748
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>

10 years agoTMF: Add new ctf trace stub to identify ctf test traces
Geneviève Bastien [Thu, 24 Oct 2013 14:08:24 +0000 (10:08 -0400)] 
TMF: Add new ctf trace stub to identify ctf test traces

Change-Id: I77536c7723df04f95cb8c78f4aac8e2c02a22ae8
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/17734
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years ago[LTTng] Fix BufferOverflowException batch importing LTTng UST trace
Marc-Andre Laperle [Wed, 23 Oct 2013 18:18:11 +0000 (14:18 -0400)] 
[LTTng] Fix BufferOverflowException batch importing LTTng UST trace

Bug: 420203

Change-Id: Id0d793b39ad28c80fd04d61bcd2646b419656e9e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17699
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years ago[TMF] NPE in BatchImportTraceWizard.recurse
Marc-Andre Laperle [Wed, 23 Oct 2013 05:50:28 +0000 (01:50 -0400)] 
[TMF] NPE in BatchImportTraceWizard.recurse

Put the absolute path of the file in the map to make it consistent with
how we query the map.

Bug: 420132

Change-Id: Id995ab06e31e0dd9b01c2c31f4d929f6b75aa944
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17676

10 years ago[TMF] Don't swallow exception in Batch import "startUpdateTask"
Marc-Andre Laperle [Wed, 23 Oct 2013 03:57:04 +0000 (23:57 -0400)] 
[TMF] Don't swallow exception in Batch import "startUpdateTask"

One of the tasks in Batch import swallows exceptions making it much more
difficult to figure out what went wrong. Another one was being printed
to standard output.

Change-Id: Ife9c61dee1e57db4af11986739b712ca43c1f7c9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17675
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>

10 years agoctf: Drop the get-traces.sh script
Alexandre Montplaisir [Wed, 16 Oct 2013 23:08:39 +0000 (19:08 -0400)] 
ctf: Drop the get-traces.sh script

We have a get-traces.xml Ant script already, which is slightly more
portable. No need to keep two redundant scripts in sync.

Change-Id: Ic17334d1309e8e822b1c7a545cfda35b985fe5e4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17548

10 years agoMerge branch 'master' into lttng-luna
Bernd Hufmann [Tue, 22 Oct 2013 16:55:32 +0000 (12:55 -0400)] 
Merge branch 'master' into lttng-luna

10 years agoMerge branch 'master' into lttng-luna
Bernd Hufmann [Tue, 22 Oct 2013 16:52:30 +0000 (12:52 -0400)] 
Merge branch 'master' into lttng-luna

10 years agolttng-rcp: Use tar.gz on Mac, it is supported by default
Marc-Andre Laperle [Mon, 21 Oct 2013 18:26:34 +0000 (14:26 -0400)] 
lttng-rcp: Use tar.gz on Mac, it is supported by default

Change-Id: Id7a224cf842d721e7804b34a627c3930bf986808
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17601
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>

10 years agoAdd ... to Configure min max because it's a dialog
Marc-Andre Laperle [Fri, 11 Oct 2013 23:01:11 +0000 (19:01 -0400)] 
Add ... to Configure min max because it's a dialog

Change-Id: I789ab46612905c6ddbd52196cc87b6095c640094
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17320
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoMerge branch 'master' into lttng-luna
Bernd Hufmann [Mon, 21 Oct 2013 16:09:31 +0000 (12:09 -0400)] 
Merge branch 'master' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.tracing.rcp.product/tracing.product

10 years agolttng-rcp: create separate RCP branding feature
Bernd Hufmann [Tue, 17 Sep 2013 12:58:10 +0000 (08:58 -0400)] 
lttng-rcp: create separate RCP branding feature

Having a separated branding feature makes it easier to build
other RCP products based on the LTTng tracing RCP using own
product definition and branding.

Also update the LTTng releng to provide the RCP feature on the
LTTng update site.

Change-Id: Id265e3f2e71247c55ed1590aedecca6d312b3bbb
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/16647
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Apply the fix from fcd253f to Double state values
Alexandre Montplaisir [Fri, 4 Oct 2013 22:24:13 +0000 (18:24 -0400)] 
tmf: Apply the fix from fcd253f to Double state values

Change-Id: Id8147df8d3b5e83b09e85c53345bfb0cea77a8a9
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17055
Tested-by: Hudson CI
10 years agoMerge branch 'master' into lttng-luna
Alexandre Montplaisir [Fri, 18 Oct 2013 13:01:37 +0000 (09:01 -0400)] 
Merge branch 'master' into lttng-luna

Conflicts:
lttng/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/location/TmfLocationTest.java
lttng/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/location/TmfStringLocation.java

Change-Id: Idaa0c71b76adb76d30f55a0a82f25c1d73f969c9

10 years agotmf: Split the statistics in two separate providers
Alexandre Montplaisir [Wed, 3 Apr 2013 17:26:39 +0000 (13:26 -0400)] 
tmf: Split the statistics in two separate providers

Use separate state providers and backends (and so, two separate .ht files)
to store the statistics information. This will make it easier to eventually
swtich the event-types provider to a partial history backend - two one-liners
basically (or do we say one two-liner?)

Change-Id: If11956af12795a406f42c05b2cd67f82867850da
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/11458
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotracing rcp: Press F1 to get help
Matthew Khouzam [Tue, 15 Oct 2013 20:31:55 +0000 (16:31 -0400)] 
tracing rcp: Press F1 to get help

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Change-Id: Ie5a150637e3e20e614fe31f8e4ecf8913afb7abf
Reviewed-on: https://git.eclipse.org/r/17473
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoChange from int to long for values that represent sizes in bit
Simon Marchi [Thu, 10 Oct 2013 18:00:58 +0000 (14:00 -0400)] 
Change from int to long for values that represent sizes in bit

This fixes parsing of traces with big packets, whose size in bits
overflow an 32-bit int.

Change-Id: I5d2d1ede73e638bdd2a3e5b38a5ee2a053fa5d3a
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/17422
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoctf: Take alignment into consideration for Strings too
Alexandre Montplaisir [Wed, 16 Oct 2013 22:34:32 +0000 (18:34 -0400)] 
ctf: Take alignment into consideration for Strings too

The alignment was not taken into consideration at all when reading
strings. It seemed to work so far for standardly-aligned fields, but
it stopped being the case with funky alignments.

This seems to fix bug #419536.

Change-Id: I4bbcb4dff2e8b68f0d86557d84b158131a9945d7
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17438
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoctf: Log errors when events cannot be read
Alexandre Montplaisir [Wed, 16 Oct 2013 22:32:07 +0000 (18:32 -0400)] 
ctf: Log errors when events cannot be read

This lets the user have a way of knowing something when wrong when
reading the trace, instead of silently gobbling the exception.

Change-Id: I8aef2cddde147a95075e9935aafc62e993a9cdcd
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17437
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
10 years agoFix Float reading in CTF traces
Jérémie Galarneau [Wed, 16 Oct 2013 20:51:55 +0000 (16:51 -0400)] 
Fix Float reading in CTF traces

Ensure that the BitBuffer's potision is aligned properly with respect
to the FloatDeclaration's alignment constraints before reading the
value.

Reference bug #419536

Change-Id: Ia0e5aadb7baa7899cbddaded1bfe593ea734e89c
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Reviewed-on: https://git.eclipse.org/r/17432
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoctf: Clamp float and integer declaration alignments to 1
Alexandre Montplaisir [Wed, 16 Oct 2013 22:00:02 +0000 (18:00 -0400)] 
ctf: Clamp float and integer declaration alignments to 1

Alignments < 1 don't make much sense, so make sure the stored value is
always at least 1. StructDeclaration was doing this check, but Integer
and FloatDeclaration were not.

Change-Id: Iedb42a6fdda8706b7e8f522df10f67f2145bbba2
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17434
Tested-by: Hudson CI
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoTmf rcp: Add the UST feature to the tracing RCP product
Geneviève Bastien [Wed, 16 Oct 2013 13:34:45 +0000 (09:34 -0400)] 
Tmf rcp: Add the UST feature to the tracing RCP product

Change-Id: Ia63684be64fdf01086aa5af6819f5c2ac8fa8190
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/17412
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoTMF: It's now possible to do not display times & duration on TimeGraph Tooltips
Xavier Raynaud [Fri, 28 Jun 2013 13:13:39 +0000 (15:13 +0200)] 
TMF: It's now possible to do not display times & duration on TimeGraph Tooltips

Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Change-Id: I7f3c146a289c147c25270226d2604a5d0c5c82b9
Reviewed-on: https://git.eclipse.org/r/14555
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>

10 years agotmf: Add unit tests for lost event statistics
Alexandre Montplaisir [Fri, 20 Sep 2013 21:12:25 +0000 (17:12 -0400)] 
tmf: Add unit tests for lost event statistics

Dropped the core.statistics messages file, use the string defined
in the CTF plugin for lost event names (it shouldn't really be
externalized).

Change-Id: I7f6a3ecb7b3be5c7a665a44a8c2882d3bb42419f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/16664
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
10 years agotmf: Dipose traces in CtfTmfTestTrace
Alexandre Montplaisir [Mon, 7 Oct 2013 22:28:22 +0000 (18:28 -0400)] 
tmf: Dipose traces in CtfTmfTestTrace

Automatically dispose existing traces in CtfTmfTestTrace. This ensures
much more consistent behavior between tests. This required fixing some
tests that did bad assumptions.

Change-Id: I962044e741bd1e12505761d3d4257c0d76cfc5e4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17137
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Don't use .deleteOnExit() in unit tests
Alexandre Montplaisir [Mon, 7 Oct 2013 20:31:33 +0000 (16:31 -0400)] 
tmf: Don't use .deleteOnExit() in unit tests

deleteOnExit() guarantees the file will be deleted *when the JVM exits*.
However, in most cases with unit tests, you want to clean up at the end
of the test, and not wait until the whole test run is over. This gives
more consistent behavior when running different tests in a different order.

So instead use a simple .delete() in @AfterClass methods.

Change-Id: I07f277dbe85b66659ca66c996b232cd64bb6868f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17136
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years ago[TMF] Remove TmfStringLocation
Marc-Andre Laperle [Fri, 4 Oct 2013 19:44:19 +0000 (15:44 -0400)] 
[TMF] Remove TmfStringLocation

TmfStringLocation is not used except in tests and since we expect all checkpoints
to be of the same fixed size, it doesn't really make sense to keep this class around anymore.

Change-Id: I870c72fe6a26dd15cec7249393221cc9907bc340
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17047
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>

10 years ago[TMF] Remove TmfTrace.setIndexer and indexer param in ctor
Marc-Andre Laperle [Fri, 4 Oct 2013 20:30:01 +0000 (16:30 -0400)] 
[TMF] Remove TmfTrace.setIndexer and indexer param in ctor

By removing those two ways of setting the indexer, the indexer is always
instantiated in TmfTrace.createIndexer and subclasses can override it.

Change-Id: Ie00b72123de19e6448b0436a1e7ec11004ad28bc
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17051
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
This page took 0.046012 seconds and 5 git commands to generate.