tmf: Set focus on the event table after searching

Bug: 425055
Change-Id: I92488750b2783fffe76b5004cf97eefc3abc49e6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/22705
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>
Add test for perf stat data file handler.

Change-Id: Ic92cbaf44b80dbf58301a38d59033e9d743ef12e
Reviewed-on: https://git.eclipse.org/r/22700
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>
Tmf: Add the experiment type to the trace type extension point

This will allow to define experiment types using the same extension point as
the trace type, so the same handlers and contribution items can be used.

Change-Id: I8ae7da262e2a1e7eab78cf9e763f1fbc0babf5fb
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/13787
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>
TMF: Rename the TmfWithFolderElement class to TmfCommonProjectElement

Because this class will do much more than just folder related operations.
The new name is more adequate

Change-Id: I994b2f8f5f78d78ff722e2242b15b411566aa7f3
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20665
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>
TMF: Add default constructor to experiment and method to initialize it

The experiment behavior is thus equivalent to that of the trace and we can
eventually instantiate an experiment in the UI, just as we can a trace, using
an experiment constructor from a configuration element.

Change-Id: Ib7957a3b6458e424bd34d82d4757174233edec04
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20666
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>
Tmf: Add support of experiment types to TmfTraceType and TraceTypeHelper

Categories and experiment types are populated from the configuration elements
defined in the plugin.xml files

Change-Id: I7b08c9970880a7ee2846f9b471e3115aa60e684a
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20667
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>
Tmf: Move some TmfTraceElement methods to parent class

Experiment elements and trace elements now behave more alike, as a first
step to have full support of experiment types.

Change-Id: Iad5e2c973300f6f1ce155513e10ce1b390231223
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20668
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>
TMF: Allow experiments to have analysis and display them in UI

Initialize and execute the analysis when an experiment is opened. They are
also displayed in the UI, under the experiment.

Change-Id: I6afd5e8043734ba12bc0fc90bebffa418ba4b6da
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/22540
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
Systemtap: Make changes to unstable UI tests.

Make changes to the Systemtap SWTBot tests to reduce the chance
of failures. (For reference, tests sometimes failed due to unfindable
tree nodes or non-existent chart tooltips.)

Change-Id: Ie52e470155dd7d78b02addf4f20fb5a7ab327aaf
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/22867
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
TMF: Add possibility to select experiment type from UI

Modified trace type contribution item to element contribution item to add
experiment types to the list and show only trace or experiment type depending
on the selected element. Add the menu items for the experiment type selection.

Change-Id: Id566ce7c30a89d5371c2c311d7d96c1f065bf7fa
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20669
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>
TMF: Open experiments with the right experiment type

Change-Id: I4733515b190e6d5cb36887352ad46d55e7a66162
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20670
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>
TMF: Add support of experiment types to events editor

Change-Id: I26520606e652336f2c30f2e85de8eae62781ac76
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20671
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>
Tmf: Add unit tests for experiment types

Change-Id: I9a01a985914c9cfe5adad60b0c27dab338f09886
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/20673
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>
tmf: Fix NPE for persitent experiment index when using text traces

For text traces the end of a trace is indicated by a NULL_LOCATION.
The NULL_LOCATION has a null pointer for the location info object
(=TmfLongLocation). In an experiment some traces are finished being
read before other traces. When a checkpoint needs to be created
with a NULL_LOCATION for some of the traces an NullPointerExeption
is generated when serializing a checkpoint to the persistent index.

Change-Id: I16aa3afd1d7ab633b53916f7f3a01aefa9094560
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/22846
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Fix various leaks in Histogram

Fix Image and Color leaks in Histogram class. Also fix Font leak in
HistogramTextControl. HistogramTextControl's derived classes were
overriding dispose without calling super but those were not necessary to
begin with.

Bug: 428491
Change-Id: I23a9b85a26f00b809a1748e886202a5de07cd35e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/22696
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>
tmf: Add a getSubAttributes() with regex to the state system

This allows a bit more fine-grained control than getQuarks("*").

Change-Id: Ia925e98a15748eb67f7792108063c649d392e4d2
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/22885
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
IP-Clean: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
tmf: Delete experiment supp files when adding/removing trace

This commit brings back the fix for Bug: 421372. The original fix got
lost during a merge operation.

Change-Id: I2497278ebb7e29cc69542432949ef02195ecff09
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/22844
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
fix #428919: Support multi-trace histograms

When displaying a multi-trace experiment, colorize the histograms,
in order to know the origin of the events.

Change-Id: I9436a4b8d08250e41b7e68a46757b85a9797d658
Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Reviewed-on: https://git.eclipse.org/r/22442
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>
Change access right of AbstractSTDataView.fillContextMenu(), in order to be
easily overridden.

Change-Id: Ib8cd57a46e52b80f022e5ac474d72f8ae1f224e3
Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Reviewed-on: https://git.eclipse.org/r/22968
Tested-by: Hudson CI
tmf/lttng: add swtbot helper

Make common functionalities part of a helper class
instead of re-implementing them.

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