Marc-Andre Laperle [Mon, 17 Aug 2015 02:38:42 +0000 (22:38 -0400)]
tmf: Add indexer tracing option and add some trace points
Change-Id: I2a29558b197c0e25b068fdb3139539643d80e2a5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53848
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Patrick Tasse [Tue, 11 Aug 2015 18:10:52 +0000 (14:10 -0400)]
tmf: Remove unused filter methods in time graph control
The methods getTraceFilter() and getFilteredOut() were not used and
their implementation did not return a valid result.
Change-Id: Id1d330acab4e36a80259bfead3eccbeb3ffce82e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53587
Reviewed-by: Hudson CI
Alexandre Montplaisir [Fri, 10 Jul 2015 19:45:54 +0000 (15:45 -0400)]
releng: Add a Maven profile to run a custom test suite in alltests
Change-Id: I8484e5de675ad0b469182e3e2e1aeacdd380170a
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51777
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Marc-Andre Laperle [Mon, 17 Aug 2015 18:58:40 +0000 (14:58 -0400)]
tmf: Make StandardImportGzipTraceTest more robust
In a build, I got the failure:
"IllegalArgumentException: The row number (2) is more than the
number of rows(1) in the table"
http://eclip.se/5i
I think it's a case of the assertion hapenning before the table
was completely filled. Adding a few waitUntil should fix it.
Change-Id: I89b15a29bd0ae9f64f213fa0ffa715566127650a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53915
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Tue, 11 Aug 2015 14:34:22 +0000 (10:34 -0400)]
tmf: Bug 474710: Time graph combo expanded state is not synchronized
When a time graph combo is refreshed, newly discovered items are
expanded to the auto-expand level in the time graph viewer, and the tree
viewer item expanded states are synchronized with those of the time
graph viewer. The expanded state of existing items is no longer affected
by the call to refresh().
Change-Id: I709681ef488e7d22991d5b7384c667532afd3410
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53558
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Alexandre Montplaisir [Wed, 15 Jul 2015 15:59:51 +0000 (11:59 -0400)]
tmf: Add a timeout to AnalysisModuleTest
Change-Id: Ieb5c436b53760002ce3e35769bda2641ade92a4b
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51994
Reviewed-by: Hudson CI
Bernd Hufmann [Thu, 13 Aug 2015 13:48:07 +0000 (09:48 -0400)]
build: add minimum version to guava references in tmf.remote.core
Change-Id: If901686b2b9358160a5237914533fc4985ac5168
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53710
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Tue, 11 Aug 2015 17:28:30 +0000 (13:28 -0400)]
tmf: Use basic comparators in TmfSimpleTableViewer
- Make the method createColumn() public and remove createColumns()
so that the class can be using without needing to be extended.
- Remove ViewerCompoundComparator. We can use basic
java.util.Comparator's in the analysis and the view, all the
way until we convert them to ViewerComparator's to pass to the
TableViewer object.
This will allow us to re-use comparators defined in the core
plugin. Chaining of multiple comparators can be done using
Guava's Ordering.compound() method.
- Support DeferredContentProvider which must be supplied with the
sort order and ignores the sorter set on the table viewer.
Remove the method sortOrderChanged().
Change-Id: I3acd9e79e5a2298707e67cd668c17cca1e428234
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53584
Reviewed-by: Hudson CI
Francis Giraldeau [Thu, 6 Aug 2015 18:45:40 +0000 (14:45 -0400)]
analysis: Add graph ui plug-in skeleton
Creating the skeleton early in the change set avoids the plug-in project
directory to disappear when rebasing, which otherwise causes Eclipse to
bail.
Change-Id: I631c7768d085f1ea5daeaa80d79f70672b988da7
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53338
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Wed, 27 May 2015 20:48:23 +0000 (16:48 -0400)]
lttng: Split UST event names in a separate interface
Remove the definitions pertaining to event and field names in
UstMemoryStrings, and move them to a global interface.
These names can change from one version to the other of the
tracer, so this is the first step in abstracting away the actual
trace event names from the "concepts" the library and analysis
agree upon.
Change-Id: Ia8ccf528029cc8cd3e5de13e4e7041ad6e89eeae
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/50312
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Thu, 6 Aug 2015 14:30:25 +0000 (10:30 -0400)]
ctf: Fix leaking context in CtfTmfTrace.initTrace()
The context used to read the first event of the trace is never disposed.
Its trace reader is auto-closed after registering the event types.
This leaves the context with its closed trace reader in the iterator
manager. If the iterator manager becomes full, the trace reader can be
reused for another context but this will fail since it's been closed.
Change-Id: Iab224db1349d2ded5cb0f2d69b7b418a53e5eca0
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53332
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Bernd Hufmann [Mon, 27 Jul 2015 17:13:46 +0000 (13:13 -0400)]
Bug 473441: Fix concurrency issue in ThreadedHistoryTreeBackend
We add a blockingPeek() method to the BBQ, which allows blocking
on the queue without removing elements from it. This allows
iterating threads doing query to continue seeing the element
while it is being inserted.
The implementation is changed so that the output buffer remains in the
inner queue until it is empty. Only then is it removed from the inner
queue and the next head of the queue becomes the output buffer.
The iterator is fixed to be a true descending iterator without
duplications and that properly handles concurrent modification of the
inner queue.
The size() method is added.
Change-Id: I9e708824748a625010aded82a3198f096c1fc427
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52640
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Bernd Hufmann [Thu, 6 Aug 2015 02:04:25 +0000 (22:04 -0400)]
tmf: Fix some sonar warnings (naming conventions)
Change-Id: I7f06c66253d9a6b58236334757c21e84f09e9d8d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53282
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
France Lapointe Nguyen [Wed, 29 Jul 2015 20:40:30 +0000 (16:40 -0400)]
ss: add unit tests for the segment store
Change-Id: Ic29ccc34190a4f09723dc259ce79da4ec213b84a
Signed-off-by: France Lapointe Nguyen <francelap@gmail.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51279
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Alexandre Montplaisir [Fri, 7 Aug 2015 19:49:43 +0000 (15:49 -0400)]
tmf: Fix generics warning in ViewerCompoundComparator
We extend a class that uses Java 1.4 syntax, but in the 1.5+
world, Comparator takes a generic type.
Change-Id: Ie40c8ce4a22d6c1611d53d16dbb30d1f01e6ca22
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/53430
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Patrick Tasse [Fri, 7 Aug 2015 17:46:23 +0000 (13:46 -0400)]
swtbot: Fix CopyToClipboardTest
The table sometimes did not react fast enough to the selection to remove
the Copy to Clipboard item from its context menu. The condition is
changed to wait until the item is no longer found and won't fail even if
the item is still found for a short time.
Also temporarily fixed to handle the consequences of SWTBot Bug 474063.
Change-Id: I6db683abbcec3ec86d4b70c67b6abcf588cd5783
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53426
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
France Lapointe Nguyen [Fri, 7 Aug 2015 15:00:45 +0000 (11:00 -0400)]
tmf.ui: add Comparators and refresh content to Simpletable
Change-Id: Ib5fc283a0f78ca86bd7b9ce50764bc94739748ea
Signed-off-by: France Lapointe Nguyen <francelap@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52254
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Alexandre Montplaisir [Wed, 29 Jul 2015 17:23:34 +0000 (13:23 -0400)]
ss: Provide a basic implementation of ISegment
Change-Id: Ic66504a2b136ac00c21a37ac526b09db4dba32db
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/52816
Reviewed-by: France Lapointe Nguyen <francelap@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Alexandre Montplaisir [Wed, 29 Jul 2015 17:10:07 +0000 (13:10 -0400)]
ss: Also clear the size of the TreeMapStore in its dispose()
Change-Id: I9c69017fea1fae562b8e693300672bdff7a5ad7b
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/52813
Reviewed-by: France Lapointe Nguyen <francelap@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Patrick Tasse [Thu, 6 Aug 2015 13:47:51 +0000 (09:47 -0400)]
tmf: Temporarily change @since 1.1 tags to @since 2.0
These should be reverted back to @since 1.1 when that baseline is out.
Change-Id: Icb415848daedcc526a41ce203665b4cb14f9bdd2
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/53324
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Tue, 28 Jul 2015 23:38:19 +0000 (19:38 -0400)]
ss: Fix wrong indexing in TreeMapStore
Change-Id: I348ba5af90aecd237ce057e077ca5f081631c6f1
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/52752
Reviewed-by: France Lapointe Nguyen <francelap@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Matthew Khouzam [Fri, 31 Jul 2015 19:41:37 +0000 (15:41 -0400)]
ctf: add test trace for dynamic scopes, timestamps in fields, and empty streams
Change-Id: I7aacff3ea04281c6025c982e51048c4e009e1e5a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52991
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Bernd Hufmann [Thu, 6 Aug 2015 01:18:55 +0000 (21:18 -0400)]
tmf: Remove unused batch import trace wizard source code
Change-Id: Ie1b141449812504447ec80352922eaeaccdf6944
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53281
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Tue, 21 Jul 2015 21:26:04 +0000 (17:26 -0400)]
analysis: Make ResourcesView extend AbstractStateSystemTimeGraphView
Change-Id: If12898c07fede5b9f8a53127fcc87a82280ec678
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52967
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Fri, 17 Jul 2015 21:26:53 +0000 (17:26 -0400)]
analysis: Make ControlFlowView extend AbstractStateSystemTimeGraphView
Change-Id: I2a721725c271f40092ae4e988c935e324efdfbfe
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52966
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Thu, 16 Jul 2015 21:38:11 +0000 (17:38 -0400)]
tmf: Add an abstract state system time graph view
This subclass of the abstract time graph view can be used when the time
events are built using a state system. The full states of the state
system are first queried chronologically for the whole time range using
a time resolution, and the list of full states is kept in memory and
reused by every time graph entry to build its time event list. This
avoids repeatedly loading the state system nodes from disk for each time
graph entry, which can be very slow if the full time range queries
require more nodes than is available in the state system cache.
Change-Id: I7dcac5d546a84462dba0e5a0cf320ba18d3617f5
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52965
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Thu, 16 Jul 2015 20:16:21 +0000 (16:16 -0400)]
tmf: Allow time graph zoomed event list to be built incrementally
Instead of being replaced with a whole new list in one operation, time
events can now be incrementally merged into the zoomed event list.
The time graph entry adds a method to add time events to the existing
zoomed event list, replacing the last event if necessary.
NullTimeEvent is updated to correctly split without losing its type.
Change-Id: Icf51199483244a61580592d3f193ef460eded655
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52964
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Matthew Khouzam [Mon, 3 Aug 2015 19:52:32 +0000 (15:52 -0400)]
ctf: fixes tsdl in verbose metadata
This patch does many things that are tightly coupled. Splitting up IOStructGen will help making more
atomic patches here.
* Make enums and floats update their endianness if a trace declares it.
* Make variants register children even if typedeffed
* Make enums retain children when endianness is swapped
* NullCheck event fields before iterating over them
Change-Id: I6ecf769b0dcbda0489d8c971fd0cd124f7e8b234
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53097
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Matthew Khouzam [Mon, 3 Aug 2015 20:12:40 +0000 (16:12 -0400)]
ctf: support timestamps in event contexts
Someone may put timestamps in contexts, this is handled as a last resort lookup
Change-Id: Iad1703a5e7a8b543bad5ab7402c0ef7962d40eac
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53098
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Bernd Hufmann [Fri, 31 Jul 2015 17:28:02 +0000 (13:28 -0400)]
TMF: Close sequence diagram view after sequence diagram tests
This will make sure that the sequence diagram view is not open in
other tests while running all JUnit tests.
This should fix failures when running all JUnit tests in a loop.
Change-Id: I13109a0edff4d08f228d0dc218b8a5564accc067
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52983
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Bernd Hufmann [Fri, 31 Jul 2015 15:05:16 +0000 (11:05 -0400)]
lttng control: Fix number of connection nodes not zero after deletion.
It is possible that the connections are saved due to the auto-save
feature of the workbench which calls ControlView.saveState(IMemento).
This can happen at any time (e.g. when calling delay()).
When showing the view above ControlView.init(IMemento) is called which
restores saved connections.
The tests require that the ControlView is empty. So we remove all the
connection nodes from the root when initializing the tests.
Change-Id: If94dd42cd3ba4bc3de1ea7bec959cc9117b91582
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52970
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Raphaël Beamonte [Thu, 30 Jul 2015 18:41:51 +0000 (14:41 -0400)]
ctf: Fix priority list containing closed streams
When a CTFTraceReader was closed, the priority list was not
emptied. The hasMoreEvents() method thus returned true in
cases where the CTFTraceReader was closed before the end of
the trace. This patch fixes that behavior.
Change-Id: I43f9ad60ddf67bfe0561834e32d6e5872fcf7b55
Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52890
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Matthew Khouzam [Mon, 22 Jun 2015 21:18:46 +0000 (17:18 -0400)]
ctf: make metadata field names respect coding style.
Change-Id: I871b8ce03eb9adc7748f07e25bb18e6439a46492
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50674
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Marc-Andre Laperle [Fri, 10 Jul 2015 20:10:13 +0000 (16:10 -0400)]
releng: Upgrade to Tycho 0.23.1
See
https://wiki.eclipse.org/Tycho/Release_Notes/0.23#New_and_Noteworthy
Change-Id: I767ceca42c533a3300348309f346d49d631352b3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51762
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Raphaël Beamonte [Thu, 30 Jul 2015 15:04:41 +0000 (11:04 -0400)]
ctf: Fix closed iterators still reattributed in CtfIteratorManager
CtfIterator extends CTFTraceReader which implements AutoCloseable,
making it closing its streams when used in a try-block.
CtfIteratorManager reattributes randomly the iterators when its
ArrayList contains the defined maximum number of elements. It thus
sometimes reattributes a CtfIterator with closed streams that
will never be reopened. This patch allows to verify if the
reattributed iterator has stream input readers before
reattributing it, and, if it's not the case, replace it with
a fresh new CtfIterator.
Change-Id: I67ff06280381529a01bac8dc0a596ca3e876754d
Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52868
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Matthew Khouzam [Fri, 24 Jul 2015 21:27:42 +0000 (17:27 -0400)]
ctf: add support for empty streams in a trace
This can handle "touch"ed files in a trace folder, or 0 byte streams due to poor setting up
of lttng-tools.
Change-Id: Ib9916c92b8728098f9d844c88baab7a1c068d063
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52548
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Marc-Andre Laperle [Mon, 13 Jul 2015 15:09:06 +0000 (11:09 -0400)]
tmf: Fix FetchRemoteTracesTest on Mac
1) Opening the Preferences through the menu doesn't work...anymore?
I have gone back to Eclipse 4.4 and SWTBot 2.2.1 to see if it worked and it doesn't.
I suspect it might be a change in OSX but I don't have access to an older one.
I am also not 100% sure this ever worked but I thought it did.
2) We need to wait for the Preferences dialog to be active before looking
for the tree in it. That seems like a good fix for all platforms.
Change-Id: Ib9b3ed6edee75d368d3238451dc57a982f65ee0a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51861
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Tue, 28 Jul 2015 21:19:31 +0000 (17:19 -0400)]
tmf: Wrong menu manager passed to appendToRawPopupMenu
Change-Id: Iee28118fa0711412295bd9c1c892e8a70e4da7e9
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52748
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Geneviève Bastien [Tue, 28 Jul 2015 03:05:33 +0000 (23:05 -0400)]
ss: Fix a bug where history tree node utilization is inaccurate
When a node is read from a file, the size of interval section is left at 0,
so using that metric to monitor the performance of the state system was
misleading.
Change-Id: I885a41ae744ea7f38dd25f1adce42268fe2fbd6f
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/52681
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
Marc-Andre Laperle [Mon, 27 Jul 2015 22:21:36 +0000 (18:21 -0400)]
Update Oomph setup for 4.5 target and new 1.0.0 baseline
Change-Id: I3279d34c1b2aa592940bc0c816c8ce5bc2e83efd
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52678
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Alexandre Montplaisir [Tue, 30 Jun 2015 22:49:58 +0000 (18:49 -0400)]
tmf: Fix TmfEventField#equals()
Since the getter methods are not final, they can be extended
by sub-classes. This means the equals() and hashCode() method
should use these instead of the direct fields.
In the case of fFields however, since it is not exposed
directly, we can mark its separate getter methods final, and
use the class attribute in equals() safely.
We also need to handle the case where the Object value could be
implemented as a [] array of any type. This will require special
care, since standard Object.equals() will not check the contents.
Change-Id: I21f20ebee9a7c6485df9d16859f736b8ca961587
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51213
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Francis Giraldeau [Tue, 30 Jun 2015 02:10:24 +0000 (22:10 -0400)]
Analysis: Add unit tests for the graph base classes
Change-Id: I2fa96a924d17e760191906fb75aa5a8e1a29876a
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/41478
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Francis Giraldeau [Tue, 30 Jun 2015 01:47:24 +0000 (21:47 -0400)]
Analysis: Add the dependency graph plugin and base classes
Adds a new plugin: org.eclipse.tracecompass.analysis.graph.core and the base
classes used to represent a dependency graph.
Change-Id: I8bd45263cbf02b42d62b44868409b50ac46125ac
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Reviewed-on: https://git.eclipse.org/r/41477
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Patrick Tasse [Fri, 17 Jul 2015 16:16:23 +0000 (12:16 -0400)]
common: Add ObjectUtils with static methods deepEquals and deepHashCode
These methods allow equals() and hashCode() to consider arbitrary
objects which may be arrays or collections of arrays with equal elements
to be equal, recursively.
Change-Id: Ic33f6451f5b535989ad8bed1cc35095bff500b0a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52187
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Matthew Khouzam [Thu, 23 Jul 2015 15:35:11 +0000 (11:35 -0400)]
ctf: fix parser not parsing "thing := keyword typealias;" regression
This regression was introduced when dynamic scopes added stricter checks
to tsdl parsing. The checks are good, this fix will extract the pertinent
data before the check.
Change-Id: Id0e0571973569f219339b3733545286a0b53face
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52447
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Matthew Khouzam [Mon, 20 Jul 2015 21:41:30 +0000 (17:41 -0400)]
remote: add automatic archive extraction to remote import.
Change-Id: I05e062bf72cc7745b1fed0d659af593e3b99136c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/52269
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Matthew Khouzam [Thu, 9 Jul 2015 13:10:43 +0000 (09:10 -0400)]
ctf: allow traces to read timestamps in fields [bug 470845]
This adds declaration looking up their sub-fields.
Change-Id: Ie2b40d418014893aa28bb9efb3c745de35411e69
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51654
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Patrick Tasse [Tue, 21 Jul 2015 22:06:06 +0000 (18:06 -0400)]
tmf: Bug 473195: Invalid thread access closing editors in non-UI thread
Change-Id: If216cc1032c9bca918a393142f0dca43ddebabbb
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/52316
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Marc-Andre Laperle [Mon, 13 Jul 2015 06:11:34 +0000 (02:11 -0400)]
tmf: Split ImportTraceWizardPage into multiple classes
This should make it easier to reuse some parts and also reduce the file
complexity.
Change-Id: I790f8c86a1e7e7011d9f8350d68de4bbc73f5e76
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51815
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Marc-Andre Laperle [Sat, 11 Jul 2015 16:30:48 +0000 (12:30 -0400)]
tmf: Make Filter and Colors tests close the views they opened
That way if the perspective checker runs again, it won't fail.
Change-Id: Iba279630f58ea18abb4b5be4abaa4b8f770cc396
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51773
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 10 Jul 2015 19:29:05 +0000 (15:29 -0400)]
releng: Move the "performance" profile check inside the alltests plugin
Right now, the alltests/pom.xml is used solely to run the
performance" profile, which runs the performance tests.
We can move the "if" inside the alltests plugin itself, so
that this pom.xml can be used for other profiles.
Change-Id: I7b03b1d5b1064b66e28226676849939fe2ca6975
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51760
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Marc-Andre Laperle [Sat, 11 Jul 2015 15:32:36 +0000 (11:32 -0400)]
tmf: Fix TestInvalidCtfTrace when running from RunAllSWTBotTests
Change-Id: If0a2977a71a427869bacdfe29742801aaac427bb
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51772
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
Marc-Andre Laperle [Fri, 10 Jul 2015 04:39:29 +0000 (00:39 -0400)]
releng: Update tycho-eclipserun to use Eclipse 4.5
As far as I know, there hasn't been any changes to help index format
(Apache Lucene) but it's just less dependencies to download since we are
building against Eclipse 4.5 already.
Change-Id: I41ea76eca135de50fac321a85d9e150e51f317e1
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51695
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Matthew Khouzam [Wed, 8 Jul 2015 18:56:34 +0000 (14:56 -0400)]
ctf: make dynamic scopes work with definitions [bug 470846]
Change-Id: I0838fb9f17ceab856f3009bdf340185b24e82f28
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51546
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Matthew Khouzam [Fri, 26 Jun 2015 19:24:10 +0000 (15:24 -0400)]
ctf: make IOStructGen support relative and absolute scopes [Bug 470846]
Change-Id: I1c20fdd7842badcbece63e5461c156da160ffc60
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50981
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Matthew Khouzam [Fri, 26 Jun 2015 17:28:29 +0000 (13:28 -0400)]
ctf: set IOStructGen's default alignment to 1 [Bug 470846]
Change-Id: I6a5a60501f2f77809df053c1ebf1f284e9f5ebef
signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50979
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Matthew Khouzam [Fri, 26 Jun 2015 15:20:10 +0000 (11:20 -0400)]
ctf: make declaration scopes support looking up concatenated scopes [Bug 470846]
Change-Id: I97dbc4cf51668f118b379c86db82504789e46522
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50977
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Matthew Khouzam [Fri, 26 Jun 2015 14:49:50 +0000 (10:49 -0400)]
ctf: Add scope strings [Bug 470846]
Change-Id: Ideefd263ec02b18f37ffca11848e5478ca92b38e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50976
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Matthew Khouzam [Sat, 6 Jun 2015 03:00:19 +0000 (23:00 -0400)]
ctf.core add root constructor to DeclarationScope in CTFTrace [Bug 470846]
Change-Id: I7c241c64eaf254bf2ed47db97e8d650d48624831
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/49778
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Matthew Khouzam [Sun, 7 Jun 2015 15:37:13 +0000 (11:37 -0400)]
ctf: make DeclarationScopes named [Bug 470846]
This makes the Declaration Scopes be part of a tree. Each node is named,
and the root is the trace node.
Change-Id: I90c197364609917385498b828403100be234b8d3
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/49781
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Matthew Khouzam [Fri, 26 Jun 2015 14:43:21 +0000 (10:43 -0400)]
ctf: update copyright header date in grammars
Change-Id: I1631db8b78f0fc959570d9c3587240008a3216cc
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50975
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Patrick Tasse [Tue, 7 Jul 2015 14:38:40 +0000 (10:38 -0400)]
tmf: Fix exception importing empty archive or only folders
Change-Id: Ia48a7a2b0abbffaa8eb09c21cd131f06c18341bf
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51500
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Alexandre Montplaisir [Mon, 6 Jul 2015 18:57:27 +0000 (14:57 -0400)]
tmf: Annotate methods in ITmfEventField
Some methods in ITmfEventField can be annotated @NonNull to make
their usage easier.
getValue() and getField() should eventually be marked @Nullable,
but this will be a much larger undertaking, as most analysis
modules currently just get fields and values without even
checking them...
Change-Id: I564c6d067a62239cde5c67350ea709315bfe89f4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51212
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Marc-Andre Laperle [Tue, 7 Jul 2015 23:47:55 +0000 (19:47 -0400)]
tmf: Fix flaky ImportAndReadSmokeTest test
In this test, it was possible for SWTBotUtils.openEditor to timeout
because it would not find the right Tree and it would wait for a
TreeItem forever. Instead, we can use the SWTBot from the view to narrow
down where the Tree is searched and it returns the right one. I saw this
test being flaky on Windows.
Change-Id: I44e98b6e88d795fd8b0d38b75ad0506e849af4b5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51535
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Marc-Andre Laperle [Tue, 7 Jul 2015 23:11:39 +0000 (19:11 -0400)]
tmf: Fix StandardImportGzipTraceTest failing when running from RunAllSWTBotTests
StandardImportGzipTraceTest should delete its test project. Otherwise, other
tests using the same project name "Tracing" will fail to run. Also fix path
in TmfTestTrace for the test to work.
Change-Id: I908e9aaded2b47762ee07b36384257545d680300
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51534
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Alexandre Montplaisir [Tue, 7 Jul 2015 19:46:08 +0000 (15:46 -0400)]
tmf: Bring back the API filter for UnsortedPropertySheetPage
PropertySheetPage is marked @noextend, but arguably should not be.
See bug 109617.
I'm pretty sure we had such filter at some point, but it seems to
have been lost, and I could not find any references to it in the
git tree.
Change-Id: If373e480267fd311992a94965635d57ea5100e5c
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51532
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Marc-Andre Laperle [Tue, 7 Jul 2015 18:30:43 +0000 (14:30 -0400)]
pcap: Fix pcap tests skipped when running from RunAllCoreTests
Change-Id: Ic28140a87d6417081d345640d9f2fe9ddc5b6c8c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51526
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Tue, 7 Jul 2015 17:24:02 +0000 (13:24 -0400)]
lttng: Add a timeout to ExperimentSyncTest
Under certain configurations, the testDjangoExperimentSync() can
deadlock and throw "GC overhead limit exceeded" errors. Add a
timeout to this test suite to catch this problem.
Change-Id: Ib90b16c680158aa0ad896e9fca4ed23efd09f726
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/51518
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Marc-Andre Laperle [Tue, 30 Jun 2015 20:05:45 +0000 (16:05 -0400)]
Increase RCP version number to 2.0
Change-Id: I8b6f2125cdfa0c3acd5114297b07b7cb703f8ad9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51132
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Marc-Andre Laperle [Tue, 7 Jul 2015 05:08:53 +0000 (01:08 -0400)]
tmf: Fix FunctionNameMapperTest failing when running from RunAllCoreTests
Change-Id: I2270bd713c89c895c153ba96f482eea8bb49e755
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51449
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Marc-Andre Laperle [Tue, 7 Jul 2015 04:14:25 +0000 (00:14 -0400)]
lttng: Fix SessionConfigGeneratorTest failing when running from RunAllCoreTests
Change-Id: Iae9ca0699e83149fe9952bd3b550e38649fcd5e4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51448
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Marc-Andre Laperle [Mon, 6 Jul 2015 22:26:54 +0000 (18:26 -0400)]
ctf: bug 471966: Fix file handle leak in CTF
If something goes wrong in the CTFStreamInputReader constructor or one
of its calls, the file handles in this class are not closed. This is
because the object is not fully constructed yet therefore the caller of
the constructor cannot close it.
Change-Id: Ie03164888711dd49d7b30ce5d774b4e4cdef9228
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51426
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Patrick Tasse [Thu, 2 Jul 2015 20:18:29 +0000 (16:18 -0400)]
tmf: Make custom trace output column name @NonNull
Change-Id: Ibe9600a9b80833a860c361320d5d755d148e2711
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/51302
Reviewed-by: Hudson CI
Reviewed-by: 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>
Matthew Khouzam [Thu, 2 Jul 2015 21:33:19 +0000 (17:33 -0400)]
ctf: support devices that are stored as enumerations Bug 471685
Enums are actually more precise than ints, so let's keep that data.
A side effect is that this will support floating point devices, but
the information will be cropped to an integer level.
Change-Id: I61c1d98ed63bd18ff1d64ffea5b1f7a9da9c8d7a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51306
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Marc-Andre Laperle [Mon, 6 Jul 2015 14:34:22 +0000 (10:34 -0400)]
Fix parent version number for alltests
Change-Id: I6a6d60c625ddcd2366fdaa5e37a451ec8e7e011e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51417
Reviewed-by: Hudson CI
Marc-Andre Laperle [Fri, 3 Jul 2015 20:11:21 +0000 (16:11 -0400)]
tmf: Fix TmfEventsTable leaked
Every time a trace was opened and closed, a TmfEventsTable is leaked (along
with others). Because its context menus are not disposed, the Display keeps a
reference to the menus which hold a reference to the table through menu
listeners.
Change-Id: I7e4bb1497282d33edb0844c85796e6e6ad145e0b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51359
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Patrick Tasse [Tue, 16 Jun 2015 21:30:45 +0000 (17:30 -0400)]
tmf: Fix context resource leak in raw event viewer
Change-Id: I20dfb3f921d260771efee4b69abaa8d90ec9c44f
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/49466
Reviewed-by: Hudson CI
Patrick Tasse [Fri, 26 Jun 2015 15:03:30 +0000 (11:03 -0400)]
tmf: Add support for blending sub-pixel events in time graph
This allows for many short time events mapping to the same pixel to be
blended in together instead of drawing only the first one and discarding
the remaining. This functionality is optional and off by default.
The Time Chart view is updated to use this scheme to allow the
highlighted ticks from a color settings filter to be noticeable even if
the time event is not the first event of that pixel.
Change-Id: I316f044157cef50f6744d128c3661964b97f09c1
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/51068
Reviewed-by: Hudson CI
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
(cherry picked from commit
37a507dca88f92e040df4d860191a88224fca382)
Reviewed-on: https://git.eclipse.org/r/51344
Patrick Tasse [Mon, 22 Jun 2015 14:19:13 +0000 (10:19 -0400)]
tmf: Dispose clipboard after Copy to Clipboard operation
Change-Id: Icc6ee4b8de1a936ef86c61f0e8b5b9e6afb0de71
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/50633
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Patrick Tasse [Tue, 23 Jun 2015 22:50:19 +0000 (18:50 -0400)]
tmf: Bug 470851: Trace time range should include lost event end time
Change-Id: I273cf79f93f0718a30226d65e1558a7696ed3253
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/50754
Reviewed-by: Hudson CI
Alexandre Montplaisir [Wed, 27 May 2015 19:57:44 +0000 (15:57 -0400)]
tmf: Mark ITmfSourceLookup#getCallsite as @Nullable
Any event that implements ITmfSourceLookup may return null to
indicate there is no specific call site information for this
event.
Clarify this by marking the method @Nullable, which ensures this
case is handled gracefully.
Change-Id: I2c38e879bea8d90fb3a19aa7d16f6d6566cccb2c
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/50311
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Patrick Tasse [Tue, 23 Jun 2015 17:11:01 +0000 (13:11 -0400)]
tmf: Bug 470830: Incorrect lost event count in histogram
Change-Id: I19a8b3455b50c0ad17a013ce6b3e6fb0a9b870ce
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/50738
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Patrick Tasse [Mon, 22 Jun 2015 22:21:48 +0000 (18:21 -0400)]
ctf: Bug 470754: Incorrect time range in CTF Lost Event
Change-Id: Ibdabcf68999cd4f801018c167364bfadf33d3edd
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/50683
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Geneviève Bastien [Tue, 30 Jun 2015 02:54:04 +0000 (22:54 -0400)]
lttng: Really make lttng kernel event matching package internal
Simply renaming the package with 'internal' in the name did not make it
internal.
Change-Id: I4cbaae0df9e4f691600294e895077d952cbdea74
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/51083
Reviewed-by: Hudson CI
Marc-Andre Laperle [Mon, 29 Jun 2015 22:23:44 +0000 (18:23 -0400)]
releng: Bump versions of parent modules
To make it clearer that this is targetting 2.0.0 release, bump the parent
modules to 2.0.0. We technically don't need to do that but it's less confusing
to see 2.0.0 when building from the top level.
Change-Id: Ie0b407ce726df749351dfba8aa0efdc9aa58b75a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/51069
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
Alexandre Montplaisir [Mon, 9 Mar 2015 19:50:46 +0000 (15:50 -0400)]
Update usage of IAdaptable#getAdapter
Generics were added to the APIs of IAdaptable and related
classes. Update our usage of these methods, as suggested in
http://dev.eclipse.org/mhonarc/lists/cross-project-issues-dev/msg11590.html
Change-Id: I8fb374869567b5c2b7421b4773998c60e9fcc468
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/43472
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Patrick Tasse [Mon, 22 Jun 2015 18:09:34 +0000 (14:09 -0400)]
tmf: Bug 470741: Missing lost events in scaled histogram buckets
Change-Id: I8cf2c1a977845c9a60026178940bb09e75206b4c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/50659
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Alexandre Montplaisir [Mon, 15 Jun 2015 18:33:48 +0000 (14:33 -0400)]
ss: Introduce SegmentStore plugin
Unlike the State System, which assigns single states to attributes,
the Segment Store is a database interface for storing segments that
may overlap each other. It is closer in intent to a spatial database.
Just like state system backends, we provide an interface that can be
implemented in different ways. A first basic in-memory implementation
is provided.
Change-Id: I20a4a27b66ae005e8a22070752d8cc0a132a36f5
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/50308
Reviewed-by: Hudson CI
Alexandre Montplaisir [Mon, 15 Jun 2015 18:33:48 +0000 (14:33 -0400)]
common: Concurrency fixes in TraceCompassActivator
The TraceCompassActivator class (which can be used as base for any
Activator in every plugin) tracks all the loaded activators in a map.
Add a bit of synchronization to make sure this map cannot be victim
of unexpected concurrent accesses.
Change-Id: Ia94899dfb140a5bf740e3cc6343f6d43579dd777
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/50752
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Alexandre Montplaisir [Wed, 17 Jun 2015 00:16:24 +0000 (20:16 -0400)]
Fix missing @since's and bump corresponding versions
Some API changes were introduced since the 1.0 release, this
patch bumps the verion numbers where appropriate and fixes
the @since annotations.
Change-Id: Ib0ce9860d1c05b94fb074972c817dfec736beace
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/50309
Reviewed-by: Hudson CI
Patrick Tasse [Tue, 16 Jun 2015 21:21:15 +0000 (17:21 -0400)]
tmf: Fix SWTException in TmfEventsTable
The table can get disposed while the event request is being processed.
Attempting to get the display from the table will throw an exception.
Getting the display from the workbench will avoid this exception.
Change-Id: Id68b34be403c30359c8e56e88e2d894779804214
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/49260
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Marc-Andre Laperle [Wed, 17 Jun 2015 17:25:41 +0000 (13:25 -0400)]
rcp: bug 471162: Add Error Log view to RCP
This makes it easier for users to understand when things go wrong and for
reporting issues. It will also help us while testing the RCP because we will
notice more easily when errors happen. This would have probably helped finding
bug 469809 earlier.
Change-Id: I2a6e7a752f9b53667ec58045ddb2406085ff2391
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50387
Reviewed-by: Hudson CI
Marc-Andre Laperle [Fri, 26 Jun 2015 04:54:04 +0000 (00:54 -0400)]
Use o.e.test and jdt.annotation from Eclipse 4.5
Also fix use of deprecated junit constructor. This is because o.e.test
*includes* org.junit and the Eclipse 4.5 repo only has junit 4.12 which
introduced the deprecation.
Change-Id: Id17e904674509a3a551f253f8b6927f023ba935c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50905
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Marc-Andre Laperle [Fri, 26 Jun 2015 04:44:12 +0000 (00:44 -0400)]
Build using non-staging Eclipse 4.5 target
Since staging will become Eclipse 4.6 (Neon) we should switch to building using
a more stable 4.5 target (for now).
Change-Id: I8bcfde64f769510150dc3517b9931521522efdbc
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50904
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Matthew Khouzam [Tue, 17 Feb 2015 03:46:52 +0000 (22:46 -0500)]
tmf.ui: introduce TmfSimpleTableViewer
A helper for jface tables with sortable columns. It provides the
following features:
- Sortable columns
- Movable columns
- Resizable columns
- Tracking last clicked columns
Change-Id: I3a7f6037891153022904a53563d223c4bf805816
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/41994
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
Patrick Tasse [Mon, 22 Jun 2015 15:29:08 +0000 (11:29 -0400)]
swtbot: Add Copy to Clipboard tests
Change-Id: I18e7f8a633918856dc934483c4c1aac41955912d
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/50653
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Matthew Khouzam [Thu, 11 Jun 2015 22:47:21 +0000 (18:47 -0400)]
ctf: make parser support scoped typedefs [Bug 470846]
This is important if you want to have a root typedef struct for instance.
Change-Id: I9aff6a1049605f98cb1e16015b6170ea9801b9e0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50055
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Matthew Khouzam [Thu, 11 Jun 2015 21:51:34 +0000 (17:51 -0400)]
ctf: update postfix expression to accept chained CTF expressions [Bug 470846]
This updates the grammar to support absolute referencing
Change-Id: I952e846abc3bdcecdd40bc9e9dc9716bdefa9adb
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/49961
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Matthew Khouzam [Fri, 24 Apr 2015 14:12:27 +0000 (10:12 -0400)]
ctf: validate if metadata endianness is inconsistent.
Change-Id: Ide73b0344e9aaf0058b6501d003f0e64f978fd2a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/46431
Reviewed-by: Hudson CI
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Marc-Andre Laperle [Mon, 22 Jun 2015 20:20:16 +0000 (16:20 -0400)]
rcp: Build proper .app on Mac
Otherwise, the rcp doesn't start when building against Eclipse 4.5
Change-Id: I49773d350ad966f47e94a4da5892bf4135bda4f4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/50669
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
This page took 0.045168 seconds and 5 git commands to generate.