deliverable/tracecompass.git
10 years agoctf: Rename Stream* classes to CTFStream*
Alexandre Montplaisir [Wed, 21 May 2014 21:11:13 +0000 (17:11 -0400)] 
ctf: Rename Stream* classes to CTFStream*

"Stream" will become very confusing with java.util.stream.Stream when
Java 8 comes. Rename those classes to CTFStream, for better namespacing.

Change-Id: Ifb239af0366553472463c50d8e6ed899e002f880
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/27067
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agolttng: Restrict version of jdt.annotation in Tycho target platform
Marc-Andre Laperle [Tue, 20 May 2014 22:33:38 +0000 (18:33 -0400)] 
lttng: Restrict version of jdt.annotation in Tycho target platform

This works around the problem of jdt.annotation 2.0 being used which
requires Java 8.

Change-Id: I042709d044e40c3eb1220c2cc2a5c5687c06c102
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26967
Tested-by: Hudson CI
10 years agotmf: Use LinkedHashMap in state system Attribute class
Bernd Hufmann [Fri, 16 May 2014 19:35:42 +0000 (15:35 -0400)] 
tmf: Use LinkedHashMap in state system Attribute class

By doing that the order in which sub-attributes are added is preserved.
The call stack view showed incorrect stack frames because of that.

Change-Id: I43c344d9d2667de625f9f776d76ab1bff144598a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26759
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Support tree structure in SelectSupplementaryResourcesDialog
Patrick Tasse [Thu, 15 May 2014 17:57:39 +0000 (13:57 -0400)] 
tmf: Support tree structure in SelectSupplementaryResourcesDialog

Change-Id: I62ccb5d80ace123621e2df4ddcd58dbf2fbf4d8e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/26736
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng: Use specific antlr version in targets
Marc-Andre Laperle [Fri, 16 May 2014 13:42:07 +0000 (09:42 -0400)] 
lttng: Use specific antlr version in targets

To work around bug in Kepler PDE with 0.0.0 versions
not using the latest version.

Change-Id: I34cfd5334e3d1bc4e510f3fa694cb52f0398d8b6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26729
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Cleanup Statistics View classes a bit
Alexandre Montplaisir [Tue, 13 May 2014 18:01:05 +0000 (14:01 -0400)] 
tmf: Cleanup Statistics View classes a bit

- Remove useless interfaces
- Change protected fields to private, make some of them static
- Use Immutable List/Set where applicable

Change-Id: Ia351e820ea6d5988074d227d369db9f821374026
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26476
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Remove unneeded null check in SyntheticEventProviderStub
Alexandre Montplaisir [Thu, 15 May 2014 13:45:56 +0000 (09:45 -0400)] 
tmf: Remove unneeded null check in SyntheticEventProviderStub

Change-Id: I7df4764683fbb5dbdfdbea3309276930454a0dc9
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26648
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agotmf: Improve Delete Supplementary Files command
Patrick Tasse [Fri, 2 May 2014 00:34:10 +0000 (20:34 -0400)] 
tmf: Improve Delete Supplementary Files command

- Make all checkbox elements checked by default in the dialog

- Allow multiple selection as long as at least one of the selected
elements has supplementary files

- Update trace handler to support both traces and experiments, and
delete the experiment handler

- Ensure supplementary files for a particular trace are only shown once
in the list (e.g. same trace selected both under Traces folder and under
experiment, or two experiments selected that contain the same trace)

- Ensure only traces and experiments that have supplementary resources
to delete have their editors closed, and that their project is refreshed
only once.

Change-Id: I91f823c67c15da699c815fdf9daf9cfec5082ec9
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25858
Tested-by: Hudson CI
10 years agoLttng: Log test assert failures.
Andrew Ferrazzutti [Wed, 14 May 2014 21:23:02 +0000 (17:23 -0400)] 
Lttng: Log test assert failures.

Add messages to two assert statements that otherwise produce
identical output.

Change-Id: I05e2b077a49fc9c9b21c9d394f9d25adbc261969
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/26551
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
10 years agotmf: Mark ITmfEventRequest.handleData's parameter as NonNull
Alexandre Montplaisir [Thu, 8 May 2014 18:47:34 +0000 (14:47 -0400)] 
tmf: Mark ITmfEventRequest.handleData's parameter as NonNull

It seems every single event request implementation out there does
a null check on the event it receives in handleData(). TmfEventThread
already does a null check before sending the event to this method,
so it can be marked @NonNull, which avoids a bunch of redundant checks.

Change-Id: I1d54d5f3f5a08af150ab0a6011d075a366db4b48
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26247
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years ago[tmf] Close event editors on project delete and close
Marc-Andre Laperle [Mon, 21 Apr 2014 21:06:25 +0000 (17:06 -0400)] 
[tmf] Close event editors on project delete and close

Bug: 433091
Change-Id: I4ede4e232c3d84b89042a3a8e1ed8a0b366ef0bf
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25377
Tested-by: Hudson CI
10 years agotmf/lttng: git-ignore generated screenshots directory of swtbot tests
Bernd Hufmann [Mon, 12 May 2014 20:19:07 +0000 (16:19 -0400)] 
tmf/lttng: git-ignore generated screenshots directory of swtbot tests

Change-Id: I4d27e332074859384b421760484f39d9392e8400
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26404
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Add new interface to get pre-defined data types
Geneviève Bastien [Wed, 5 Mar 2014 14:59:17 +0000 (09:59 -0500)] 
tmf: Add new interface to get pre-defined data types

This way, other trace classes may implement this interface and be
queried on the events it might contain. This will be useful for analyses
who can query traces to know whether or not they might contain the
events it needs to execute.

This can be used by many traces. The TmfEventTypeCollectionHelper
class should help extract useful information from the set of events.
At least until Java 8 comes out.

Change-Id: I1758c0d99b2b4d4b91f5b7fa3ee14b82c325dede
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/22937
Tested-by: Hudson CI
10 years agolttng: Remove all unnecessary gitignore files
Bernd Hufmann [Mon, 12 May 2014 20:19:07 +0000 (16:19 -0400)] 
lttng: Remove all unnecessary gitignore files

"bin" and "target" can be set in the top-level .gitignore, which
leaves no need to repeat such files in the plugins' directories.

Change-Id: I6f3cb4259587aae199a3ca1418eeeee80c07b7df
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26410
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Add a TextTraceEventTable for text traces
Alexandre Montplaisir [Fri, 9 May 2014 20:21:04 +0000 (16:21 -0400)] 
tmf: Add a TextTraceEventTable for text traces

Current text trace implementation store all their information (timestamp,
type, event content, etc.) as ITmfEventField's. Provide a standard
TextTraceEventTable implementation which simply displays the contents of
the event fields, one per column.

Change-Id: I20989a479827f899edfa7289f6f9456cea2637f7
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26312
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoctf: add scope to packet header
Matthew Khouzam [Fri, 2 May 2014 04:06:23 +0000 (00:06 -0400)] 
ctf: add scope to packet header

add a trace defintion scope to a packet header, instead of it being
null.

Change-Id: I6e8d361101fb0a71f25665f921378131744d8d92
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25862
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agotmf: Don't use ITmfEventField in TmfEventsTable
Alexandre Montplaisir [Thu, 8 May 2014 18:02:43 +0000 (14:02 -0400)] 
tmf: Don't use ITmfEventField in TmfEventsTable

TmfEventsTable used ITmfEventFields to transfer what it calls
the "fields" of an event row in the table. These are simple Strings
at their heart though, ITmfEventField is used for event payloads only.

This removes many unnecessary object creations.

Change-Id: Ieb82651c6dc7b54505e24a1c21cfa3222a193bbf
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26231
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Fix the progress monitor in package export and import
Marc-Andre Laperle [Fri, 9 May 2014 21:13:40 +0000 (17:13 -0400)] 
tmf: Fix the progress monitor in package export and import

Change-Id: I0d126a78904e84bae80ff789dc6410d6f727eb48
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26314
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Add initial SWTBot test for ImportTraceWizard
Bernd Hufmann [Thu, 8 May 2014 17:31:28 +0000 (13:31 -0400)] 
tmf: Add initial SWTBot test for ImportTraceWizard

Change-Id: If533ffb1fcd9d7df865480f0e1c679ea3b4afa80
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26230
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Support folders in package import
Marc-Andre Laperle [Mon, 5 May 2014 23:06:45 +0000 (19:06 -0400)] 
tmf: Support folders in package import

Change-Id: I2338b8e250c7afda9d8c576db56b76b00429b9a6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26232
Tested-by: Hudson CI
10 years agolttng: Enable null-checking in test plugins
Alexandre Montplaisir [Tue, 6 May 2014 19:55:12 +0000 (15:55 -0400)] 
lttng: Enable null-checking in test plugins

For some reason, annotation-based null checks were disabled in the
tests plugins. To avoid NPEs during tests, might as well enable
and benefit from them.

Change-Id: Ib5b50a37e477aa8619f316cdbf0271ab33fce796
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26072
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
10 years agotmf: support folders in export trace package feature
Bernd Hufmann [Fri, 25 Apr 2014 17:56:47 +0000 (13:56 -0400)] 
tmf: support folders in export trace package feature

Change-Id: I55fdf352e8f320c98556dea61bddb395f3e3bbae
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25581
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agolttng-control: Fix creation of auto session
Bernd Hufmann [Fri, 9 May 2014 15:59:15 +0000 (11:59 -0400)] 
lttng-control: Fix creation of auto session

Change-Id: I7f531ad9c59795789f40b26a21470ab1b2878366
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26306
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng: Allow local host connection (non SSH) for LTTng control
Bernd Hufmann [Fri, 4 Apr 2014 13:39:23 +0000 (09:39 -0400)] 
lttng: Allow local host connection (non SSH) for LTTng control

Change-Id: I937c76141195f02d5c3694327e4e085764cd00c4
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26300
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng-control: Fix creation of snapshot sessions
Bernd Hufmann [Wed, 7 May 2014 16:57:56 +0000 (12:57 -0400)] 
lttng-control: Fix creation of snapshot sessions

Change-Id: Idc0279fdb7f94158537f38b8a1d9dd1ea80f45d1
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26161
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agoctf: get iterable of stream input readers
Matthew Khouzam [Wed, 12 Mar 2014 20:52:01 +0000 (16:52 -0400)] 
ctf: get iterable of stream input readers

This patch adds a way to get all event declarations from a
CTFTraceReader

Change-Id: If12805ba6436ab5f5ce562686f5870c0fbf05261
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23284

10 years agolttng-control: Use legacy import wizard for network traces
Bernd Hufmann [Wed, 7 May 2014 16:53:54 +0000 (12:53 -0400)] 
lttng-control: Use legacy import wizard for network traces

Change-Id: I0dbb361d858b2a4b1188845e84c62a7bcea681e3
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26164
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng-control: Auto-detect LTTng trace type during import
Bernd Hufmann [Wed, 7 May 2014 15:39:10 +0000 (11:39 -0400)] 
lttng-control: Auto-detect LTTng trace type during import

Change-Id: I2bb301151b689d2417f2fc7e62c8f3104e8727a1
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26163
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng-control: Preserve session folder structure during import
Bernd Hufmann [Wed, 7 May 2014 13:53:54 +0000 (09:53 -0400)] 
lttng-control: Preserve session folder structure during import

Change-Id: Ia4071a08a83d85838b1c83dbbff43b3a622f6587
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26162
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Make IAnalysisModule AutoCloseable
Alexandre Montplaisir [Fri, 2 May 2014 20:44:23 +0000 (16:44 -0400)] 
tmf: Make IAnalysisModule AutoCloseable

This will help ensure that we always close()/dispose() analysis
modules when we are done using them. This exposed many places in
the tests where unclosed modules could be leaking resources.

Change-Id: I32b9168d27460bd5daca61edebc38746a919ee4d
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25895
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Hudson CI
10 years agotmf: Fix Filter viewer context menu when opened from Colors view
Marc-Andre Laperle [Mon, 28 Apr 2014 18:48:07 +0000 (14:48 -0400)] 
tmf: Fix Filter viewer context menu when opened from Colors view

When the filter viewer was opened from the Colors view, the context
menu did not appear anymore. This is because the context menu code
was moved to the FilterView from the FilterViewer so it would only
be executed opening the Filters view. The fix moves the code back
to the viewer and exposes the menu to the view so that it can add
other menu items through extentions.

Change-Id: I0fd447186342bfded6fb202590bbf0e69af6236a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25689
Tested-by: Hudson CI
10 years agotmf: remove open trace directory and use open trace file instead
Bernd Hufmann [Fri, 14 Mar 2014 11:22:19 +0000 (07:22 -0400)] 
tmf: remove open trace directory and use open trace file instead

For directory traces like CTF the user has to select one of the
files of the directory trace. The open procedure will first verify
that the parent directory is a valid directory trace. If yes, then it
will be opened with the corresponding trace type. To cover the index
file of CTF which is in a subdirectory of the trace directory, also
the grandparent directory of the selected file will be checked for
a directory trace type. If neither parent or grandparent directory
is a valid directory the file will be imported as before.

Change-Id: Id6b4d8b177875b5c018cbbed82816f3ba52b067a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23386
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Copy ResourceTreeAndListGroup from platform to keep compatibility
Marc-Andre Laperle [Fri, 11 Apr 2014 23:01:14 +0000 (19:01 -0400)] 
tmf: Copy ResourceTreeAndListGroup from platform to keep compatibility

ResourceTreeAndListGroup was internal in Kepler and we referenced it.
It is now removed in Luna. To keep our builds compatible with Kepler,
we need to have our own version of this class. Once we stop supporting
Kepler, we can delete this class and use the public one from the platform.

Change-Id: I35185bbc9de551cacd6aaca3d12952f04c80d34e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26165
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Add a TextTraceEvent for text traces
Alexandre Montplaisir [Tue, 6 May 2014 20:50:07 +0000 (16:50 -0400)] 
tmf: Add a TextTraceEvent for text traces

Also restricted some parameters and return values in TextTrace to
use TextTraceEvent and TextTraceContext instead.

Change-Id: Iaec0c5c00cf479666f88b8042923de73df49bca5
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26077
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Restore TextTraceEventContent.getField(int)
Alexandre Montplaisir [Tue, 6 May 2014 18:02:10 +0000 (14:02 -0400)] 
tmf: Restore TextTraceEventContent.getField(int)

Commit 0554e04 moved the notion of field indexes down from the
framework into the TextTraceEventContent. Since this class keeps
the getFieldName(int) convenience method, getField(int) should
also remain there.

Change-Id: I5c30c18d605b6ee75e1867966a4fb8fdd5cdf2cd
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26069
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Persist recent used directories in import wizard
Bernd Hufmann [Tue, 6 May 2014 17:51:40 +0000 (13:51 -0400)] 
tmf: Persist recent used directories in import wizard

Change-Id: I3f8f76329d2a9d9e440631f5467a81ad6bc752b3
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26070
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: persist dialog option for folders creation in import wizard
Bernd Hufmann [Tue, 6 May 2014 16:57:35 +0000 (12:57 -0400)] 
tmf: persist dialog option for folders creation in import wizard

Change-Id: If4c866b3457cbb1178c4d6507f7d2f4d15e6cd46
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26055
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Option to preserve folder structure in legacy import
Marc-Andre Laperle [Fri, 2 May 2014 21:23:03 +0000 (17:23 -0400)] 
tmf: Option to preserve folder structure in legacy import

Change-Id: I848c76db0153bf2b58937590299b914e01c1cd35
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25896
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoMore tabs to spaces, trailing space removal.
Andrew Ferrazzutti [Fri, 2 May 2014 14:34:09 +0000 (10:34 -0400)] 
More tabs to spaces, trailing space removal.

Change-Id: Ib7611d2160cb88ca41a9a2a1a874fc16c5aaf830
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25882
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
10 years agotmf: Some fixes to folder handling in synchronization
Marc-Andre Laperle [Mon, 5 May 2014 19:51:00 +0000 (15:51 -0400)] 
tmf: Some fixes to folder handling in synchronization

Change-Id: I4d366b53e4cd2b3bfdc8504fba5cebe1b5f254f1
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25993
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoTMF: Synchronize traces on their host ID instead of trace name
Geneviève Bastien [Fri, 11 Apr 2014 19:23:46 +0000 (15:23 -0400)] 
TMF: Synchronize traces on their host ID instead of trace name

This allow to synchronize traces with identical names, and will have the
side-effect that different traces from the same host will be automatically
synchronized with the same formula.

Change-Id: Ifbf8da91d581e1cee3c699bd976b1437e661830b
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/24983
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Use latest license feature for tmf.ctf
Marc-Andre Laperle [Sat, 3 May 2014 17:35:09 +0000 (13:35 -0400)] 
tmf: Use latest license feature for tmf.ctf

Change-Id: I603e148c89a525fe8b24f821653bb85650bc855c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25917
Tested-by: Hudson CI
10 years agoTMF: Implementation of LttngKernelAnalysis requirements
Guilliano Molaire [Wed, 23 Apr 2014 17:00:03 +0000 (13:00 -0400)] 
TMF: Implementation of LttngKernelAnalysis requirements

The events needed by the analysis are added as requirements.

Change-Id: I4f8930815d8c3a088986ada4dfffb9b737d25af0
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Signed-off-by: Mathieu Rail <contact@mathieurail.com>
Reviewed-on: https://git.eclipse.org/r/23423
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoctf: fix incosistent synchronization of location in context
Matthew Khouzam [Fri, 25 Apr 2014 14:15:01 +0000 (10:15 -0400)] 
ctf: fix incosistent synchronization of location in context

sonar warning :  Inconsistent synchronization of org.eclipse.linuxtools.tmf.ctf.core.CtfTmfContext.fCurLocation; locked 54% of time

Change-Id: I9f8b871d56c8c1e67dec31d929ca81b7410e6c17
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25562
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Modernize ITmfEventField
Alexandre Montplaisir [Mon, 28 Apr 2014 22:49:40 +0000 (18:49 -0400)] 
tmf: Modernize ITmfEventField

Remove the notion of field indexes. Fields should be accessed by
name, not by arbitrary numerical value. Replace all arrays in the
API by Collection<String>. (Iterable would have been better but
many places made use of .size(), didn't want to break too much
things).

However, TextTraceEventContent made heavy use of field indexes.
Left this behavior as-is, by simply returning a List instead and
making those methods specific to this implementation.

Also fixes bug #433801.

Change-Id: I889355f86a3141d92ff2af3f30afec13f05152dd
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25761
Tested-by: Hudson CI
10 years agoTMF: Implementation of UstMemoryAnalysisModule requirements
Guilliano Molaire [Wed, 23 Apr 2014 17:15:23 +0000 (13:15 -0400)] 
TMF: Implementation of UstMemoryAnalysisModule requirements

The events needed by the analysis are added as requirements. We also add the
information that the libc with probes should be loaded prior to starting the
trace session.

Change-Id: Idcfb13d7ae43bb73f6631c12f4eeb52fe74976d5
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/23424
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoctf: minor LexicalScope fixups
Matthew Khouzam [Fri, 2 May 2014 03:05:24 +0000 (23:05 -0400)] 
ctf: minor LexicalScope fixups

Two mislabelled scopes were fixes

Change-Id: I2a44d3fda57551f84a320432493c1e1d1cb61e8f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25859
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agolttng: Add Lttng relayd connector
Matthew Khouzam [Fri, 18 Apr 2014 18:11:37 +0000 (14:11 -0400)] 
lttng: Add Lttng relayd connector

This allows connections to the lttng session daemon so that live trace
reading can work.

(rebased on lttng: Rename lttng2 feature/plugins to lttng2.control)

Conflicts:
Everything

(then rebased on ctf: immutable events)

LttngRelaydConsumer updated

Change-Id: Ida7f76f09d3f01a25b67cc552cb5869dc5e4c3a4
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23564
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agoctf: Make events immutable
Matthew Khouzam [Fri, 21 Mar 2014 22:14:03 +0000 (18:14 -0400)] 
ctf: Make events immutable

This patch does some major changes to the ctf parser

The event definitions are now immutable and can no longer be modified.
The declarations will read the bitbuffer and then create event
definitions. The event definitions are going to have fields. Initial
tests show a slight speedup but the parser is 66% slower without
eclipse.

Change-Id: I52b8c0de9776fa7cd2b333628c2bb6d3dd2c86ac
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23740
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoctf: potential memory optimization
Matthew Khouzam [Tue, 11 Mar 2014 20:09:14 +0000 (16:09 -0400)] 
ctf: potential memory optimization

This patch leads to a 300x memory improvement in lttng kernel traces
but a performance regression.

Change-Id: I655fa7b8ae94d742ee79d879bbbb5b2ddeec1374
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23221
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agoRemove swtbot workaround for Kepler SR1
Marc-Andre Laperle [Wed, 16 Apr 2014 14:05:26 +0000 (10:05 -0400)] 
Remove swtbot workaround for Kepler SR1

We don't need the profiles anymore because SWT_GTK3=0
behaves as it should in Kepler SR2.

Change-Id: I67f0f44defc3fd743e37cf33a5f299db1faa9d3c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25130
Tested-by: Hudson CI
10 years agotmf: Re-enable SWTBot tests that now pass
Marc-Andre Laperle [Thu, 24 Apr 2014 02:35:39 +0000 (22:35 -0400)] 
tmf: Re-enable SWTBot tests that now pass

Change-Id: I9b0ef07302e5fd8a9e48e9df1fa692b0d2cdfed5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25455
Tested-by: Hudson CI
10 years agoTMF: Add an analysis requirement helper
Guilliano Molaire [Mon, 21 Apr 2014 15:07:29 +0000 (11:07 -0400)] 
TMF: Add an analysis requirement helper

The helper can get lists of requirement values from one or several analysis
requirement providers.

Change-Id: I30ab18a04aa17eda1cc49e8e6332690ae4bf6528
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Signed-off-by: Mathieu Rail <contact@mathieurail.com>
Reviewed-on: https://git.eclipse.org/r/25589
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agotmf: Use selected destination trace folder in Batch Import wizard
Patrick Tasse [Wed, 23 Apr 2014 21:23:24 +0000 (17:23 -0400)] 
tmf: Use selected destination trace folder in Batch Import wizard

However if a project is selected in the last wizard page, the
destination is set to that project's "Traces" folder.

Change-Id: If383ed8291c8eb7ba3e88079b1fa0cfd8586ebc4
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25442
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Remove unnecessary global action handlers
Bernd Hufmann [Thu, 24 Apr 2014 13:08:54 +0000 (09:08 -0400)] 
tmf: Remove unnecessary global action handlers

These actions were no longer necessary since the menu contributions were
changed to use the global command ids in commit 9625626.

The Delete action is also removed from the context menu when the
selection contains a mix of traces, folders or experiments.

Change-Id: I24a714f3935b09616e8f74e2970ba19981dc143c
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25441
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Support open trace to selected trace folder
Patrick Tasse [Wed, 23 Apr 2014 18:40:51 +0000 (14:40 -0400)] 
tmf: Support open trace to selected trace folder

Make the Open Trace File and Open Trace Directory commands import the
trace to the selected folder instead of the project's "Traces" folder.

Also fixed link validation to accept INFO and WARNING return status.

Change-Id: I870431335d40df43a180ec6400aaddc24d2d0117
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25440
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Update drag and drop to support trace folders
Patrick Tasse [Mon, 21 Apr 2014 21:25:30 +0000 (17:25 -0400)] 
tmf: Update drag and drop to support trace folders

- Support drag and drop to any trace folder

- Support drag and drop from any trace folder

- Fix drag and drop to experiment from external source of a trace
already in project

- Fix unnecessary creation of target supplementary folder when source
doesn't have a supplementary folder

- Align trace rename scheme with import wizard

Change-Id: I2da1c3ce5b8b4f638dfd89ebb478f809fd6f13d2
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25329
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Support folders in tracing projects
Patrick Tasse [Wed, 16 Apr 2014 17:18:48 +0000 (13:18 -0400)] 
tmf: Support folders in tracing projects

- Modify TmfTraceFolder to allow child TmfTraceFolder

- Create TmfTracesFolder sub-class for the unique traces folder

- Add ITmfTrace.initTrace() signature to support trace name

- Use element path for trace name

- Add New Folder command that applies to all trace folders

- Support Rename and Delete command on trace folders

- Update Rename Trace and Delete Trace commands to support traces under
trace folders

- Move Rename Trace workspace handling from dialog to handler class

- Update Select Traces command and its dialog to support traces under
trace folders

- Update Events editor initialization to support traces under trace
folders

- Update editor link helper to support traces under trace folders

- Refactor getProject() method on project model elements

- Update navigator label provider to show element path for traces under
experiments

- Create TmfViewerSorter to prioritize folders over traces and traces
over analyses

- Change Select Supplementary Files dialog to show element path

- Change supplementary folder handling to support traces under trace
folders and to create folders only if necessary

Change-Id: I3b68bb389b5e0b0bf894eb34affada98b117fb31
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25324
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng: Rename lttng2 feature/plugins to lttng2.control
Alexandre Montplaisir [Thu, 24 Apr 2014 20:36:51 +0000 (16:36 -0400)] 
lttng: Rename lttng2 feature/plugins to lttng2.control

Change-Id: I4e62711ad2a4355758aff4e8dd4dafdd86f91a98
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25525
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng: Add a diagram showing the dependencies between plugins
Alexandre Montplaisir [Thu, 24 Apr 2014 19:57:18 +0000 (15:57 -0400)] 
lttng: Add a diagram showing the dependencies between plugins

Can be useful to newcomers and veterans alike.

Change-Id: If07277c252813c80252097a0c9d224ba754d3641
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25519
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoTMF: Add support for requirements in AnalysisModuleTestHelper
Guilliano Molaire [Mon, 21 Apr 2014 14:48:58 +0000 (10:48 -0400)] 
TMF: Add support for requirements in AnalysisModuleTestHelper

Implementation of getRequirements and getValidTraceTypes in the analysis module
test helper so it can be used by test cases. An analysis requirement factory
has been added for the same purpose.

Change-Id: Ibfb3c9beb28893b77a2b80453b3ea75d407105a9
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/24284
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoTMF: Implement analysis requirements for config element helpers
Mathieu Rail [Sun, 30 Mar 2014 23:03:32 +0000 (19:03 -0400)] 
TMF: Implement analysis requirements for config element helpers

Change-Id: I4c467ecba03c9fa5ef886cf328d60ec9249b8841
Signed-off-by: Mathieu Rail <contact@mathieurail.com>
Reviewed-on: https://git.eclipse.org/r/24286
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoTMF: Possibility to generate a session configuration from a ISessionInfo
Guilliano Molaire [Wed, 23 Apr 2014 16:51:11 +0000 (12:51 -0400)] 
TMF: Possibility to generate a session configuration from a ISessionInfo

With this feature we are able to generate a XML session configuration which
can be used to recreate a trace session on the target side.

Change-Id: I9786f322842b5166376f67d522907fa6bdc84edb
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/23425
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoTMF: speed up XML view entry start and end time queries
François Rajotte [Fri, 25 Apr 2014 21:56:22 +0000 (17:56 -0400)] 
TMF: speed up XML view entry start and end time queries

Change-Id: I6ad6a2484cd569fe0d1ce8a6f7449aba924f4578
Signed-off-by: François Rajotte <francois.rajotte@polymtl.ca>
Signed-off-by: Florian Wininger <florian.wininger@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/25598
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoLTTng: Remove dependency to LttngKernelTrace in Lttng Kernel analysis module
Geneviève Bastien [Tue, 22 Apr 2014 19:53:30 +0000 (15:53 -0400)] 
LTTng: Remove dependency to LttngKernelTrace in Lttng Kernel analysis module

The helper's appliesToTraceType and the analysis's canExecute methods already
verify if a trace has the necessary requirements to be able to execute the
analysis and it shouldn't matter if it's not the same class.

Also added a unit test that tests the execution of the analysis itself.

Change-Id: Ifeb9ce54165c2ad2d8b8258c3f465a18433c4969
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/25381
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
10 years agotmf: HTNode coding style improvement.
Florian Wininger [Thu, 24 Apr 2014 17:30:29 +0000 (13:30 -0400)] 
tmf: HTNode coding style improvement.

Change-Id: I9f298cdff2d583a738d7926ad5ba2b0fcd07bd9d
Signed-off-by: Florian Wininger <florian.wininger@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/25512
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng: Use SWTBot test runner to capture screenshots on failure
Marc-Andre Laperle [Thu, 24 Apr 2014 02:03:55 +0000 (22:03 -0400)] 
lttng: Use SWTBot test runner to capture screenshots on failure

Change-Id: I19315bc959bea3d2aa708be1cb6c0183ca7d9dd5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25454
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoRemove old 2011 license stuff from all feature.properties files
Jeff Johnston [Fri, 25 Apr 2014 19:18:48 +0000 (15:18 -0400)] 
Remove old 2011 license stuff from all feature.properties files

- tycho adds the license info automatically to the feature.properties
  files that end up in the output jar files

Change-Id: Ic6d32db0c2cea75c06fb811674ec82b2026d5943
Reviewed-on: https://git.eclipse.org/r/25585
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
10 years agoChange tabs to spaces; elim trailing whitespace.
Andrew Ferrazzutti [Fri, 25 Apr 2014 14:05:37 +0000 (10:05 -0400)] 
Change tabs to spaces; elim trailing whitespace.

To comply with Sonar style requirements, replace all tab characters
with four whitespace characters/spaces, and remove all trailing
whitespace. Perform this change to all Java and XML files.

Also replace tabs with "\t" in test strings that require tabs,
and edit STPIndenterTest so that it doesn't rely on indented comments.

Change-Id: I48c3c5449a58fe5310967d998a05df1a28fbcbb0
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25561
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
10 years agoctf: java 8 compliance of javadoc
Matthew Khouzam [Fri, 25 Apr 2014 17:30:35 +0000 (13:30 -0400)] 
ctf: java 8 compliance of javadoc

Change-Id: I9ad7d732f606365bcdef1608b7c98c6577558e25
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25579
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotracing rcp: update versions to 1.0
Bernd Hufmann [Thu, 10 Apr 2014 20:01:09 +0000 (16:01 -0400)] 
tracing rcp: update versions to 1.0

Change-Id: If166123d8505ae09cdc34b563930edcb381821e4
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/24859
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
10 years agoRevert "TMF: Add an analysis requirement helper"
Alexandre Montplaisir [Fri, 25 Apr 2014 19:35:32 +0000 (15:35 -0400)] 
Revert "TMF: Add an analysis requirement helper"

This reverts commit 13df50ce83e1c57b7d3750a9da8e055b6be3f1d2.

Change-Id: I0919eca8a998457166e0105185a73779dab622f7
Reviewed-on: https://git.eclipse.org/r/25588
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agoTMF: Add an analysis requirement helper
Guilliano Molaire [Mon, 21 Apr 2014 15:07:29 +0000 (11:07 -0400)] 
TMF: Add an analysis requirement helper

The helper can get lists of requirement values from one or several analysis
requirement providers.

Change-Id: I16287dd1bbaf99a7f15767ef7d044a81e48457dc
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Signed-off-by: Mathieu Rail <contact@mathieurail.com>
Reviewed-on: https://git.eclipse.org/r/24285
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years agoreleng: add LTTng RCP features to Linux Tools update sites
Bernd Hufmann [Thu, 10 Apr 2014 20:00:08 +0000 (16:00 -0400)] 
releng: add LTTng RCP features to Linux Tools update sites

This will allow users to base a customized RCP on the standard tracing
RCP.

Also update lisence information and update site reference in the
RCP features and plug-ins.

Change-Id: I0927095a6818f7a4079c0be05dd7c19e0b22a557
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/24858
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Split the state system in a separate plugin
Alexandre Montplaisir [Mon, 21 Apr 2014 21:03:14 +0000 (17:03 -0400)] 
tmf: Split the state system in a separate plugin

TMF will depend on this new plugin, but it will allow the state
system infrastructure to be used outside of TMF.

No need for a new feature though, since this is not a user-visible
feature (the TMF feature will include this new plugin).

Change-Id: Ie69b15fef325a126cf9606bb0f2250771861f74f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25332

10 years agoctf: Don't include all test traces in jar
Marc-Andre Laperle [Fri, 25 Apr 2014 14:30:29 +0000 (10:30 -0400)] 
ctf: Don't include all test traces in jar

Change-Id: Icb6a85f897ec2fe0aa8c3a116edd5ae9a76cb8a3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25563
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoctf: make MetadataPacketHeader more inline with coding style
Matthew Khouzam [Fri, 25 Apr 2014 02:55:53 +0000 (22:55 -0400)] 
ctf: make MetadataPacketHeader more inline with coding style

This fixes some sonar warnings

Change-Id: I67b401823d28cedf84d164af8ffe8a6fa01b6afe
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25531
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
10 years agolttng: clear CPU Usage view when closing a trace (bug 433191)
Bernd Hufmann [Wed, 23 Apr 2014 11:45:41 +0000 (07:45 -0400)] 
lttng: clear CPU Usage view when closing a trace (bug 433191)

Change-Id: Ifc0b82606992e32d465d5e0a09abcb27d62e27fa
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25401
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng: Dispose CpuUsageView properly (bug 433212)
Bernd Hufmann [Tue, 22 Apr 2014 19:57:28 +0000 (15:57 -0400)] 
lttng: Dispose CpuUsageView properly (bug 433212)

Change-Id: Icf14fd5ae9ab9121171216d1b476df209b0a7c9e
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25380
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoReplace feature licenses with new 2014 license.
Jeff Johnston [Thu, 24 Apr 2014 19:20:30 +0000 (15:20 -0400)] 
Replace feature licenses with new 2014 license.

Change-Id: Ib5471ff3a6f4dc66fd6e42038574b42a0d62d612
Reviewed-on: https://git.eclipse.org/r/25515
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
10 years agoRevert "ctf: make MetadataPacketHeader more inline with coding style"
Matthew Khouzam [Fri, 25 Apr 2014 02:48:17 +0000 (22:48 -0400)] 
Revert "ctf: make MetadataPacketHeader more inline with coding style"

This reverts commit 2ce5d7294581df7698ccd84f86ebd4d5ab11b392.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agolttng: Add test suite to run all SWTBot tests
Marc-Andre Laperle [Wed, 23 Apr 2014 23:13:10 +0000 (19:13 -0400)] 
lttng: Add test suite to run all SWTBot tests

Also fix a refresh problem that occured while
running the new suite.

Change-Id: If21127aaee72acffd533203c6fd5e2fce3274330
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25453
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agolttng: Don't call parse event unless necessary
Matthew Khouzam [Thu, 17 Apr 2014 19:25:14 +0000 (15:25 -0400)] 
lttng: Don't call parse event unless necessary

Getting the even content will slow down parsing with lazy loaded
events and should only be done as needed.

Change-Id: Id7b3e39b5ad05459769a8679c5347413721ff9ba
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25235
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agoctf: make MetadataPacketHeader more inline with coding style
Matthew Khouzam [Fri, 25 Apr 2014 02:05:08 +0000 (22:05 -0400)] 
ctf: make MetadataPacketHeader more inline with coding style

Change-Id: Icafec1945eeb7edbe579a2fc05b20f4f0da7176e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agoTMF: Introduce the XML state system view for data driven outputs
Florian Wininger [Mon, 10 Mar 2014 19:42:47 +0000 (15:42 -0400)] 
TMF: Introduce the XML state system view for data driven outputs

Change-Id: I3ecf738e918be7b52075706f85c3f842c737b712
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Florian Wininger <florian.wininger@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/23161
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Implement toString() for project model elements
Patrick Tasse [Tue, 22 Apr 2014 13:23:09 +0000 (09:23 -0400)] 
tmf: Implement toString() for project model elements

Helps debugging.

Change-Id: Ic63193345bf4c48ef5b2fa3328f37a1115f9a18b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25351
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Fix another TimeRangeException in TmfStateStatistics
Patrick Tasse [Thu, 17 Apr 2014 14:32:54 +0000 (10:32 -0400)] 
tmf: Fix another TimeRangeException in TmfStateStatistics

The exception occurs when the requested range is completely out of the
range of the state system, for example with an experiment containing two
traces that do not intersect.

Also changed exception handling so that StateSystemDisposedException is
ignored, and runtime exceptions are not caught.

Change-Id: Icbe242c7c875ebe7873b0ce88b09499444bc8e00
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25212
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf : Add Leaf nodes to the History Tree
Florian Wininger [Thu, 10 Apr 2014 22:36:31 +0000 (18:36 -0400)] 
tmf : Add Leaf nodes to the History Tree

This patch allows the use of leaf nodes in the History Tree. A leaf node
cannot contain children, so we can save 50 x (int + long) = 600 bytes
for each node (64k).

Note that this patch changes the on-disk file format of the history tree.
FILE_VERSION is bumped accordingly.

Change-Id: I4d99727a23fcdfbdd911fd27c621354864ebfde1
Signed-off-by: Florian Wininger <florian.wininger@polymtl.ca>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/24791
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
10 years ago[tmf] NPE when renaming a trace with no trace type when inside an experiment
Marc-Andre Laperle [Mon, 21 Apr 2014 21:55:45 +0000 (17:55 -0400)] 
[tmf] NPE when renaming a trace with no trace type when inside an experiment

Bug: 433161
Change-Id: If56a288d9b4d16df9dd827a4b016e4970eff2cc2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25330
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng: Add filtering textbox to the event selection composites
Marc-Andre Laperle [Tue, 15 Apr 2014 04:19:11 +0000 (00:19 -0400)] 
lttng: Add filtering textbox to the event selection composites

Change-Id: I9de3eb026841b4fb7a85ba14305c569e7e9a24aa
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25019
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agolttng: Work around UI thread sleeping forever on Mac in tests
Marc-Andre Laperle [Wed, 23 Apr 2014 18:06:25 +0000 (14:06 -0400)] 
lttng: Work around UI thread sleeping forever on Mac in tests

bug: 415992
Change-Id: I43ff1961eb02c9978a9650d39fcbff9d018e9ccd
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25443
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Wait until shell is active in swtbot test
Marc-Andre Laperle [Wed, 23 Apr 2014 05:28:47 +0000 (01:28 -0400)] 
tmf: Wait until shell is active in swtbot test

Change-Id: Ia7a4a14048ae919717cf17ea3ec095ea212c7b1e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25385
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agotmf: Experiment performance benchmark
Matthew Khouzam [Fri, 11 Apr 2014 21:16:59 +0000 (17:16 -0400)] 
tmf: Experiment performance benchmark

Change-Id: Id1994474b2cf479e00d5482e1aa2c170e5ce4ba2
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/24885
Tested-by: Hudson CI
10 years agoTMF: Add an XML model factory and classes for read-only state system components
Geneviève Bastien [Mon, 10 Mar 2014 19:38:44 +0000 (15:38 -0400)] 
TMF: Add an XML model factory and classes for read-only state system components

Factory for XML model element used in a read-only context. The state attributes
will not be added to the state system.

Change-Id: Ibfb5a35ecbc723ecc12c47c6461a389d5290e918
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/23160
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years agotmf: Fix deadlock in analysis module
Patrick Tasse [Mon, 21 Apr 2014 14:21:13 +0000 (10:21 -0400)] 
tmf: Fix deadlock in analysis module

Deadlock occurred when renaming a trace while its analyses are ongoing.

The refresh of supplementary folders is now done outside of the analysis
synchronization lock.

It is not necessary to trigger the refresh when cancel() is called,
since it will be triggered when the analysis execution is completed
(whether it was cancelled or not).

Change-Id: Id65fe9d57fadab1d17096d7e20bb15f43d30f1c7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25323
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Temporarily disable hanging tests
Marc-Andre Laperle [Wed, 23 Apr 2014 17:31:53 +0000 (13:31 -0400)] 
tmf: Temporarily disable hanging tests

Change-Id: I88abd2b8a4e411a361592fb8e6239b942e164286
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25432
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
10 years agolttng-tmf: Update dependecies to new tmf.ctf feature
Bernd Hufmann [Tue, 22 Apr 2014 12:37:38 +0000 (08:37 -0400)] 
lttng-tmf: Update dependecies to new tmf.ctf feature

Change-Id: I3a9e8d544cfbc988704d15e891cdd92e736bebb6
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25344
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Fix NullPointerException in ControlFlowView
Patrick Tasse [Tue, 22 Apr 2014 16:57:41 +0000 (12:57 -0400)] 
tmf: Fix NullPointerException in ControlFlowView

This could happen if the state system is disposed while the BuildThread
is running.

Change-Id: I30f443eca7ef809f4abacc4ddc5e155576c500d5
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25376
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Add non-null annotations to TmfTraceClosedSignal
Alexandre Montplaisir [Thu, 17 Apr 2014 20:10:35 +0000 (16:10 -0400)] 
tmf: Add non-null annotations to TmfTraceClosedSignal

Small change to fix #418028, until we move the whole package to
NonNullByDefault.

Change-Id: I2533604e84a484d9c9315bcb6cb6a9eaeb21f2fe
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25237
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agolttng: Harmonize the compiler settings among all plugins
Alexandre Montplaisir [Tue, 15 Apr 2014 21:32:17 +0000 (17:32 -0400)] 
lttng: Harmonize the compiler settings among all plugins

Change-Id: I6136f619223781be3acd5b52ec4f4f47a0b3e5ce
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25093
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This page took 0.045559 seconds and 5 git commands to generate.