Fix Changelog Java Feature .project file.

Change-Id: Ic1c9e1dbbec2a346bc0caa82b34909bcc336da84
Reviewed-on: https://git.eclipse.org/r/14011
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
ctf: Fix race condition in ctfiterator

You could advance an event while seeking, that is no longer possible
performance droped from 78000 events/s reading to 75000 events/s.
Potential hazard, threads can access the iterator and advance and seek
concurently. This is allowed by design, it's an iterator, it should be
wrapped in a safer candy coated shell so it doesn't melt in you hands.

Change-Id: I4df50389728f075f15312107f44847d61343366e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14060
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
ctf: Fix seek bug with multi-threaded access

Store the map of event definitions per stream reader, not per
trace. This allows multiple parallel stream readers to work
correctly (same with multiple CtfIterator's).

Fixes bug #405411.

Change-Id: I43e4e05b5d8313410905e90cb23badbd1d54b9f8
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/13994
ctf: Fix formatting in CTFTrace

Change-Id: I416204b08281e0bb66b5c1389a4ec03b247a2828
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/13032
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
TMF: Add functions to verify if events are present in a CTF Trace

These functions verify whether one, some or all events are present in the
metadata of a CTF trace.  It is useful to verify the presence of events
before doing an analysis that requires them.

Change-Id: Ieed7f9bcd905bf354aa5550b10c6304e534e5728
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/12952
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Fix fake event problem in AbstractTmfStateProvider

For a given state provider, if the last event modifies the state
AND the user calls .waitForEmptyQueue() right before closing the
tree manually, the resulting history would have an incorrect end
time and it would be impossible to query at the timestamp of the
last event.

This was due do a "fake" synchronization event being set as the
provider's current event, so when closing the history it would
use its time stamp which is effectively 0.

Remedy this by using an internal event class explicitely for this.
Thanks to J.-C. Kouamé for finding this one!

Change-Id: I06227ca656a67991966b1d1dd15330cb97754fbe
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/14080
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
[linuxtools settings | bug 412003] - This commit includes the capability to change the ComboFieldEditor according the selected path

I have read and agree to abide term by the terms of the Eclipse Foundation Commiter Guidelines

Change-Id: Ia09fffaec2e9fda5f3b152caf0ecb876e047793f
Signed-off-by: Rafael Peria de Sene <rpsene@linux.vnet.ibm.com>
Reviewed-on: https://git.eclipse.org/r/14171
Tested-by: Hudson CI
Reviewed-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Reviewed-by: Rafael Medeiros Teixeira <rafaelmt@linux.vnet.ibm.com>
IP-Clean: Rafael Medeiros Teixeira <rafaelmt@linux.vnet.ibm.com>
Tested-by: Rafael Medeiros Teixeira <rafaelmt@linux.vnet.ibm.com>
tmf : Fix binary search end time in InMemoryBackend

first interval was not always considered in memory backend request

Change-Id: I3741d182d362da835a08a1771fa87421744c9fff
Signed-off-by: Jean-Christian Kouame
Reviewed-on: https://git.eclipse.org/r/14117
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
TMF: Consolidate some view code into the AbstractTimeGraphView

This new view is a base view for all views using the TimeGraphCombo widget.
As a first step, the lttng2 kernel Control flow view and Resources view have
been modified to extend this abstract view.

Mostly all of the interface management code (build thread, zoom thread, signal
handling, etc) is in the base class.  Final views need only implement to code
to fill the entries' list and events.

This patch includes:
- The abstract view class that all new time graph views may extend.  The default
  weight of each sash can be set in the child view.
- A TimeGraphEntry class that can be used as is if the view does not require
  extra data of its entries
- Modification of the TimeEvent class to add a value to it.
- Added a ITimeGraphDrawingHelper interface to pass to the presentation
  providers to help them get the information they need to know where to draw
  some things (see ResourcesPresentationProvider)

It is a first step before adding new features to the time graph views.  Some
more abstraction may need to be done as well as other reorganizing of the
code.

Also updated for the 2.1 API, added a ITimeGraphPresentationProvider2 interface
to avoid API breakage.

Change-Id: I73c9f1b4bf8ec265f1b02804fa7f819bd2b8dd7a
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/12423
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Show trace environment variables in the Properties view

Fixes bug 407756

Change-Id: Ie90a3094ea8adc335a82182127d7bc0e3b727616
Signed-off-by: Jean-Christian Kouame
Reviewed-on: https://git.eclipse.org/r/12829
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Add null annotations to tmf.core.statevalue

Introduce the use of the new amazingly-useful JDT Null Analysis
annotations. See http://wiki.eclipse.org/JDT_Core/Null_Analysis

Let's start by something small and isolated, like the TMF state
values.

Change-Id: I8ab350352ba330e8bd55d1da3a7f8c0f9db2edc8
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/14084
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Fix warnings about deprecated parameter in ant tasks of POM files

Change-Id: I6d50ee19547e7e40d4f57d9eca6fb88b0a29a0e4
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14132
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Provide necessary licensing files in features using license-feature.

Create org.eclipse.linuxtools.license.feature which packages
epl-v10.html and license.html files.  Reference this feature using
'license-feature' in other features to have the necessary files appear
in binary/source features.

Change-Id: I2fd6ea0bbe47b290625920c0bf5edd35c5d360c4
Reviewed-on: https://git.eclipse.org/r/14014
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
Revert "tmf: Add null annotations to tmf.core.statevalue"

This reverts commit ba0b892f5a0ec84996f4ef3ed9faa09a034c542d.

This breaks compatibility with Eclipse < 3.8, which we'd like to have for a bit. Revert it temporarily until we can deal with it better.

Change-Id: I900a45d80f1c97aef9cc638db15afac212802b6d
Reviewed-on: https://git.eclipse.org/r/14237
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Remove unused sourceTemplateFeature folder from projects.

Change-Id: I0d21d891f61096e024a2c40607fa4a1dfd7e31df
Reviewed-on: https://git.eclipse.org/r/14239
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
Perf:Add stat diff view toolbar actions to switch between compared data

* Add support to view old, new and diff stat data contents.
* Introduce BaseDataManipulator to reuse existing functionality.
	- Refactor handlers to use this base class where useful.
* Allow access to inspect/replace contents of stat-diff views.
* Introduce global string data cache.
* Store old/new data contents in global cache.
* Add timestamp to stat diff view.
* Add test cases.

Change-Id: I78346fada37a2a7710a1b2a799023efbe1ffde01
Reviewed-on: https://git.eclipse.org/r/13926
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
Perf: Save session tests should fail if test files cannot be deleted

Change-Id: Ibdae955a7c81e5560311408260a6c7e74b6077e4
Reviewed-on: https://git.eclipse.org/r/14277
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
Remove unnecessary PerfProfileView reference in PerfPlugin.

Change-Id: Iecc4f1ae636c36e03e4cfad20ec5263b04486e47
Reviewed-on: https://git.eclipse.org/r/14278
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
ctf: Move integer pretty-printing to IntegerDefinition

Fixes bug 408046.

Change-Id: I4836f2026c70969a1d479cea2c66ef846cc95752
Signed-off-by: Jean-Christian Kouame
Reviewed-on: https://git.eclipse.org/r/14089
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Ctf: Callsite bug fix when position is negative (binarySearch)

Change-Id: Id1fdb06c717299f7b0fa8ad0576485d35003ce2b
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14109
Tested-by: Hudson CI
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>