deliverable/tracecompass.git
7 years agoTest toolbar when pinned for cfv and resource view pin-views
Jonathan Rajotte [Mon, 7 Nov 2016 17:46:30 +0000 (12:46 -0500)] 
Test toolbar when pinned for cfv and resource view

Only the pin and align views should be enabled.

Change-Id: I36fbb1e4159fa9ddc8e5f8e324b76db5fbd5b7c7
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoImplement setPinned for Resources View
Jonathan Rajotte [Mon, 7 Nov 2016 21:38:36 +0000 (16:38 -0500)] 
Implement setPinned for Resources View

When pinned the resource view does not scroll/seek on position change, trace
change, and its filters do not change.

Also:
    - Ignores all outbound and inbound signalling.
    - Disables all modifiers of the visible time range windows.
    - Disables time based scrolling/seeking (horizontal scrolling).
    - Hides the thread presentation menu.
    - Changes the tab label to enhance visibility of the pinned state.
    - Allows vertical scrolling and expand/collapse operation.

Change-Id: I844098aa1d3259daed9fb92a1faac75592ad465b
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoImplement setPinned for Control Flow View
Jonathan Rajotte [Thu, 27 Oct 2016 21:43:48 +0000 (17:43 -0400)] 
Implement setPinned for Control Flow View

When pinned the control flow view does not scroll/seek on position change, trace
change, and its filters do not change.

Also:
- Ignores all outbound and inbound signalling.
- Disables all modifiers of the visible time range windows.
- Disables time based scrolling/seeking (horizontal scrolling).
- Hides the thread presentation menu.
- Changes the tab label to enhance visibility of the pinned state.
- Allows vertical scrolling and expand/collapse operation.

Change-Id: I6bf2329f0f932feba20f06c971a1adb4de940b6c
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoKeep reference on the Thread presentation menu
Jonathan Rajotte [Thu, 27 Oct 2016 21:41:48 +0000 (17:41 -0400)] 
Keep reference on the Thread presentation menu

Allow easy access for disabling/hiding it.

Change-Id: I3634bbe1decce3ab1085cbdb1272f9d99528d8d4
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoKeep reference on previous/next toolbar action
Jonathan Rajotte [Thu, 27 Oct 2016 21:38:31 +0000 (17:38 -0400)] 
Keep reference on previous/next toolbar action

Allow easy access for disabling/hiding the buttons.

Change-Id: Ife3cc14d2e6ee06036a2f3c94779c2369746bc38
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoChange visibility of loadTrace to protected
Jonathan Rajotte [Thu, 27 Oct 2016 21:33:05 +0000 (17:33 -0400)] 
Change visibility of loadTrace to protected

Load trace can now be used by subclass to sync to a specific trace.

Change-Id: I2257f765ac8e23dd1a15e07df4a3dd514208a391
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoAdd setPinned to ITimeGraphWrapper inner interface
Jonathan Rajotte [Thu, 27 Oct 2016 21:05:24 +0000 (17:05 -0400)] 
Add setPinned to ITimeGraphWrapper inner interface

Change-Id: Ibd81f44cdfce2fffa3d37174d2731b0b55bca0c4
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoAdd setPinned to TimeGraphCombo
Jonathan Rajotte [Thu, 27 Oct 2016 20:59:20 +0000 (16:59 -0400)] 
Add setPinned to TimeGraphCombo

When pinned disable the filter dialog action and pass the state
to the TimeGraphViewer

Change-Id: Ic40fddfdae405de1927be3c315d3ebc6a0553c70
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoOverride setPinState for TimeGraphViewer
Jonathan Rajotte [Thu, 27 Oct 2016 20:35:00 +0000 (16:35 -0400)] 
Override setPinState for TimeGraphViewer

When pinned several features are disabled:

External and internal modification of bookmarks (markers)
Toolbar buttons
    - All except views alignment
Hide the horizontal scroll bar
Horizontal zoom
Horizontal scrolling
Marker menu

Pass the state to internal control. Each have specific pin behaviour.

Change-Id: I645e9f91de6abe7d4208b94d6ce35b67070bcb1f
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoTimeGraphViewer is a TmfViewer
Jonathan Rajotte [Thu, 27 Oct 2016 20:31:22 +0000 (16:31 -0400)] 
TimeGraphViewer is a TmfViewer

Change-Id: I83619163dc920d9a65cf399a6a4d60b75daaa054
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoExtract event listeners to inner classes and provide enable/disable for each
Jonathan Rajotte [Thu, 27 Oct 2016 20:10:02 +0000 (16:10 -0400)] 
Extract event listeners to inner classes and provide enable/disable for each

Regroup listeners for each listener types in inner classes to ease the
control of actions performed by them.

Mouse wheel listeners actions:
- Zoom
- Horizontal Scroll

Key listeners actions:
- Extend to next/previous marker
- Select next/previous marker

Change-Id: I48d5807a32d9b482b0b424028dfb1406384f273f
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoDisable function when pinned
Jonathan Rajotte [Thu, 27 Oct 2016 19:44:02 +0000 (15:44 -0400)] 
Disable function when pinned

The following actions can now be enabled/disabled on demand:

Previous/Next event
Grab and pan navigation
Zoom on selection
Horizontal zoom
Horizontal scroll
Time range selection

Those are disabled when pinned since they either change the visible time range
or the current time stamp selection.

On pin change the selection limit bar to grey.

Row oriented/vertical actions are still available (e.g up/down/home key,
vertical zoom, vertical scrolling).

Change-Id: Ibf941d068fb173818c500506cba43c1a13af90f7
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoDisable marker category toggle and marker selection when pinned
Jonathan Rajotte [Thu, 27 Oct 2016 19:41:39 +0000 (15:41 -0400)] 
Disable marker category toggle and marker selection when pinned

Change-Id: Ic24457d76512abfcddd943dd88ae1329a112d636
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoDo not act on user input when pinned
Jonathan Rajotte [Thu, 27 Oct 2016 19:37:15 +0000 (15:37 -0400)] 
Do not act on user input when pinned

Change-Id: Ib9eb4ff80a575ea79edbe1ec4e2a65670cdf8055
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoAdd pin state to TimeGraphBaseControl
Jonathan Rajotte [Thu, 27 Oct 2016 19:21:14 +0000 (15:21 -0400)] 
Add pin state to TimeGraphBaseControl

Change-Id: I538606eb0ebcac832fcd1905c8adf0d70330577b
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoIntroduce the notion of pin state to TmfViewer
Jonathan Rajotte [Thu, 27 Oct 2016 16:47:43 +0000 (12:47 -0400)] 
Introduce the notion of pin state to TmfViewer

By default a pinned viewer register a global inbound and outbound
blacklisting of signals.

Change-Id: I33e42b5debd1ea8eac2a034eec73b4ceb2e81879
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agodoc: TmfView pin feature
Jonathan Rajotte [Tue, 8 Nov 2016 21:10:32 +0000 (16:10 -0500)] 
doc: TmfView pin feature

Change-Id: I9a29b1ee928b6857ebbaf46c890b72b4e82ac260
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoForce pin action on all views
Jonathan Rajotte [Wed, 26 Oct 2016 23:14:10 +0000 (19:14 -0400)] 
Force pin action on all views

From now on all views should show/act on a pin button by default.

For now override canBePinned to return false so no view shows the button.

Let's hope more views get this implemented in the future.

Change-Id: Ib312622a8dc8a926932639e6a5dc87f54db01456
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoTest for inbound and outbound signal blacklisting
Jonathan Rajotte [Thu, 3 Nov 2016 18:08:56 +0000 (14:08 -0400)] 
Test for inbound and outbound signal blacklisting

Change-Id: I0a10f295d923c4b129a285b45bf968af92cc7b64
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoIntroduce inbound and outbound signal blacklisting
Jonathan Rajotte [Wed, 26 Oct 2016 22:49:24 +0000 (18:49 -0400)] 
Introduce inbound and outbound signal blacklisting

Allow blacklisting based on class type hierarchy.

Change-Id: Ia8526799be822679bdc474284c9df8bf0e8c913d
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
7 years agoctf: Fix clock-related Javadoc in CTFTrace
Patrick Tasse [Thu, 10 Nov 2016 14:57:48 +0000 (09:57 -0500)] 
ctf: Fix clock-related Javadoc in CTFTrace

Change-Id: Ibde44bbf044424dcf32981eb9e4dc7557f6f1925
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84821
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf: Bug 496504: Fix duplicate child entries in Control Flow view
Patrick Tasse [Wed, 26 Oct 2016 18:20:33 +0000 (14:20 -0400)] 
tmf: Bug 496504: Fix duplicate child entries in Control Flow view

This could happen while building the state system if a child process is
first discovered in an early iteration and its parent process is found
in a second iteration. Removing the child from its old parent trace
entry would break the link to the new parent that was just set. On a
third iteration it would then add the child to the same parent again.

The TimeGraphEntry is changed to be more robust in its handling of the
parent-child relations.

Change-Id: I99743d80484d335180459df144067fc4494b8052
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83961
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Add missing test plugin to test feature
Marc-Andre Laperle [Thu, 10 Nov 2016 17:46:08 +0000 (12:46 -0500)] 
releng: Add missing test plugin to test feature

Otherwise, if you use the feature, it will complain about a missing
dependency.

Change-Id: Ia60493453a7a17bcf209b1a90609f663ec68b39f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84828
Reviewed-by: Hudson CI
7 years agotmf: Fix pessimistic null analysis of wildcard parameter
Patrick Tasse [Wed, 9 Nov 2016 21:47:28 +0000 (16:47 -0500)] 
tmf: Fix pessimistic null analysis of wildcard parameter

Unconstrained generic parameter is assumed to be nullable and its
unchecked access is reported as an error with Eclipse 4.7.

Change-Id: Ib7ac039a2d407fbfef1acfb0802043353668deb9
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84768
Reviewed-by: Hudson CI
Reviewed-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
7 years agotmf: Fix time alignment not occurring when switching perspective
Patrick Tasse [Fri, 4 Nov 2016 14:50:54 +0000 (10:50 -0400)] 
tmf: Fix time alignment not occurring when switching perspective

When switching perspective, the view can be resized just before it is
made visible. Queue the time alignment to ensure it occurs when the
parent composite is visible.

Change-Id: I6f4779bf0be59de703fadaacf549b28e823bd7c7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84474
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Fix MenuDetect handling in TimeGraphControl
Patrick Tasse [Thu, 3 Nov 2016 18:47:49 +0000 (14:47 -0400)] 
tmf: Fix MenuDetect handling in TimeGraphControl

- If the menu is invoked with the mouse over the name space, then there
is no need to delay the menu detect handling until mouseUp, since the
right mouse button isn't being used to zoom

- If it is a pending menu detect callback on mouseUp, and another drag
operation is in progress or it is a drag zoom outside of the margin,
then make sure the menu is not made visible by setting e.doit to false.

- If the menu is invoked with the mouse over the name space, or with the
keyboard, if there is any drag operation in progress make sure the menu
is not made visible by setting e.doit to false.

- If the menu detect is handled immediately (not after a pending menu
detect on mouseUp) then there is no need to set the menu visible
programmatically since the platform will do it after the MenuDetect
event handling when e.doit is true.

Change-Id: I0d76b9908782fc853a065567a6e907da5e2d9c86
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84434
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.ui: Introduce TmfSymbolMapUpdatedSignal
Matthew Khouzam [Sun, 16 Oct 2016 10:47:12 +0000 (06:47 -0400)] 
tmf.ui: Introduce TmfSymbolMapUpdatedSignal

This will allow all views depending on the symbol map to update properly.

Change-Id: I48dcb4d16cd14cf6a6572385f95ce699aeb9fd09
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83319
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf.swtbot: Add a failure message to 'isTableCellFilled'
Geneviève Bastien [Mon, 7 Nov 2016 18:41:40 +0000 (13:41 -0500)] 
tmf.swtbot: Add a failure message to 'isTableCellFilled'

This patch adds a failure message for the isTableCellFilled SWTbot
condition to tell what text was in the cell, if any and what was
expected

Change-Id: I8a3a8290af9a5a37c08ecf48cece6d67b1c96f44
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/84609
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoos.linux: Remove latency table view and use the one from timing
Geneviève Bastien [Thu, 22 Sep 2016 01:45:28 +0000 (21:45 -0400)] 
os.linux: Remove latency table view and use the one from timing

The latency table is replaced by the timing's concrete table view with
secondary ID.

The SWTbot tests needed to be udpated as well. A utils method was added
to open views with secondary ids.

Change-Id: Ia71ece1f14f7f0032cef9bd219dba45d7cd1e242
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/80963
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotiming.swtbot: add Generic SegmentTable tests
Matthew Khouzam [Thu, 27 Oct 2016 00:35:25 +0000 (20:35 -0400)] 
timing.swtbot: add Generic SegmentTable tests

This makes table tests truly extendible. In order to implement
custom tests, one must override getSegmentStoreProvider with the
analysis to test, createSegment to return the right type of
segment and the test validation they want.

The System Call table view is an example implementation.

Change-Id: Id77c8afce3a5296d066d94885e8f54ddcf719de0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84446
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agoss: Move selectNextChildren to CoreNode and return sequenceNumber
Loïc Prieur-Drevon [Thu, 20 Oct 2016 18:55:05 +0000 (14:55 -0400)] 
ss: Move selectNextChildren to CoreNode and return sequenceNumber

SelectNextChildren was only called on CoreNodes to return their
children.
Returning the SequenceNumber will allow overlapping trees to read
the nodes from disk when necessary and limit the footprint of the
queue for large queries.

Change-Id: I14ac3909bf7fb90490479d7b79cfa011c2dcb56c
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83647
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agoss: Add a JUL statement for HT backend file size
Geneviève Bastien [Thu, 6 Oct 2016 20:59:21 +0000 (16:59 -0400)] 
ss: Add a JUL statement for HT backend file size

Change-Id: Ib8965540a7456e8c303791df783733080760cb15
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83822
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: ProjectExplorer tests stability improvement
Marc-Andre Laperle [Wed, 26 Oct 2016 15:01:45 +0000 (11:01 -0400)] 
releng: ProjectExplorer tests stability improvement

Resuse code for testing events editor. It contains a workaround for
loss of focus that was not applied in one of the classes.

Change-Id: I68b70013060c23daad88cb13abf20c511032f057
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83944
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agoBump versions for 2.2.0 release
Marc-Andre Laperle [Fri, 21 Oct 2016 15:03:31 +0000 (11:03 -0400)] 
Bump versions for 2.2.0 release

Change-Id: I1ac6abb99addf04aca2eb2eeaed919807e5e4b70
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83700
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agoUpdate tycho-pomless to 0.26.0
Marc-Andre Laperle [Fri, 21 Oct 2016 15:34:35 +0000 (11:34 -0400)] 
Update tycho-pomless to 0.26.0

We forgot to update it the last few times. There's nothing really new
but the version should be consistent with the rest of Tycho that we
are using.

Change-Id: I50ee002d9b78426d3efbe6b656583c7738777da7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83705
Reviewed-by: Hudson CI
7 years agoOutput workspace log to console during tests
Marc-Andre Laperle [Mon, 24 Oct 2016 17:47:26 +0000 (13:47 -0400)] 
Output workspace log to console during tests

This patch adds -consoleLog so that we see easily the workspace logs
in the console output. It's very easy to miss problems that were
outputted in the workspace log because you have to find the log in
target/work/data/.log.

One disadvantage is that it always outputs:
"Could not resolve module: org.eclipse.compare.win32"

Change-Id: I021f30713485fc152465bd81f6ac9baf23ef5f16
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83812
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Update staging target with Oxygen M3 sites
Marc-Andre Laperle [Wed, 2 Nov 2016 15:59:12 +0000 (11:59 -0400)] 
releng: Update staging target with Oxygen M3 sites

Change-Id: I1e8e9ff19928910735aeabbe5a546a601fee7059
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84357
Reviewed-by: Hudson CI
7 years agolttng: Fix test when in the presence of long workspace path
Marc-Andre Laperle [Sat, 22 Oct 2016 05:08:13 +0000 (01:08 -0400)] 
lttng: Fix test when in the presence of long workspace path

LTTngServiceMiTest validated against the old MI XSD which doesn't
allow sessions paths longer than 255 characters. When the workspace
of the test is too long, this fails. The test doesn't really need
a variable and can be hard-coded to any path. So this patch removes
the use of the workspace variable for this case.

See also bug 490557.

Change-Id: I382da2449c485e828c62d4ef73e3baf75e438374
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83737
Reviewed-by: Hudson CI
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
7 years agotiming.core: simplify hashCode, equals and toString of AbstractCalledFunction
Matthew Khouzam [Sat, 1 Oct 2016 05:25:15 +0000 (01:25 -0400)] 
timing.core: simplify hashCode, equals and toString of AbstractCalledFunction

* hashcode now uses Objects.hash
* equals new uses and Object.equals
* toString now avoids a useless new String()

Change-Id: Ib409d1eee45a17b917f334d93e52a6845bcd2954
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82308
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotmf: Fill label background with marker color in time graph marker axis
Patrick Tasse [Thu, 22 Sep 2016 21:23:31 +0000 (17:23 -0400)] 
tmf: Fill label background with marker color in time graph marker axis

This makes the marker labels visually nicer and easier to read.

Change-Id: I5cddafa7485142526121629e47b7670ccb2a7c11
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83257
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Bug 500542: Missing zoomed events in time graph entry
Patrick Tasse [Tue, 30 Aug 2016 21:43:21 +0000 (17:43 -0400)] 
tmf: Bug 500542: Missing zoomed events in time graph entry

When adding an event that starts before the current zoomed event list's
first event, the list is deemed to be incomplete and missing events at
the beginning of the zoom range. The list is cleared and the new event
is added. The remaining events for the full zoom range should follow.

Change-Id: I7057fbaac6ca3a57b2923c786c08142b2ebf6fc3
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/80076
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoanalysis: Add additional assertion to troubleshoot test failure
Marc-Andre Laperle [Tue, 1 Nov 2016 13:23:12 +0000 (09:23 -0400)] 
analysis: Add additional assertion to troubleshoot test failure

The axis range in the tested SWTChart doesn't have the correct range.
It would be interesting to know if the window range of the trace is
correct.

Change-Id: I001787016a5b3d78b83b526175d8a1e9656e2790
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84277
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agoctf: bug 506892 Fix experiment size request benchmark
Geneviève Bastien [Wed, 2 Nov 2016 12:41:39 +0000 (08:41 -0400)] 
ctf: bug 506892 Fix experiment size request benchmark

The experiment should be constructed only when all the traces are
initialized.

Change-Id: I1f5478013621ec3f135e409f4a0380688d7597f8
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/84341
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agosegstore: add default unhandled methods to ISegmentStore
Matthew Khouzam [Sat, 15 Oct 2016 20:06:55 +0000 (16:06 -0400)] 
segstore: add default unhandled methods to ISegmentStore

This handles common functionalities for all segment stores.
This can be seen as part of the segment store contract.

Anything removing items from a segment store asside from
clear should throw an unsupportedOperationException.

If an implementation decides to support this, that is fine, but
not the expected way the object should behave.

Change-Id: I9d00960ae8826cecc63092245ca7fc447a28defb
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83305
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotiming.core: Simplify CalledFunctionFactory
Matthew Khouzam [Sat, 1 Oct 2016 12:31:27 +0000 (08:31 -0400)] 
timing.core: Simplify CalledFunctionFactory

Remove duplicated lines.
Make factory implementation final.

Change-Id: Iee670eb29e514107ec6d0a18fc8e1ed83edccca5
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82315
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotmf.ui: add export to tsv events table test
Matthew Khouzam [Thu, 6 Oct 2016 03:04:47 +0000 (23:04 -0400)] 
tmf.ui: add export to tsv events table test

This removes manual test case: 8.2, 8.1 could be
considered redundant too.

Change-Id: I854e48431bedf187d4e7e625778ae58371804d65
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82571
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agosegStore: allow benchmarks to specify the size of the store
Geneviève Bastien [Thu, 20 Oct 2016 20:43:01 +0000 (16:43 -0400)] 
segStore: allow benchmarks to specify the size of the store

This will allow other benchmarks to extend this class but with a
different number of segments

Change-Id: I328c38831cbbb9bb23375d4367aec7a07dc5101e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83636
Reviewed-by: Hudson CI
7 years agotiming: Make scatter viewer update only once
Geneviève Bastien [Wed, 19 Oct 2016 13:55:08 +0000 (09:55 -0400)] 
timing: Make scatter viewer update only once

Before, it was updated when the parent's windowRangeUpdated requested an
updateContent and when the viewer itself requested and updateRange, also
in the windowRangeUpdated signal. Now the updateRange method overrides
the updateContent, so the update is done once only.

Change-Id: I8b92367f441c0db62e70e7cc7f2a7c7251b2e598
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83526
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf: Update data in common XY chart outside the UI thread
Genevieve Bastien [Sun, 9 Oct 2016 09:45:38 +0000 (05:45 -0400)] 
tmf: Update data in common XY chart outside the UI thread

Change-Id: Id7e991dab24bd0ba6dce062a9e477c50664587c0
Signed-off-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/82796
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotiming.ui: Add dirty conditions for SWTbot to scatter graph viewer
Geneviève Bastien [Wed, 26 Oct 2016 19:00:11 +0000 (15:00 -0400)] 
timing.ui: Add dirty conditions for SWTbot to scatter graph viewer

Also remove a calls to update

Change-Id: Ifbf37b3dda4f1ebcea065adfba08f2f2ab14f6c1
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83964
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agolttng.ui: Add test in symbol map test to verify names
Matthew Khouzam [Fri, 28 Oct 2016 15:26:29 +0000 (11:26 -0400)] 
lttng.ui: Add test in symbol map test to verify names

The names are now "main" ... due to a missing seek.

Change-Id: I8b8b35a87ccc73cfe4876026eb862200098bc7b6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/84124
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf.core: Make getParamater synchronized
Matthew Khouzam [Sat, 22 Oct 2016 12:10:16 +0000 (08:10 -0400)] 
tmf.core: Make getParamater synchronized

The setter (setParameter) is synchronized, since getParameter is not
atomic, it needs to to also be synchronized to avoid racy situations.

Change-Id: I1c7eb0a2fde364efd7e879a82411f91fae0deab2
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83739
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agolttng.swtbot: Add resources view swtbot tests
Matthew Khouzam [Tue, 18 Oct 2016 18:16:38 +0000 (14:16 -0400)] 
lttng.swtbot: Add resources view swtbot tests

This removes two tests from the manual tests.

Also, it adds the notion of a shared test base with
control flow view.

Change-Id: Ieea4539eafcd00d62d56347b6cab55654d137d53
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83468
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
7 years agograph/timing: Fix a typo in Manifest.MF file
Geneviève Bastien [Mon, 31 Oct 2016 15:56:14 +0000 (11:56 -0400)] 
graph/timing: Fix a typo in Manifest.MF file

Sounds like somebody tried running an lttng command from the manifest file.
Otherwise, it shows that the Manifest-Version line doesn't have much use.

Change-Id: If6ccfa8d601d42ce4cd88ebf72068336d0f7cf36
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/84248
Reviewed-by: Hudson CI
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
7 years agolttng.swtbot: Add cfv toolbar order test
Matthew Khouzam [Tue, 18 Oct 2016 17:41:15 +0000 (13:41 -0400)] 
lttng.swtbot: Add cfv toolbar order test

This is a very simple test to make sure that the toolbar items
are all displayed/enabled.

Change-Id: If6639280ebd1c31a30ed02784e2dc3a3f0db2a3b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83467
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@efficios.com>
7 years agolttng.ui.test: Enable SymbolMap test
Matthew Khouzam [Sun, 16 Oct 2016 11:34:15 +0000 (07:34 -0400)] 
lttng.ui.test: Enable SymbolMap test

Change-Id: I869219981337d6a2d7daf0ac4f79763803585f11
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83320
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotiming.swtbot: add SWTBot tests to timing analysis
Matthew Khouzam [Wed, 19 Oct 2016 01:05:36 +0000 (21:05 -0400)] 
timing.swtbot: add SWTBot tests to timing analysis

Adds unit tests for flamegraph.

Change-Id: I63bee2198692dd5ca1a240f9a148fbed0ed98c69
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83481
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agosegStore: Add benchmarks for sorted iterations
Geneviève Bastien [Thu, 20 Oct 2016 19:12:40 +0000 (15:12 -0400)] 
segStore: Add benchmarks for sorted iterations

Change-Id: Ia9c5d679ed87c0f03c1890f2477f376c35a874e4
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83632
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoos.linux: Ignore testWriteToTsv swtbot test
Geneviève Bastien [Wed, 26 Oct 2016 19:27:59 +0000 (15:27 -0400)] 
os.linux: Ignore testWriteToTsv swtbot test

This test causes instability in the SWTbot because of a potential race
condition with the update that changes the header column titles that do
not correspond to the system call data. The test should be modified
either to use SystemCall segments, or moved to timing.swtbot

Change-Id: Idea1c43f377ca79efb4bf5a4751f4611e6336891
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83967
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotiming: fix typos in segstore statistics test
Geneviève Bastien [Mon, 24 Oct 2016 20:10:39 +0000 (16:10 -0400)] 
timing: fix typos in segstore statistics test

And update some javadoc for tests

Change-Id: I9e35865a37c4f2b62ec33b895ee2dc8ec8d0e2a1
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83823
Reviewed-by: Hudson CI
7 years agotiming.ui: fix typo in id of CallGraphDensityView
Matthew Khouzam [Fri, 21 Oct 2016 20:02:20 +0000 (16:02 -0400)] 
timing.ui: fix typo in id of CallGraphDensityView

The ID was never used, now the view can now be opened
programatically as it matches the plugin.xml

Change-Id: I25ab1ecf9324ef43001fe3a488c7381ff59853a7
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83725
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf.ui/timing: Update XY viewers even if there is no data
Genevieve Bastien [Sat, 15 Oct 2016 14:45:05 +0000 (10:45 -0400)] 
tmf.ui/timing: Update XY viewers even if there is no data

The range of the window still changed and the view should follow that
range, even though there is no data to display

Change-Id: Iaa6d180de39f6ee5b109ce5826999c096f170469
Signed-off-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83355
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: Add a SWTbot condition for XY charts ready
Geneviève Bastien [Thu, 20 Oct 2016 14:03:37 +0000 (10:03 -0400)] 
tmf.ui: Add a SWTbot condition for XY charts ready

bug 500770

Change-Id: If70437ab08871962415a2b954307b58f24460331
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83595
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Do not build the testing feature when some tests are skipped
Alexandre Montplaisir [Mon, 24 Oct 2016 23:14:37 +0000 (19:14 -0400)] 
releng: Do not build the testing feature when some tests are skipped

The testing feature, as well as the "alltests" plugin, cannot be built
when -Dskip-automated-ui-tests is on, as they require all SWTBot tests.
This means the the releng-site cannot be built either. All of them
should only be run when the tests are active.

Change-Id: I9d89444818c2373239dbcd04e8749ab6e033038c
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/83830
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
7 years agotiming.core: add testing for less used functions in the segment store
Matthew Khouzam [Sat, 1 Oct 2016 05:42:39 +0000 (01:42 -0400)] 
timing.core: add testing for less used functions in the segment store

Increases code coverage to ~80%. More importantly, makes the contract
automatically tested for new segment stores.

Change-Id: Id7c476a8df3254b01732a44e46227da4280274f2
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82310
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf: Mark TmfTraceManager @NonNullByDefault
Alexandre Montplaisir [Thu, 1 Sep 2016 00:34:07 +0000 (20:34 -0400)] 
tmf: Mark TmfTraceManager @NonNullByDefault

Change-Id: Ib7581d4d2b8cb2807882afc62ba0071e7d123f82
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/81721
Reviewed-by: Hudson CI
7 years agotiming: Add a generic table view for any segment provider
Geneviève Bastien [Thu, 22 Sep 2016 01:04:53 +0000 (21:04 -0400)] 
timing: Add a generic table view for any segment provider

It uses the analysis ID as the secondary ID of the view, it is thus not
necessary anymore to implement a concrete view for each segment store
analysis.

Change-Id: I9a596ac8217a1ba9233a345ec917d1488f170737
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/78803
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotiming.ui: Remove dependency on trace with FlameGraphContentProvider
Matthew Khouzam [Wed, 19 Oct 2016 13:42:05 +0000 (09:42 -0400)] 
timing.ui: Remove dependency on trace with FlameGraphContentProvider

This decouples the flamegraph from the notion of traces.
Also removes dependencies on trace with FlameGraphView and adds
synchronization to refresh so tests will not query in the middle
of a draw.

Change-Id: I58f072cba473a74641b8ca8c364c85bfc0ef5cee
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83598
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agolinux.swtbot: Add more tests to SystemCallLatencyTableAnalysisTest
Matthew Khouzam [Mon, 24 Oct 2016 19:04:01 +0000 (15:04 -0400)] 
linux.swtbot: Add more tests to SystemCallLatencyTableAnalysisTest

All the entries in the TSV to test.

Change-Id: I69e1e11b48ac34b5bc9fc170ac127ef8343d4d08
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83816
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agoreleng: Provide a build property to skip automated UI tests
Alexandre Montplaisir [Sat, 8 Oct 2016 00:02:47 +0000 (20:02 -0400)] 
releng: Provide a build property to skip automated UI tests

Allow passing a `-Dskip-automated-ui-tests` option to skip running
the automated UI tests (like SWTBot and RCPTT modules) during
the Maven build.

Some setups may want to run these longer tests only in certain
conditions, or at a different frequency than the "normal" unit
tests.

Change-Id: Ifb1d6307d8bf4cddaba4e8835ea5d5e7595bbf80
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/83403
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
7 years agoanalysis.ui: add Export to TSV action test
Matthew Khouzam [Wed, 5 Oct 2016 17:51:38 +0000 (13:51 -0400)] 
analysis.ui: add Export to TSV action test

Change-Id: I4852f270b5af4d1e957285690f271f3f94ad9d5e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82552
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: make latches synchronized in abstract analysis module [bug 485793]
Matthew Khouzam [Mon, 24 Oct 2016 13:47:55 +0000 (09:47 -0400)] 
tmf: make latches synchronized in abstract analysis module [bug 485793]

Fixes a build instability caused by schedule (by design) spawning a job
that runs asynchronously. This makes cancellation racy since it can occur
before said job starts.

Change-Id: I93617efb80f4eb196ef0aba5cbe72e67917c876c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83786
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
7 years agosegstore: introduce sorted iterators
Loïc Prieur-Drevon [Tue, 27 Sep 2016 16:25:40 +0000 (12:25 -0400)] 
segstore: introduce sorted iterators

add a sorted iterator to the segment store interface.
this will be useful for external memory segment stores
for which the intersecting segments cannot be held and sorted
in main memory, and if external memory stores have optimized
sorted iteration.

Change-Id: I02076daf1721cdf8bdd66f5e892f5c5280e46a3b
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/82015
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agotmf: Automatically sync experiments set up with the same hosts
Alexandre Montplaisir [Tue, 4 Oct 2016 23:56:44 +0000 (19:56 -0400)] 
tmf: Automatically sync experiments set up with the same hosts

Automatically correct the clock offset of traces inside an experiment
who define a custom property "clock_offset", by calculating
the average of those offsets for all concerned traces.

This is useful for LTTng traces coming from different domains.

This behaviour is similar to how Babeltrace handles traces with
clocks with different offsets.

Bug: 484620

Change-Id: Ic30837fd6e9fc8b9a7592a1722f0240145c77d62
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/65330
Reviewed-by: Hudson CI
7 years agodoc: Add documentation for the local statistics
Jean-Christian Kouame [Mon, 24 Oct 2016 15:49:02 +0000 (11:49 -0400)] 
doc: Add documentation for the local statistics

Change-Id: Ifac7e24e2dbaaf911aaa1258f60214f9826a691c
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83795
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: bug 505695 fix time graph views with GTK
Geneviève Bastien [Tue, 18 Oct 2016 20:56:02 +0000 (16:56 -0400)] 
tmf.ui: bug 505695 fix time graph views with GTK

Change-Id: Ib7cab31753d19e0a1d5766235dcdf88750f69a96
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83473
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agosegStore: Run benchmarks as a parameterized test
Geneviève Bastien [Thu, 20 Oct 2016 15:53:36 +0000 (11:53 -0400)] 
segStore: Run benchmarks as a parameterized test

It is easier to benchmark only one type of segment store and add new segment
stores

Change-Id: I187c5396a143a3ed6321cfb55e7f13bf73670e09
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83609
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.ui: Introduce TmfFileDialogFactory
Matthew Khouzam [Mon, 3 Oct 2016 20:20:46 +0000 (16:20 -0400)] 
tmf.ui: Introduce TmfFileDialogFactory

This factory can be used to stub out native FileDialogs in TraceCompass.
This is very useful when it comes to writing SWTBot tests.

Change-Id: I2fbcaa20818b806d6367031aa85f44883d0bc08b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/82398
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotiming.core: Add local statistics to the latency statistics
Jean-Christian Kouame [Tue, 6 Sep 2016 17:21:04 +0000 (13:21 -0400)] 
timing.core: Add local statistics to the latency statistics

Add the local statistics in the statistics view and update the general
item tree of the view. The SystemCallLatencyStatisticsTableAnalysisTest
is updated in consequence.

Change-Id: I5209f9c6430ee4658e3cf55ef50f4769b8e28772
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/80952
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agodoc: Update event matching developer documentation
Geneviève Bastien [Tue, 18 Oct 2016 13:52:22 +0000 (09:52 -0400)] 
doc: Update event matching developer documentation

It has been outdated for a while now.

Change-Id: I5f5de85e8048a81457fae95ed5198f04b65ddf87
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83439
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agodoc: Modify 'Import mapping file' icon and title for callstack view
Geneviève Bastien [Tue, 20 Sep 2016 01:38:56 +0000 (21:38 -0400)] 
doc: Modify 'Import mapping file' icon and title for callstack view

It also adds a link to source lookup for LTTng-UST traces taken with LTTng 2.8+
(because it does not always work automatically when not in the same computer as
the one the trace was taken on)

Change-Id: If4f191d3e9fa650f852b1a2bed6857cd6e716a74
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/81404
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agosegstore: remove redundancies in deprecated class
Matthew Khouzam [Sat, 15 Oct 2016 19:59:12 +0000 (15:59 -0400)] 
segstore: remove redundancies in deprecated class

Make treemapstore extend the internal treemap store. It removes
a lot of duplication.

Change-Id: I89ccbbe506a3b93201342c16da6aef465034389d
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83304
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agoss: fix common node header size and check free space
Loïc Prieur-Drevon [Tue, 18 Oct 2016 16:14:30 +0000 (12:14 -0400)] 
ss: fix common node header size and check free space

COMMON_HEADER_SIZE had not been corrected after modifying strings
sections.
Check that node free space is consistent with what is written to
disk.

Change-Id: I9186f8b2e32159d9f2c771358c337aaf0ebb38c3
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83456
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotiming.ui: make Scatter chart not update the UI in update data
Matthew Khouzam [Fri, 14 Oct 2016 16:46:52 +0000 (12:46 -0400)] 
timing.ui: make Scatter chart not update the UI in update data

Change-Id: Idaca90c31a1e3fdd32d4922816760c3eaa074e64
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83252
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf.ui: make common line charts display the window range, not their model range
Matthew Khouzam [Fri, 14 Oct 2016 16:45:55 +0000 (12:45 -0400)] 
tmf.ui: make common line charts display the window range, not their model range

Change-Id: Ie6cea17dea1490af724adec1d0743d01cad884f6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83251
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotiming: avoid a division by zero with scatter viewer
Genevieve Bastien [Sat, 15 Oct 2016 13:48:55 +0000 (09:48 -0400)] 
timing: avoid a division by zero with scatter viewer

Change-Id: Iee5bce80f07ae0231801b3be17d5cbad2d665e48
Signed-off-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83354
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoss: History trees can define their own node types
Geneviève Bastien [Tue, 2 Aug 2016 13:43:08 +0000 (09:43 -0400)] 
ss: History trees can define their own node types

This patch moves the HistoryTreeClassic to its own package and allows each
history tree class to define their own HTNode types.

Change-Id: I800469c12fbcaf21156ed340c94b611b59b70ea1
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/78354
Reviewed-by: Hudson CI
7 years agoreleng: Add SWTBot integration tests
Patrick Tasse [Tue, 11 Oct 2016 15:07:28 +0000 (11:07 -0400)] 
releng: Add SWTBot integration tests

Add tests for import wizard opened from workbench menu
Add tests for deleting selected traces and folders
Add tests for clearing Traces folder
Refactor ImportConfirmation supplier
Fix focus on folder/archive combo in util methods
Fix delete project util to succeed if project does not exist

Change-Id: Ief49ebce1a8198517bfbc2faf90e338afc9dc759
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/82955
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
7 years agoreleng: Change the "-Pbuild-rcp" directive to a "-Dskip-rcp" property
Alexandre Montplaisir [Mon, 17 Oct 2016 21:14:35 +0000 (17:14 -0400)] 
releng: Change the "-Pbuild-rcp" directive to a "-Dskip-rcp" property

<activeByDefault>true</activeByDefault> is very bad and
should not be used. Among other things, it effectively prevents
from defining more than one profile in a given pom.xml.

Change-Id: Id30897025a7df37d14014ef605122416e0b33dc7
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/83402
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
7 years agotmf: Add utility method to delete supplementary files of a trace
Alexandre Montplaisir [Fri, 7 Oct 2016 21:04:51 +0000 (17:04 -0400)] 
tmf: Add utility method to delete supplementary files of a trace

Add the new (and move an existing) test into a separate file, because
the existing test suite uses the same static traces for all the tests.
If we are to delete a trace's supplementary files, the trace should
be regenerated for other tests!

Change-Id: I0727422dd190d9012e6b8ccce0d7d175711e149b
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/82778
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: Fix intermittent fail in ProjectModelOutputTest.testListOutputs
Marc-Andre Laperle [Wed, 12 Oct 2016 17:45:33 +0000 (13:45 -0400)] 
tmf: Fix intermittent fail in ProjectModelOutputTest.testListOutputs

This adds a waitUntil/condition that waits until there is the correct
number of children under the analysis.

To reproduce the issue, in TmfAnalysisElement.refreshChildren, add a
Thread.sleep(1000); at the beginning.

Bug: 491823
Change-Id: Iaae81093d90f26403cc58b7286c8691db7db3644
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83052
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agolttng.control: remove useless data assignment
Matthew Khouzam [Sat, 15 Oct 2016 15:43:08 +0000 (11:43 -0400)] 
lttng.control: remove useless data assignment

In an elvis switch ?: a value was assigned in one of the branches.
This fixes the issue.

Change-Id: I4fedee2efdfbe184f8857d37004dc3192235f9f0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83301
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoMake sure shell is not disposed in closeSecondaryShells
Marc-Andre Laperle [Mon, 17 Oct 2016 00:31:16 +0000 (20:31 -0400)] 
Make sure shell is not disposed in closeSecondaryShells

While running ProjectExplorerTracesFolderTest, it was noticed that
closeSecondaryShells could try to close a disposed shell. This
change fixes this and also makes the test call closeSecondaryShells
after every test.

Change-Id: I5172e676e1ac7d619f11e904c0ca0141102f9c71
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83332
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotmf: Bug: 499359: Fix deadlock in table when closing trace selection
Bernd Hufmann [Fri, 14 Oct 2016 00:36:46 +0000 (20:36 -0400)] 
tmf: Bug: 499359: Fix deadlock in table when closing trace selection

When closing a trace while a selection range updated signal is handled
in the TmfEventsTable a deadlock can occur because 2 threads are
taking the trace lock and request lock in different order.

The solution is to not use an event request for updating the selection
range in the table.

Change-Id: I67218cd564d97a6fc91226ad56639b2c2c971cea
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83172
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
7 years agotmf: Use Apache Common Compress for importing from archive
Marc-Andre Laperle [Wed, 5 Oct 2016 22:22:43 +0000 (18:22 -0400)] 
tmf: Use Apache Common Compress for importing from archive

By using Apache Common Compress instead of the Eclipse classes,
it will allow us to support more formats and have move stability.
We will be able to handle tars with PaxHeaders, XZ and BZip
compression for example.

Change-Id: I2693da15eb38a57b477734f1a0931c30585f2192
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/82567
Reviewed-by: Hudson CI
7 years agoreleng: Add SWTBot integration tests for import wizard
Patrick Tasse [Thu, 6 Oct 2016 20:53:42 +0000 (16:53 -0400)] 
releng: Add SWTBot integration tests for import wizard

Add tests for import from folder preserving folder structure.
Add tests for import from zip archive.
Add tests for import from tar.gz archive.
Programmatically create zip/tar.gz archives of test directory structure.
Add util method to select import items in folder tree and file table.
Add util method to recursively find trace project item.
Add org.apache.commons.compress to target definitions.
Fix project folder element matching regex.
Fix condition failure messages binding string.

Change-Id: Ib97d3bfc14f37edc882f0c6dc9ffafcc02753252
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/82677
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
7 years agolttng: Fix ControlViewTest
Patrick Tasse [Tue, 11 Oct 2016 20:16:01 +0000 (16:16 -0400)] 
lttng: Fix ControlViewTest

The regex replacement of the user home in command output are quoted to
avoid stripping backslashes in a Windows path.

The list provider regex patterns are updated to include the new command
options '-j' '-l' and '-p'.

The target node state is only set to CONNECTED after the node
configuration jobs are completed.

The SWTBot test waits for the node configuration jobs to be completed
before continuing with the test scenario.

The UI test is changed to use a wait condition instead of a loop with
delay when waiting for the target node state to be connected.

Change-Id: Ie05f58181119cf46d8cdacb8313856f6b3c4da30
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/82972
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoUpdate to test-traces 1.6.0
Alexandre Montplaisir [Fri, 7 Oct 2016 20:33:05 +0000 (16:33 -0400)] 
Update to test-traces 1.6.0

This contains a new kernel/ust trace set with different clock
offsets.

Change-Id: Ib1fea591b6705ed5253817339cff1fb8ac1a1ed6
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/82777
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: Add equals/hashCode to TmfConstantTransform
Alexandre Montplaisir [Fri, 7 Oct 2016 22:02:39 +0000 (18:02 -0400)] 
tmf: Add equals/hashCode to TmfConstantTransform

Without that, two equivalent transforms would be considered
different, because the object is serialized every time, causing
it to become a new instance every time a trace is re-opened.

Change-Id: I4f1dcbf503032329cdce7ac5c0ef351545e392e8
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/82779
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agoreleng: Add script to generate list of plugins for API baseline
Marc-Andre Laperle [Wed, 21 Sep 2016 20:04:21 +0000 (16:04 -0400)] 
releng: Add script to generate list of plugins for API baseline

Add a script to make it easier to list plugins that need to go
in the API baseline. This was meant to be in the commit that adds
the new 2.1.0 API baseline but it was forgotten.

Change-Id: Ic6daa6086dcbe3a7ad12627cdff43038765263d6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/81879
Reviewed-by: Hudson CI
This page took 0.045544 seconds and 5 git commands to generate.