deliverable/tracecompass.git
7 years agotmf: Bug 506095: Fix NullPointerException in XML views
Patrick Tasse [Thu, 9 Mar 2017 21:34:24 +0000 (16:34 -0500)] 
tmf: Bug 506095: Fix NullPointerException in XML views

When the XML Time Graph View or XML XY Chart View is opened from the
Window > Show View > Other... menu, it does not have a secondaryId. This
should not cause an exception, and the view should remain blank.

Additionally, the view should then not wait for the viewInfo name to be
set, it will never happen and the build job or line chart update thread
remains stuck forever. As a consequence, the viewInfo should be
initialized before creating the view controls.

Change-Id: I0d21cbcc02505bd5d83b7fb4335bf780943fe136
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/92736
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agoRevert "ctf: Remove the callsite support"
Matthew Khouzam [Tue, 25 Oct 2016 20:07:51 +0000 (16:07 -0400)] 
Revert "ctf: Remove the callsite support"

This reverts commit 73511e6797ae5d1ef5669997e21788033d1b2eee.

The keyword callsite is part of the CTF specification. Dropping support
for it was a misstep.

Change-Id: I9b4c4842c1b2333acabac072d4a35fe224cfec5a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83898
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agolami.ui: Remove previous lami charts
Geneviève Bastien [Thu, 2 Feb 2017 20:09:31 +0000 (15:09 -0500)] 
lami.ui: Remove previous lami charts

Only the custom charts are now used for lami

Change-Id: I6d5cda15916b32dc89e116965da63445fb2ceaa3
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90217
Reviewed-by: Hudson CI
7 years agolami.ui: Replace LAMI charts with custom charts
Gabriel-Andrew Pollo-Guilbert [Wed, 27 Jul 2016 17:43:42 +0000 (13:43 -0400)] 
lami.ui: Replace LAMI charts with custom charts

This patch makes the LAMI analyses use the new chart
plugin instead of their own charts.

Change-Id: Ic0bf607a68b7057b365ae2f40bb40f96895cfbaf
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/78012
Reviewed-by: Hudson CI
7 years agolami: Implement a custom chart data provider
Gabriel-Andrew Pollo-Guilbert [Thu, 7 Jul 2016 19:11:20 +0000 (15:11 -0400)] 
lami: Implement a custom chart data provider

This patch adds a data model for a LAMI analysis. It also implements a data
provider into the result table.

This allows the creation of custom charts using the tmf.chart plugin

Change-Id: I1375c81c6e99538d4b2e86afb517c4014b0a8a98
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/76899
Reviewed-by: Hudson CI
7 years agoxml: bug 513074 fix time graph view for events of size 1
Geneviève Bastien [Fri, 3 Mar 2017 17:39:22 +0000 (12:39 -0500)] 
xml: bug 513074 fix time graph view for events of size 1

This changes the boundaries used to get event data for XML time graph
views. Events that are the last ones and of size 1 are now displayed.

Change-Id: I04d3ead5a723ddaf03282f9f438a418662ad3404
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92277
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agotmf.ui: Test the markers set
Jean-Christian Kouame [Wed, 22 Feb 2017 18:12:59 +0000 (13:12 -0500)] 
tmf.ui: Test the markers set

SWTBot test for Markers Set

Change-Id: Ic8f595d83336ce88b9c915500d7b68c409d92957
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91736
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotmf: Update user guide for configurable marker sets
Patrick Tasse [Fri, 3 Feb 2017 23:05:58 +0000 (18:05 -0500)] 
tmf: Update user guide for configurable marker sets

Change-Id: I5a56a94dff211627db8d4e7f0ac4bd2783cdf9c2
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/90318
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Add unit tests for configurable marker event source
Patrick Tasse [Fri, 3 Feb 2017 17:16:56 +0000 (12:16 -0500)] 
tmf: Add unit tests for configurable marker event source

Change-Id: Ibed108fb6b625163c7a2181d43fa9ad28add9781
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/90317
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Add XSD validation for marker configuration file
Patrick Tasse [Mon, 30 Jan 2017 20:34:51 +0000 (15:34 -0500)] 
tmf: Add XSD validation for marker configuration file

Change-Id: Id673d01fc65919cb8776dfaec2d8a15ceb2ae214
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/90316
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Support traces providing cycle conversion
Patrick Tasse [Thu, 10 Nov 2016 15:46:12 +0000 (10:46 -0500)] 
tmf: Support traces providing cycle conversion

The interface ICyclesConverter is added, and the configurable marker
event source will use it to calculate periods and offsets when the unit
is 'cycles' if the trace provides an adapter for it.

CtfTmfTrace is updated to implement this new interface.

Change-Id: I6cda33a880365f0bcc2d1d808f2164781e4f788c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84822
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Support traces providing periodic marker reference
Patrick Tasse [Wed, 9 Nov 2016 22:11:45 +0000 (17:11 -0500)] 
tmf: Support traces providing periodic marker reference

The interface IMarkerReferenceProvider is added, and the configurable
marker event source will use it to determine the reference if the trace
provides an adapter for it.

The periodic marker configuration supports a 'referenceid' attribute
which is provided to the trace adapter.

Change-Id: Ib6feee645c58d9d6f63fa07df9a65fdce8c5597a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84820
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Make TmfTrace implement IAdaptable
Patrick Tasse [Wed, 9 Nov 2016 21:27:38 +0000 (16:27 -0500)] 
tmf: Make TmfTrace implement IAdaptable

This is useful to be able to use adapter interface for traces, either by
direct implementation or by registering an adapter factory.

Change-Id: Iec23a2e3025771966f3467c56843711698b03331
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/84819
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Add configurable marker event source
Patrick Tasse [Thu, 2 Mar 2017 20:45:39 +0000 (15:45 -0500)] 
tmf: Add configurable marker event source

Change-Id: I1c8f9b2ebc833063d8fa7b9b4a469b722b8bb41c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83645
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Add method to filter-out periodic markers by index
Patrick Tasse [Wed, 19 Oct 2016 18:45:27 +0000 (14:45 -0400)] 
tmf: Add method to filter-out periodic markers by index

The method isApplicable(long index) can be overridden to filter-out
markers by index, by returning false. The default implementation returns
true, filtering-out nothing.

Change-Id: Ib37043facf10aef4369f1a3701d94b975c68c9e5
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83644
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Add method to get marker list for all categories at once
Patrick Tasse [Fri, 14 Oct 2016 18:57:48 +0000 (14:57 -0400)] 
tmf: Add method to get marker list for all categories at once

This can be useful for marker event sources that provide multiple
categories and for which it is easier to compute all the markers at the
same time.

Change-Id: I5efcfe4444f70ef879fb6a33aa4e28b844d08095
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/83643
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Fix Mars build
Marc-Andre Laperle [Mon, 6 Mar 2017 16:20:20 +0000 (11:20 -0500)] 
tmf: Fix Mars build

In Eclipse 4.5, StructuredViewer had
public void setFilters(ViewerFilter[] filters)
It became in 4.6
public void setFilters(ViewerFilter... filters)

So passing an array of ViewerFilter will work for both.

Change-Id: I1f3e188a78f1b738f9d41bbc05f692141f02b1bb
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/92392
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
7 years agoxml: Use java.nio.Path instead or o.e.core.runtime
Geneviève Bastien [Wed, 1 Mar 2017 17:40:27 +0000 (12:40 -0500)] 
xml: Use java.nio.Path instead or o.e.core.runtime

This is what is was meant to be from the start, but a wrong import went
unnoticed.

Change-Id: Iecf4794c9ed9e59a83ebd5e92af9b7ef7ef72b12
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92112
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 agolttng: bug 513013: fix invalid thread access
Bernd Hufmann [Thu, 2 Mar 2017 20:55:15 +0000 (15:55 -0500)] 
lttng: bug 513013: fix invalid thread access

Change-Id: I019497d3cc776b8872c6600bd7c3aa4a5d331c3e
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/92204
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 agoreleng: Use baseline target file instead of zip for Oomph
Marc-Andre Laperle [Mon, 27 Feb 2017 21:47:22 +0000 (16:47 -0500)] 
releng: Use baseline target file instead of zip for Oomph

Instead of having to create a zip and pointing to it, use the
existing .target file. This requires to resolve the target first
then set it, as suggested here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=500097#c7

Change-Id: I4e7b7d9b8ea8b013e24ba8c0ef760066c86251a2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/77201
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agodatastore: Fast return to for classic node children
Geneviève Bastien [Thu, 23 Feb 2017 20:27:18 +0000 (15:27 -0500)] 
datastore: Fast return to for classic node children

When selecting next children of classic nodes, once the node's
end time is past the maximum of the range, it is no use searching
the rest of the children.

Change-Id: I7a1aba410718ea33a84b6a0b109121b0512fd284
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91758
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
7 years agodatastore: Rewrite some stream and list manipulations
Geneviève Bastien [Thu, 23 Feb 2017 22:07:47 +0000 (17:07 -0500)] 
datastore: Rewrite some stream and list manipulations

This patch rewrites some list and stream manipulations to plain
java. It has a non-negligeable impact on performance.

Change-Id: I11881780d30f27592765140edda1af04b1a2c1e5
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91757
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
7 years agodatastore: Add intervals without check for node read
Geneviève Bastien [Thu, 16 Feb 2017 20:56:28 +0000 (15:56 -0500)] 
datastore: Add intervals without check for node read

When nodes are read from disk, we know the intervals fit into it, there
is no need to go through the code path that checks if the interval can
go in the node.

This change alone greatly reduces the performance impact of both single
and full queries for large state system, when nodes are often read from
disk.

Change-Id: If653611b00d56b604d23ddd1f6e62bb22f822da0
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91756
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
7 years agodatastore: Keep a snapshot of the latest branch
Geneviève Bastien [Tue, 21 Feb 2017 19:35:45 +0000 (14:35 -0500)] 
datastore: Keep a snapshot of the latest branch

This avoids making immutable copies of the same branch over and over.

Also use the latest branch directly in the node insertion instead of
the getter.

This change alone removes all performance impact of the datastore
when building.

Change-Id: If85ae9bded364cfd6f1243416d025df6307cf909
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91755
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
7 years agodatastore: Use time conditions with long
Geneviève Bastien [Tue, 21 Feb 2017 15:39:05 +0000 (10:39 -0500)] 
datastore: Use time conditions with long

Using primitive type long instead of a generic Long for range conditions
reduces the need for boxing and unboxing time values.

This change alone reduces the performance impact of the datastore by ~2
in use cases of small size for both single and full queries. Coupled with
the patch with single queries API, it reduces the performance impact of
single queries to < 100%

Change-Id: I63ebb20b2441aff1345b733f1ffc25314e63ffd2
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91754
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
7 years agodatastore: Add API for single queries
Geneviève Bastien [Wed, 15 Feb 2017 17:23:20 +0000 (12:23 -0500)] 
datastore: Add API for single queries

When what we want is only one interval, there is no need to get them
all, we can just fast return when the one interval is found.

This change alones reduces the performance impact of the datastore by
~2x for single queries in the case of smallish traces.

This patch also adds a binary search to find the first interval to
look at.

Change-Id: I77d0ac9818f272f7d160f92666445ce2d8b3200a
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91753
Reviewed-by: Hudson CI
Reviewed-by: Loic Prieur-Drevon <loic.prieur.drevon@ericsson.com>
7 years agocharts: Add interactivity and signals
Gabriel-Andrew Pollo-Guilbert [Tue, 2 Aug 2016 16:36:07 +0000 (12:36 -0400)] 
charts: Add interactivity and signals

This patch adds a basic signal that is sent when the
selection inside a chart is updated.

Change-Id: I31e66701dfb2cf495fea4d948fe90e545485d30c
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/78348
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Add dialog for making a custom chart
Gabriel-Andrew Pollo-Guilbert [Fri, 15 Jul 2016 19:49:12 +0000 (15:49 -0400)] 
charts: Add dialog for making a custom chart

This patch adds a dialog that allow to configure a chart
based on the possible data descriptors of a data
provider.

Change-Id: Ia790b11083ef07b49953cf9f3578eeaea7785495
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/77162
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Add custom bar charts
Gabriel-Andrew Pollo-Guilbert [Tue, 26 Jul 2016 20:41:46 +0000 (16:41 -0400)] 
charts: Add custom bar charts

Change-Id: I050dff9ad39e269c4b890aadc4fb403689ada09a
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/77161
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Add custom scatter chart
Gabriel-Andrew Pollo-Guilbert [Tue, 12 Jul 2016 15:10:22 +0000 (11:10 -0400)] 
charts: Add custom scatter chart

Change-Id: I1ced02d5e7bb6f34bfa11a58d7dacbe2ba00f6d8
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/77160
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Add abstract class for XY charts
Gabriel-Andrew Pollo-Guilbert [Tue, 12 Jul 2016 15:00:13 +0000 (11:00 -0400)] 
charts: Add abstract class for XY charts

Change-Id: I4b1ada5be47da16e4942ead2f28f0b8b5c084f30
Signed-off-by: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/77159
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agodoc: Update the link to XML analysis example
Geneviève Bastien [Thu, 2 Mar 2017 14:15:49 +0000 (09:15 -0500)] 
doc: Update the link to XML analysis example

secretaire.dorsal.polymtl.ca is now available only in https

Change-Id: I9bc44eea31847d2d16f8f2f249e717a19a14fd48
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/92159
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
7 years agodoc: Document Optimize button
Matthew Khouzam [Fri, 24 Feb 2017 21:14:32 +0000 (16:14 -0500)] 
doc: Document Optimize button

Fixes Bug 508946.

Change-Id: Iead742de3152c81136dc8283a00926372174e95c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91830
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>
7 years agoreleng: update some maven plugin versions
Bernd Hufmann [Fri, 17 Feb 2017 12:34:41 +0000 (07:34 -0500)] 
releng: update some maven plugin versions

Change-Id: I73929804a93004eef63f1cd24851a90c4a89720e
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91362
Reviewed-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
7 years agoRemove some extra lines by using SWTBotUtils
Marc-Andre Laperle [Fri, 23 Sep 2016 20:07:38 +0000 (16:07 -0400)] 
Remove some extra lines by using SWTBotUtils

Change-Id: Iad76c781d32bd33ff4d3162d6866030db5ffcd29
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/81835
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Add additional arguments to the command line
Geneviève Bastien [Fri, 24 Feb 2017 15:33:32 +0000 (10:33 -0500)] 
releng: Add additional arguments to the command line

This will allow for instance to add arguments to enable logging for a
custom test suite

Change-Id: I149ee22e8d4843f596d45e476021b8ad0fba0008
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91811
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 agoreleng: Add a test suite for all SWTbot perf tests
Geneviève Bastien [Thu, 1 Sep 2016 20:26:44 +0000 (16:26 -0400)] 
releng: Add a test suite for all SWTbot perf tests

These tests can be run with JUL enabled to get data for UI
responsiveness.

Change-Id: I87cf69155262089dfe017db5ad4980951308224e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/80262
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 agoanalysis: Add a few missing @RunWith(SWTBotJunit4ClassRunner.class)
Marc-Andre Laperle [Thu, 23 Feb 2017 16:11:53 +0000 (11:11 -0500)] 
analysis: Add a few missing @RunWith(SWTBotJunit4ClassRunner.class)

So we can get screen shots when the tests fails.

Change-Id: I8e53f8767ed1c42ecfeeaa15fcd47ae7ac60fe1d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91714
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoreleng: Add missing javax.xml dependency for staging target
Marc-Andre Laperle [Sun, 12 Feb 2017 01:00:57 +0000 (20:00 -0500)] 
releng: Add missing javax.xml dependency for staging target

This fixes the missing javax.xml dependency for org.apache.xerces.
javax.xml is no longer packaged with the Eclipse RCP features but
apache.xerces still depend on it (for XML editor, etc).
If Orbit updates the dependency then we'll be able to remove it but
it might not be worth the effort at this time.

See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=467028

Change-Id: I9c1fa21efb5fa992464cae2af08641c80dde23f3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90886
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoreleng: Use Eclipse 4.6 milestone builds
Marc-Andre Laperle [Wed, 15 Feb 2017 14:18:06 +0000 (09:18 -0500)] 
releng: Use Eclipse 4.6 milestone builds

This will allow us to test and build using the Eclipse 4.6.3 RCs.
Also, derby can now be used from Orbit because test.performance was
updated to use “import package” instead of require-plugin. It is better
to use the one in Orbit because it is on download servers instead of
build.eclipse.org which has proven to be unreliable.

Change-Id: Ie61da4b0cec68e5071ef529993e8d9815a85b523
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91153
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf: Fix TmfTestTrace.getFullPath in Windows
Patrick Tasse [Wed, 22 Feb 2017 21:47:14 +0000 (16:47 -0500)] 
tmf: Fix TmfTestTrace.getFullPath in Windows

The path passed as argument to Bundle.getResource(String) should not use
the backslash as separator.

Change-Id: I8efbe18b5c3f4b1a325b05d788902ae6c2e6cfde
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/91655
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 deletion of supplementary files in unit tests
Patrick Tasse [Tue, 21 Feb 2017 20:45:06 +0000 (15:45 -0500)] 
tmf: Fix deletion of supplementary files in unit tests

The trace should be disposed before attempting to delete supplementary
files, otherwise the checkpoint indexer could still be holding a file
handle to the index, and file deletion fails in Windows.

Change-Id: I81f04dfd198c9a49f1dfdce36673e532bdf8b54d
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/91576
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 agosegStore: Introduce IContentSegment
Matthew Khouzam [Fri, 2 Dec 2016 22:28:31 +0000 (17:28 -0500)] 
segStore: Introduce IContentSegment

Make TmfXmlSegment implement an IContentSegment

Change-Id: Ie6126f88fadc4c32c997b4d568b77e50ea39ec36
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/86294
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
7 years agotmf: Add public trace import operation
Patrick Tasse [Wed, 18 Jan 2017 15:54:08 +0000 (10:54 -0500)] 
tmf: Add public trace import operation

Change-Id: Ic0f84ec5648abf8591a31042da513b35f3c927d2
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/90320
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Fix TmfTestTrace.getFullPath()
Patrick Tasse [Thu, 16 Feb 2017 22:13:17 +0000 (17:13 -0500)] 
tmf: Fix TmfTestTrace.getFullPath()

Change getFullPath() to return an absolute path and update callers
accordingly. The internal directory is no longer a relative path from
the plug-in installation location, which allows getTrace() to work
properly when called from another plug-in.

Change-Id: I761ce633da8a64e33fe83e062478da566d5c795c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/91408
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Bug 512509: Time graph viewer initial layout is incorrect
Patrick Tasse [Tue, 21 Feb 2017 16:16:30 +0000 (11:16 -0500)] 
tmf: Bug 512509: Time graph viewer initial layout is incorrect

Set an initial width hint on the Tree layout data at construction.

Change-Id: I7c7e1fe219e5b53fb0830111ea9a1d0511efe9f7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/91552
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agolttng: Add more checking to UstKernelSyncTest
Alexandre Montplaisir [Thu, 17 Nov 2016 00:39:28 +0000 (19:39 -0500)] 
lttng: Add more checking to UstKernelSyncTest

The testOneEvent() fails spuriously. Either the wrong event is
retrieved from the trace, or the analysis module is somehow not
ready when it should be.

This extra check will allow us to determine which one of those
two causes is the problem.

Refs bug 506868.

Change-Id: Ie6646a734fcf07a21c810d15c708db3a460c8765
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/85187
Reviewed-by: Hudson CI
Reviewed-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agosegStore: Add a INamedSegment interface
Geneviève Bastien [Thu, 22 Sep 2016 20:56:24 +0000 (16:56 -0400)] 
segStore: Add a INamedSegment interface

This interface is to be implemented by any segment that has a name. This
name can be used in statistics, and other segment store views

Change-Id: Idc1ff17d9725b6ac0b1d79c04c61fedd96366278
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/82284
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
7 years agotmf: Deadlock closing a trace as a signal is calling getAnalysisModules
Marc-Andre Laperle [Sun, 19 Feb 2017 05:47:39 +0000 (00:47 -0500)] 
tmf: Deadlock closing a trace as a signal is calling getAnalysisModules

When a trace is opened, a traceRangeUpdated signal is sent
asynchronously. Depending on when this thread starts running, the trace
might open and the user might close the trace before it starts.

-The trace cannot finish disposing before the signal is finished because
when it tries to dispose its analysis, they unregister themselves from
the signal manager, but TmfSignalManager.unregister is synchronized
-The signal cannot finish because it is waiting for the lock on the
analysis map (being iterated in the dispose thread).

Here is an illustration of it:
Thread 1 (dispose): > analysis map lock > waiting on signal manager lock
Thread 2 (signal) > signal manager lock > waiting on analysis map lock

Bug: 512394
Change-Id: I0f27aa6c976a54368f79cd885a561c6ce8ac3dba
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91427
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoanalysis.ui: Fix Export to TSV action in segment store statistics view
Jean-Christian Kouame [Mon, 20 Feb 2017 20:55:07 +0000 (15:55 -0500)] 
analysis.ui: Fix Export to TSV action in segment store statistics view

This adds the style SWT.SAVE to the dialog and asks the user to override
an existing file before the save. Test will be added in a subsequent
patch.

Change-Id: I4b97197c94e46cfb7f6894902012f1ef242c0ceb
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91508
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Fix timeouts wrongly set to 2 secs
Marc-Andre Laperle [Mon, 20 Feb 2017 19:43:30 +0000 (14:43 -0500)] 
tmf: Fix timeouts wrongly set to 2 secs

Change-Id: I371c6a51fa6aec82d7f9d35e7cfbca8b9d23902c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91500
Reviewed-by: Hudson CI
7 years agoreleng: Fix doc index build failure
Marc-Andre Laperle [Sun, 19 Feb 2017 06:26:52 +0000 (01:26 -0500)] 
releng: Fix doc index build failure

By default, the eclipserun plugin uses Java 7 execution environment.
But we need Java 8 now for Neon.

Change-Id: Icb3592397b84ccc7cb7d0bfa4c4881bdbb1dfee4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91428
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
7 years agotiming: Cancel previous flame graph build job
Geneviève Bastien [Tue, 14 Feb 2017 18:42:09 +0000 (13:42 -0500)] 
timing: Cancel previous flame graph build job

Fixes bug 512195

The flame graph view was previously waiting for the previous job to
finish, waiting to acquire the lock, often in the UI thread. Now the
previous job is cancelled before acquiring the view's lock.

Change-Id: I36562822628e93560eefd26fc89cbf02d9469557
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91086
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Add onFail() method for analysis
Geneviève Bastien [Tue, 7 Feb 2017 21:32:27 +0000 (16:32 -0500)] 
tmf: Add onFail() method for analysis

This method is executed upon failure so that analyses can make their
state coherent when failure occurs.

Change-Id: Iad689d83ffb3c508160a3a099119f8a6c11dc2a6
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90668
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Catch exceptions and gracefully fail state providers
Matthew Khouzam [Fri, 14 Oct 2016 21:21:00 +0000 (17:21 -0400)] 
tmf: Catch exceptions and gracefully fail state providers

Partially fixes 504078.

When a runtime exception occurs in a state provider, it enters
sink mode, does not read more events and fails gracefully.

Change-Id: I9c8bde9561cc2fd6d49b699b7632a4594e4ec744
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83277
Reviewed-by: Hudson CI
7 years agoos.linux: Have the I/O analysis depend on TID
Geneviève Bastien [Mon, 13 Feb 2017 15:48:03 +0000 (10:48 -0500)] 
os.linux: Have the I/O analysis depend on TID

It uses this dependency through the aspect, but the aspect uses TID
analysis now, not the kernel analysis anymore.

Change-Id: I028a7ea98ead5023aea3113148332f837391ca54
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91054
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoreleng: Add more script documentation, examples
Marc-Andre Laperle [Tue, 17 Jan 2017 22:14:15 +0000 (17:14 -0500)] 
releng: Add more script documentation, examples

Change-Id: I87b8ee328055ce464c762555a5cf011fa8f70db5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/88910
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoreleng: Update eclipserun update site and test-traces to latest
Marc-Andre Laperle [Wed, 31 Aug 2016 14:37:11 +0000 (10:37 -0400)] 
releng: Update eclipserun update site and test-traces to latest

This helps not downloading multiple versions and saves time.

Change-Id: I71bd110d8bbbc7843670f4b48e030badca133729
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/80136
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoFix some API errors with Eclipse 4.7
Marc-Andre Laperle [Thu, 9 Feb 2017 16:30:42 +0000 (11:30 -0500)] 
Fix some API errors with Eclipse 4.7

Adding fields is now an error but we probably want to ignore this
because it is quite restrictive

Change-Id: I0b4cea6a13a7db09e072a40f98bb91eefe718f9d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90757
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agoreleng: upgrade to tycho 1.0.0
Bernd Hufmann [Mon, 6 Feb 2017 20:16:38 +0000 (15:16 -0500)] 
releng: upgrade to tycho 1.0.0

useProjectSettings is now true by default so it can be removed.

See https://wiki.eclipse.org/Tycho/Release_Notes/1.0.0

Change-Id: Iff20634fe883effbfaf7575063870470316df5c9
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90453
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 agorcp: update copyright year to 2017
Bernd Hufmann [Wed, 15 Feb 2017 18:56:42 +0000 (13:56 -0500)] 
rcp: update copyright year to 2017

Change-Id: I428e6c5a63eb4b7f0470816bc7739950113ea5a1
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/91209
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agoxml: Use the base trace for provider's invalid tests
Geneviève Bastien [Wed, 15 Feb 2017 14:27:06 +0000 (09:27 -0500)] 
xml: Use the base trace for provider's invalid tests

This should fix the Hudson job failing sometimes

Change-Id: I72b3fd76d1a4d09c633a7bf79c934787c240eeb6
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/91159
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 agoreleng: Fix TmfPerspectiveManagerTest on Mac
Marc-Andre Laperle [Thu, 9 Feb 2017 16:44:02 +0000 (11:44 -0500)] 
releng: Fix TmfPerspectiveManagerTest on Mac

Preferences should be opened with the util method.

Change-Id: I572d74c9335b1e26c24d8a797ccc2d6b63bbfe9d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90758
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
7 years agotmf.core: add new constructor to AbstractTmfStateProvider
Matthew Khouzam [Fri, 14 Oct 2016 20:47:29 +0000 (16:47 -0400)] 
tmf.core: add new constructor to AbstractTmfStateProvider

This allows state providers with custom buffered blocking queues.

Change-Id: Id462f50b8cc48c96303d6d69e6143ab1e04b0ed8
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/83276
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf.xml: Throw an exception if element not found
Geneviève Bastien [Tue, 7 Feb 2017 19:28:24 +0000 (14:28 -0500)] 
tmf.xml: Throw an exception if element not found

This should not happen, so it's better to throw an exception and
recover at this point. Otherwise, exceptions end up being thrown
somewhere else and are harder to recover from.

Change-Id: I043a59d7ab040bb6da6cd087d6f10645207672fe
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90667
Reviewed-by: Hudson CI
7 years agoreleng: update versions to reflect changes since 2.2 release
Bernd Hufmann [Mon, 13 Feb 2017 16:16:39 +0000 (11:16 -0500)] 
releng: update versions to reflect changes since 2.2 release

Change-Id: Ib419f448d0c7dc65f7602ebd568b7580e345037b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90970
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 agolinux.ui: make CpuUsageComposite use iteratorOverQuark and optQuark
Loïc Prieur-Drevon [Thu, 24 Nov 2016 16:49:35 +0000 (11:49 -0500)] 
linux.ui: make CpuUsageComposite use iteratorOverQuark and optQuark

We directly retrieve the quark for the thread's name.
By using optQuark instead of getQuark, we stop relying on exceptions.
By using QuarkIterator instead of QueryHistoryRange, we make the
query "lazier" and stop querying the state system once the process
name is found.

Change-Id: I211fe74a69352233038cc737e1df728221dccd13
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/85793
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Fix leaked traces/event providers
Bernd Hufmann [Tue, 14 Feb 2017 00:17:25 +0000 (19:17 -0500)] 
tmf: Fix leaked traces/event providers

A recent test added is not disposing the traces.

Change-Id: I90e53ef339c4e6ec921c08fbdfe8650c210a18c5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90995
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agodatastore: Be less strict on the query range of children
Geneviève Bastien [Wed, 8 Feb 2017 02:36:40 +0000 (21:36 -0500)] 
datastore: Be less strict on the query range of children

Just return an empty list when the time range does not intersect with the
node's range instead of throwing an exception.

Change-Id: I7f9aaa78cb410d26e713ea966efb74648d95b920
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90602
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoss: Add javadoc to StateSystem#waitUntilBuilt(long)
Geneviève Bastien [Fri, 3 Feb 2017 20:55:18 +0000 (15:55 -0500)] 
ss: Add javadoc to StateSystem#waitUntilBuilt(long)

If the timeout specified less or equal to 0, then there will no waiting and
this can be used as a "isBuilt" method for the state system.

Change-Id: I6110622071249cd456801fc220500740ba72d6b4
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90309
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@efficios.com>
7 years agoUpdate MAINTAINERS
Alexandre Montplaisir [Fri, 10 Feb 2017 19:12:33 +0000 (14:12 -0500)] 
Update MAINTAINERS

Remove myself from maintainer of various components, reflecting the
fact that EfficiOS will unfortunately reduce their involvement into
Trace Compass.

I have marked the relevant components as "Open", since current
co-maintainers may not want or be ready to become main committers on
those.

Change-Id: I042ff07fb28548367846abf628802fc9214504d6
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/90858

7 years agotmf.core: Move the analysis cancel log message
Geneviève Bastien [Tue, 7 Feb 2017 19:00:41 +0000 (14:00 -0500)] 
tmf.core: Move the analysis cancel log message

The analysis cancellation should be logged only if it was running
and is really cancelled. Otherwise, it produces confusing messages
where the analysis was previously finished and then cancelled.

Change-Id: I1704f2a29312b6c1a2a9b15e4869bcb646ab1204
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90577
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agoos.linux: Fix NPE in input/output analysis
Geneviève Bastien [Tue, 7 Feb 2017 16:10:00 +0000 (11:10 -0500)] 
os.linux: Fix NPE in input/output analysis

The block rq sector field is not present in the block_bio_frontmerge
event, but can easily be computed from the other field data.

Change-Id: Ib5b056d97cffac82a8bcfa1be80bc713504091a1
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90555
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: catch exception for coalesced requests
Genevieve Bastien [Thu, 13 Oct 2016 15:44:46 +0000 (11:44 -0400)] 
tmf: catch exception for coalesced requests

When an event request that is coalesced causes a runtime exception,
it should not cause the failure of all the other requests coalesced
with it. This fails only the faulty one.

Change-Id: Ie339775fef23210f72fcf93e882b37e2ea8ce646
Signed-off-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/83141
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: bug 487976: Add null checks for traces/exp. folders getters
Bernd Hufmann [Wed, 18 Jan 2017 15:33:51 +0000 (10:33 -0500)] 
tmf: bug 487976: Add null checks for traces/exp. folders getters

This avoids NPE when Traces or Experiment folder have been deleted.
Handle gracefully the case when these folders don't exist on disk.

Change-Id: I5be56609be138dc22f6917e5da2a9638d140fb0c
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/89142
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 agoss: Revert "Switch the statesystem to the datastore HT"
Geneviève Bastien [Wed, 8 Feb 2017 14:46:11 +0000 (09:46 -0500)] 
ss: Revert "Switch the statesystem to the datastore HT"

This reverts commit cf8efcef276dab1aff04b8ddbfedb50ae8a09dab.

The new code path seems to introduce performance issues, especially with
benchmarks. Some investigation is needed, but reverting it is the safest
route for now.

Change-Id: I54dc7c4e297e9b633115145770648145030cc39b
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90640
Reviewed-by: Hudson CI
7 years agoxml: XML modules should not be automatic
Geneviève Bastien [Thu, 19 Jan 2017 16:24:11 +0000 (11:24 -0500)] 
xml: XML modules should not be automatic

Those modules may require a lot of processing and there may be many of
them, so it is better to execute them on demand only.

Change-Id: Ide7819fe286c290be1c4aabda0c4283d6b6db788
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89134
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 agoss: Switch the statesystem to the datastore HT
Alexandre Montplaisir [Sun, 11 Dec 2016 11:12:00 +0000 (06:12 -0500)] 
ss: Switch the statesystem to the datastore HT

Change-Id: Ie7b57928c610172241584578494cb242905596af
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/85163
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agocharts: Make the custom chart formatters immutable
Geneviève Bastien [Tue, 24 Jan 2017 19:47:51 +0000 (14:47 -0500)] 
charts: Make the custom chart formatters immutable

Change-Id: I44885b7bb00a9bd198e9c111f9511b157def390e
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89470
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocommon: Annotate BigDecimal
Geneviève Bastien [Mon, 6 Feb 2017 20:06:16 +0000 (15:06 -0500)] 
common: Annotate BigDecimal

Also remove checkNonNull where necessary and add annotations where
possible in the timestamp transforms

Change-Id: I2582595d6993df19725e1b2d50e72e492739ebd5
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90452
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Add unit tests for the .ui plugin
Geneviève Bastien [Mon, 30 Jan 2017 19:39:50 +0000 (14:39 -0500)] 
charts: Add unit tests for the .ui plugin

Add tests for the ChartRange class

Change-Id: Ic0e1e4bd9ff170a2b5d831c1f1ffdf86e01588c1
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89901
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf.core: Partial ss API should not expose restricted classes
Geneviève Bastien [Fri, 3 Feb 2017 18:39:41 +0000 (13:39 -0500)] 
tmf.core: Partial ss API should not expose restricted classes

Since the callers of the partial state system do not have access to the
StateSystem class, it should not be required. It is replace by an
internal validation of the input.

Change-Id: Id2c345fa36ce048990419feba4898b64e7a14823
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90308
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@efficios.com>
7 years agocommon: Annotate some methods of ImmutableBiMap
Geneviève Bastien [Wed, 1 Feb 2017 20:54:47 +0000 (15:54 -0500)] 
common: Annotate some methods of ImmutableBiMap

Change-Id: Iae85a8036eb16843d82b4b0c5b0ad90d404ea688
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90191
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agolttng: Fix Perf event layout error
Matthew Khouzam [Fri, 3 Feb 2017 14:11:25 +0000 (09:11 -0500)] 
lttng: Fix Perf event layout error

IRQ entries and exits were inverted.

Change-Id: I38b6ca07fb7bd26d8447d6eb47c786fb7522293b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/90269
Reviewed-by: Hudson CI
7 years agocommon: Annotate the HashBiMap.create([...]) methods
Geneviève Bastien [Fri, 27 Jan 2017 17:34:37 +0000 (12:34 -0500)] 
common: Annotate the HashBiMap.create([...]) methods

Change-Id: I5e5c8f5a8e51569828d69241d5695d4eefee331b
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89767
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.core: Make TmfTimestampFormat#toPattern NonNull
Geneviève Bastien [Thu, 2 Feb 2017 15:03:42 +0000 (10:03 -0500)] 
tmf.core: Make TmfTimestampFormat#toPattern NonNull

And all the changes required for this to work.

Change-Id: Ie07326346cf187f37011d5c624665186440f4517
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/90189
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
7 years agotmf: Add perspective manager
Patrick Tasse [Fri, 20 Jan 2017 18:23:01 +0000 (13:23 -0500)] 
tmf: Add perspective manager

The perspective manager handles switching perspective when a trace is
opened which has an associated perspective and the preference allows it.

Change-Id: I284c4aad6141717d101325871e58c0c114aac6a7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/89631
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agotmf: Add Switch to Perspective preference
Patrick Tasse [Fri, 20 Jan 2017 18:20:51 +0000 (13:20 -0500)] 
tmf: Add Switch to Perspective preference

The Switch to Perspective preference is added. A new Perspectives
preference page is added to manage the preference.

Change-Id: I3fdc49f1c2436fbfca52d664e5a386ff0229b122
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/89630
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agotmf: Add perspective element to trace type UI extension point
Patrick Tasse [Fri, 20 Jan 2017 18:16:16 +0000 (13:16 -0500)] 
tmf: Add perspective element to trace type UI extension point

The 'perspective' element is added to the tracetypeui extension point.

The method TmfTraceTypeUIUtils.getPerspectiveId(ITmfTrace) is added.

The associated perspective is set for some plug-in extensions.

Change-Id: Ib62add83a99cd50a6b56b4e0099705ec0f88d168
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/89629
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Better protect ChartRange to avoid null ranges
Geneviève Bastien [Tue, 24 Jan 2017 18:37:42 +0000 (13:37 -0500)] 
charts: Better protect ChartRange to avoid null ranges

Also:

* Add toString methods to chart range and range map
* Remove setMinimum and setMaximum mutators (they are not used)
* Add methods to get the pattern of the timestamp formatter

Change-Id: I4ea0fd34c06af8e09194cd6bfb5d256b334d0993
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89468
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agodatastore: Have RangeCondition extend Predicate
Geneviève Bastien [Thu, 19 Jan 2017 15:14:58 +0000 (10:14 -0500)] 
datastore: Have RangeCondition extend Predicate

The contains method is replaced by the Predicate's test method. This will
allow to use the RangeCondition as a Predicate in some situations.

Change-Id: I85ab49a5663c5179f22d094b0a8e11568c1b90db
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89119
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-by: Hudson CI
7 years agodatastore: Add an overlapping history tree
Loïc Prieur-Drevon [Fri, 25 Nov 2016 20:40:58 +0000 (15:40 -0500)] 
datastore: Add an overlapping history tree

This adds a generic implementation of an history tree where children
nodes are allowed to overlap their ranges.

Change-Id: Ie5f8de62924361430c5d5b38e8ed1fbbc6d755dc
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
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/85801
Reviewed-by: Hudson CI
7 years agodatastore: Add a classic history tree implementation
Alexandre Montplaisir [Wed, 14 Dec 2016 22:58:00 +0000 (17:58 -0500)] 
datastore: Add a classic history tree implementation

This adds a basic generic implementation of the classic history tree, ie
a tree where children start at the end time of its previous sibling + 1
and children nodes cover the full range of the parent node.

Change-Id: I92f988a8f83c11d25f35070c59d4c4d38eb9e3aa
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/85800
Reviewed-by: Hudson CI
7 years agodatastore: Add unit tests for the generic history tree
Geneviève Bastien [Fri, 25 Nov 2016 20:32:59 +0000 (15:32 -0500)] 
datastore: Add unit tests for the generic history tree

Change-Id: I05fbc90b9845f8f6a703da4a3e9ae0733d9d6ad4
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/85161
Reviewed-by: Hudson CI
7 years agodatastore: Add generic history tree
Geneviève Bastien [Fri, 25 Nov 2016 20:28:30 +0000 (15:28 -0500)] 
datastore: Add generic history tree

Adds an history interface and abstract implementation as well as some
classes needed to serialize data to the tree and exceptions.

Change-Id: I8bd100cc9c6a0f586b3ab6ae32999a4086ea3640
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/84478
Reviewed-by: Hudson CI
7 years agodatastore: Test the discrete and continuous range conditions
Loïc Prieur-Drevon [Mon, 19 Dec 2016 11:36:36 +0000 (12:36 +0100)] 
datastore: Test the discrete and continuous range conditions

Change-Id: I6d56fd97c5d315d0b4173b006ec15565aa3053ae
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Reviewed-on: https://git.eclipse.org/r/87393
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-by: Hudson CI
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agodatastore: Add RangeConditions to datastore
Loïc Prieur-Drevon [Wed, 14 Dec 2016 20:23:20 +0000 (15:23 -0500)] 
datastore: Add RangeConditions to datastore

This will be used by history tree queries.

Change-Id: I6bf6c5dfe1c215ac49afaf42f603326502ebf937
Signed-off-by: Loïc Prieur-Drevon <loic.prieurdrevon@gmail.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/87174
Reviewed-by: Hudson CI
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
7 years agoreleng: add checks to python scripts
Matthew Khouzam [Mon, 30 Jan 2017 19:29:35 +0000 (14:29 -0500)] 
releng: add checks to python scripts

This will helps the ux of the scripts.

Change-Id: Ifd5375f13328c415d406afbee4436b12c2563178
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/89899
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
7 years agotmf.xml: Fix XML analysis manager dialog
Jean-Christian Kouame [Fri, 4 Nov 2016 21:15:58 +0000 (17:15 -0400)] 
tmf.xml: Fix XML analysis manager dialog

The Edit button is now disable just after a delete file.

Change-Id: I8b1e6c0607d3049f5e4dac79f2232e9ec1d09f13
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/87178
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
7 years agocharts: Add units to numerical descriptors
Geneviève Bastien [Tue, 24 Jan 2017 18:36:30 +0000 (13:36 -0500)] 
charts: Add units to numerical descriptors

Like durations, any numerical descriptor could have units. Duration can
now inherit more of its parent behavior.

Change-Id: I151936bf5700dd6bb9b60b2d60a51350b5ec8083
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89467
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
This page took 0.047881 seconds and 5 git commands to generate.