deliverable/tracecompass.git
10 years agolttng: Fix 3.8 and 4.2 target definition for null annotations
Marc-Andre Laperle [Fri, 6 Jun 2014 19:05:15 +0000 (15:05 -0400)] 
lttng: Fix 3.8 and 4.2 target definition for null annotations

Change-Id: Id8e5bac757dcfb6ae56a861b7f7868f238dfc174
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28155
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
10 years ago[TMF] Bug: 436513 Custom Parser manager: renaming create a new parser and a parser...
Jonathan Rajotte Julien [Thu, 5 Jun 2014 13:40:12 +0000 (09:40 -0400)] 
[TMF] Bug: 436513 Custom Parser manager: renaming create a new parser and a parser is created

Change-Id: I5750bc051737233dc5aa1b1960df55dbe9f26457
Signed-off-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27884
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
(cherry picked from commit d8757ff23eb659cc981f97ea319a1e1ca0b15960)
Reviewed-on: https://git.eclipse.org/r/28077

10 years agotmf: Bug 436751: NPE deleting unexpanded Tracing project
Patrick Tasse [Thu, 5 Jun 2014 20:52:57 +0000 (16:52 -0400)] 
tmf: Bug 436751: NPE deleting unexpanded Tracing project

Change-Id: Id3e7cb3cf7152a2e841366c7e3b90853236b9542
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28081
Tested-by: Hudson CI
(cherry picked from commit c9137e1c8cfb59bbe57677279b992f5ba0cfa864)
Reviewed-on: https://git.eclipse.org/r/28132

10 years agotmf: Bug 436738: NPE after deleting default custom parser
Patrick Tasse [Thu, 5 Jun 2014 18:09:02 +0000 (14:09 -0400)] 
tmf: Bug 436738: NPE after deleting default custom parser

- Reload the default custom parser (if it exists) after deleting any
custom parser

- Add null checks when getting a trace type helper from a trace type id

Change-Id: If2b947ff6ce18371e9fdbe5a68f02a1b650fc27a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28067
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
(cherry picked from commit ed74d892ad2dfaafd64c43b6a1b619d402780438)
Reviewed-on: https://git.eclipse.org/r/28075

10 years agoTMF: Add info for output extension point in analysis module documentation
Geneviève Bastien [Tue, 3 Jun 2014 19:27:47 +0000 (15:27 -0400)] 
TMF: Add info for output extension point in analysis module documentation

Change-Id: Ia6bf075226a58031d46954af98c192663b347177
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/27986
Tested-by: Hudson CI
10 years agoTMF: Bug 436576: Add null check on file field in XML state system module
Geneviève Bastien [Wed, 4 Jun 2014 12:53:07 +0000 (08:53 -0400)] 
TMF: Bug 436576: Add null check on file field in XML state system module

Change-Id: If3eca378edd8e050114c0b14eebc7f943e28e5c5
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/27929
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
(cherry picked from commit c3c922bd0a9373bae387ef9b8c80d90ed8a4db9c)
Reviewed-on: https://git.eclipse.org/r/27985

10 years agoctf: Only download test traces if integration-test will execute
Marc-Andre Laperle [Tue, 3 Jun 2014 21:45:46 +0000 (17:45 -0400)] 
ctf: Only download test traces if integration-test will execute

For example, if 'mvn package' is executed, the test traces don't
need to be downloaded but 'mvn install' does need them.

Change-Id: I75359969de7a706a29c91dc300a5e3a0ff0e143e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27885
Tested-by: Hudson CI
10 years agotmf-guide: Update view tutorial using latest code
Marc-Andre Laperle [Tue, 3 Jun 2014 20:13:23 +0000 (16:13 -0400)] 
tmf-guide: Update view tutorial using latest code

Change-Id: I78c0804750f2f5195a2b12ce8d8348a41f6b4992
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27877
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
(cherry picked from commit 9a572723bbd873eef657f2c40dc01924f3510775)
Reviewed-on: https://git.eclipse.org/r/27950

10 years agotmf-ctf: fix NPE in callsite handling (bug 436625)
Bernd Hufmann [Wed, 4 Jun 2014 19:11:27 +0000 (15:11 -0400)] 
tmf-ctf: fix NPE in callsite handling (bug 436625)

Change-Id: Iaaecf310226eeb84cfa30c69035eb8f34cda3c91
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27991
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28025
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
10 years agotmf-rcp: Fix NPE at startup with --open (bug 436239)
Bernd Hufmann [Fri, 30 May 2014 13:30:24 +0000 (09:30 -0400)] 
tmf-rcp: Fix NPE at startup with --open (bug 436239)

Change-Id: Ie393ae61f31c4610373d919e38100ca095c53562
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27585
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27812

10 years agolttng-control: Fix dialog layout problem with GTK3
Bernd Hufmann [Thu, 29 May 2014 18:19:20 +0000 (14:19 -0400)] 
lttng-control: Fix dialog layout problem with GTK3

This patch also works fine with GTK2.

Change-Id: Iaec37cb84ff2815a2a7777ac202a4d05ab78217d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27551
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27811

10 years agotmf: fix import of traces for type Generic CTF Traces (Bug 436383)
Bernd Hufmann [Mon, 2 Jun 2014 15:50:38 +0000 (11:50 -0400)] 
tmf: fix import of traces for type Generic CTF Traces (Bug 436383)

Change-Id: I5299858ba73573ca6a0cf10321b44d6601882c25
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27748
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27775
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
10 years agoSet next release to be 3.1.0.
Jeff Johnston [Fri, 30 May 2014 18:20:45 +0000 (14:20 -0400)] 
Set next release to be 3.1.0.

Change-Id: I4731f53db522baccec56da9d51e7a37dc8a71b64
Reviewed-on: https://git.eclipse.org/r/27612
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
10 years agotmf: Bug 436376: CustomXML Trace Parser Undefined behaviour on closely
Patrick Tasse [Mon, 2 Jun 2014 21:27:59 +0000 (17:27 -0400)] 
tmf: Bug 436376: CustomXML Trace Parser Undefined behaviour on closely

The Custom XML parser now properly handles element names which are a
truncation of another element's name.

Change-Id: I5bbf7d4832976fc75d8e60a9ebc0e09d1463bd51
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27771
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
(cherry picked from commit 33937d3c8a9f55f7f1505a6617cf978536a933ee)
Reviewed-on: https://git.eclipse.org/r/27853

10 years agotmf: Bug 436263: BufferedRandomAccessFile read does not return -1 on EOF
Patrick Tasse [Fri, 30 May 2014 20:54:48 +0000 (16:54 -0400)] 
tmf: Bug 436263: BufferedRandomAccessFile read does not return -1 on EOF

Change-Id: I06b056af1249604ec1113035c623a7da3eb90cbd
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27624
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
(cherry picked from commit acc60287f48004b0293305627040cdf31431b9fe)
Reviewed-on: https://git.eclipse.org/r/27852

10 years agotmf: Bug 421475: Inaccurate seek for traces with timestamp transform
Patrick Tasse [Fri, 16 May 2014 16:31:23 +0000 (12:31 -0400)] 
tmf: Bug 421475: Inaccurate seek for traces with timestamp transform

The CtfLocation now holds the original (untransformed) timestamp value.

Change-Id: I8f1b435469fd3c9ee32720fc367524d734abb145
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/26750
Tested-by: Hudson CI
10 years agotmf: Bug 436491: Fix Synchronize Traces handling
Patrick Tasse [Fri, 16 May 2014 20:12:15 +0000 (16:12 -0400)] 
tmf: Bug 436491: Fix Synchronize Traces handling

- Refresh supplementary files for each element as soon as they are
created.

- Dispose traces and experiment instances when they are no longer
needed.

- Update the experiment element traces only after instances have been
disposed.

- Fix TmfTraceElement.copy() to use the correct resource according to
its element path.

- Fix TmfTraceElement.copy() to avoid manually creating a new
TmfTraceElement and return the one created by the navigator resource
handler instead.

- Temporarily move synchronization.bin file during experiment update
then restore it to its original location.

Change-Id: I87b3be4dccaf2747fed70eabf63a2f521424b3cb
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/26761
Tested-by: Hudson CI
10 years agotmf: Bug 436258: Bookmark icon disappears on deletion even if there is
Patrick Tasse [Mon, 2 Jun 2014 18:04:21 +0000 (14:04 -0400)] 
tmf: Bug 436258: Bookmark icon disappears on deletion even if there is

The TmfEventsTable now supports many bookmarks for the same rank by use
of a multimap. The tool tip is updated to show multiple bookmarks. The
remove and toggle bookmark actions now remove all bookmarks.

Change-Id: Ic22430ed642190e0c7dc58516d7f6759390329ca
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27746
Tested-by: Hudson CI
(cherry picked from commit 671ac2131c879eba57ca86ab80ee86e5b0c5c554)
Reviewed-on: https://git.eclipse.org/r/27924

10 years agotmf: Fix tracetypeui type/experiment elements unnamed in the PDE editor
Patrick Tasse [Fri, 30 May 2014 13:51:15 +0000 (09:51 -0400)] 
tmf: Fix tracetypeui type/experiment elements unnamed in the PDE editor

When an extension point element has many attributes we have to specify
which one to use as label in the PDE editor.

Change-Id: I5d4ad2dafbb3173217df1ac4bf2c1e43bcbb3cbf
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27586
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
(cherry picked from commit 8acaefc99983781120298365ffbfcb6e19d0bf2c)
Reviewed-on: https://git.eclipse.org/r/27854

10 years agolttng-guide: Update for trace folders and removal of batch importing
Patrick Tasse [Wed, 28 May 2014 21:17:27 +0000 (17:17 -0400)] 
lttng-guide: Update for trace folders and removal of batch importing

Also, simplified all the anchor links

Change-Id: Ia91ea6238a31c4aba3f65c88cd9cab94a514f283
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27532
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
Reviewed-on: https://git.eclipse.org/r/27851

10 years agolttng-guide: Update LTTng Kernel Analysis section
Bernd Hufmann [Wed, 28 May 2014 18:46:53 +0000 (14:46 -0400)] 
lttng-guide: Update LTTng Kernel Analysis section

Update existing sections (e.g. Control Flow view) and add new section
for CPU Usage analysis and view.

Change-Id: Iee748e2c9837a101760a9b5531a9c0800273378a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27492
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
Reviewed-on: https://git.eclipse.org/r/27565
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoTMF: Add analysis requirement API documentation
Guilliano Molaire [Sat, 19 Apr 2014 18:58:16 +0000 (14:58 -0400)] 
TMF: Add analysis requirement API documentation

Change-Id: I275461c5514f9a09a46714ad4144a4d34e2d8d61
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
10 years agoTMF: Add documentation for the XML analysis
Geneviève Bastien [Fri, 25 Apr 2014 20:00:58 +0000 (16:00 -0400)] 
TMF: Add documentation for the XML analysis

Change-Id: I305649c313b33ad22b6bfce4e7b6be322d84c704
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
10 years agolttng-guide: Update Filters View section (cut, copy, paste)
Marc-Andre Laperle [Thu, 29 May 2014 04:38:18 +0000 (00:38 -0400)] 
lttng-guide: Update Filters View section (cut, copy, paste)

Change-Id: I5680bdb8f378d35e8bc614dfc20382338a288652
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27516
Reviewed-on: https://git.eclipse.org/r/27567
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agotmf: Fix error message when no trace type is set during open
Bernd Hufmann [Wed, 28 May 2014 19:37:45 +0000 (15:37 -0400)] 
tmf: Fix error message when no trace type is set during open

Change-Id: I87d7a039891af6dbc2e87ed290c8891d3046257f
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27496
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27538

10 years agolttng-guide: Update the Statistics section with percentages
Marc-Andre Laperle [Wed, 28 May 2014 19:30:15 +0000 (15:30 -0400)] 
lttng-guide: Update the Statistics section with percentages

Change-Id: Ic7b0ca1aaef69c4aff4a07791c87c55a38e652b9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27495
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27529

10 years agotmf-guide: update sequence diagram doc
Bernd Hufmann [Tue, 27 May 2014 19:08:53 +0000 (15:08 -0400)] 
tmf-guide: update sequence diagram doc

Change-Id: I8db7063b81c82ba25cf4f105a197c4240589efc2
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27407
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27438

10 years agolttng-guide: Update LTTng Tracer Control chapter
Bernd Hufmann [Tue, 27 May 2014 20:03:47 +0000 (16:03 -0400)] 
lttng-guide: Update LTTng Tracer Control chapter

The chapter was also moved on chapter level higher to make it more
visible.

Change-Id: Idb6989637b064c1289fdf5c9eab2bb03806825c5
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27408
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27418

10 years agolttng-control: Fix parsing and display of loglevels (bug 429193)
Bernd Hufmann [Mon, 26 May 2014 20:18:07 +0000 (16:18 -0400)] 
lttng-control: Fix parsing and display of loglevels (bug 429193)

Change-Id: If42746ae361c4e9fe6210c2e1c9f1b253060f58e
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27310
Tested-by: Hudson CI
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27409

10 years agotmf: Make CtfTmfTestTrace null-friendly
Alexandre Montplaisir [Mon, 26 May 2014 19:05:26 +0000 (15:05 -0400)] 
tmf: Make CtfTmfTestTrace null-friendly

Change-Id: I1450151fa8562ea52f66e7f1ad67c66c4bd354f9
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/27307
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 histogram label background to be theme-friendly
Patrick Tasse [Fri, 23 May 2014 17:31:34 +0000 (13:31 -0400)] 
tmf: Fix histogram label background to be theme-friendly

The histogram text controls are now labels and no longer have their
background color set so that they can naturally inherit from their
parent's background whenever the color changes due to active/inactive
view part according to the theme.

The histogram filler area now takes its color from the parent
composite's current background color whenever it is redrawn.

Change-Id: I81ea92863186749dac4e11002b29899d80c4b97a
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27214
Tested-by: Hudson CI
10 years agolttng: Sort the entries in the Resources View
Alexandre Montplaisir [Wed, 21 May 2014 22:26:47 +0000 (18:26 -0400)] 
lttng: Sort the entries in the Resources View

Make the ResourcesEntry Comparable, so that the view can specify
how they should be sorted when entries are added to the list.

This also works for entries that are being added while the trace
is being read ("live" reading).

Change-Id: I5a99652b5b755ea9f2e76e32167ad0d15b76a320
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/27071
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
10 years agotmf: Add percentage on Statistics view
Vincent Perot [Wed, 7 May 2014 13:45:56 +0000 (09:45 -0400)] 
tmf: Add percentage on Statistics view

Change-Id: I70a565611e230330bc147bb92575d6606aa89311
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26144
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
10 years agotmf: Make TmfTraceType static
Patrick Tasse [Fri, 23 May 2014 19:51:49 +0000 (15:51 -0400)] 
tmf: Make TmfTraceType static

Can avoid calling getInstance() for every code that uses it.

Change-Id: Ic239ab59c5b2c9bfff2bc9ff0dc38877792a9b45
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27221
Tested-by: Hudson CI
10 years agotmf: Fix custom parser wizard preview table
Patrick Tasse [Thu, 22 May 2014 15:56:01 +0000 (11:56 -0400)] 
tmf: Fix custom parser wizard preview table

Since the preview table is built using a temporary trace file with a
fixed name, its persistent index was not being rebuilt when the parser
and/or the preview input was changed.

The preview table is now built using a trace class implementation that
is overridden to use the in-memory checkpoint indexer.

Change-Id: I5cd04f26dea7ab005823317fed68130477bf8e0d
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/27124
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agotmf: hide Batch import wizard
Matthew Khouzam [Fri, 23 May 2014 20:03:05 +0000 (16:03 -0400)] 
tmf: hide Batch import wizard

Change-Id: I3d2b0f9187e3870cece8e37addaca3e3aeacdd19
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27222
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
10 years agoTMF: Display a help text for analyses from the helper
Geneviève Bastien [Fri, 9 May 2014 02:05:49 +0000 (22:05 -0400)] 
TMF: Display a help text for analyses from the helper

When an analysis cannot be executed, it used to show the same message as if the
trace was not opened. Now it displays a verbose message explaining why the
analysis cannot be executed.

Change-Id: I97f1a79ac5c76362ebb9764b95fc8a7af99f963b
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/26295
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agoTMF: Validate if an analysis can be executed using the requirements
Geneviève Bastien [Fri, 9 May 2014 02:04:53 +0000 (22:04 -0400)] 
TMF: Validate if an analysis can be executed using the requirements

Change-Id: If4b51af84c4fc3dc7541629b69e950b0cc54cb00
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/26294
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
10 years agoTMF: Strike-out analyses that cannot be executed
Geneviève Bastien [Thu, 8 May 2014 17:21:36 +0000 (13:21 -0400)] 
TMF: Strike-out analyses that cannot be executed

Also add an interface, ITmfStylecProjectModelElement to allow elements to
change the style of their text.

Change-Id: Iab0fa42b91539d5dbdd4a69917a2b35b3346ca05
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/26293
Tested-by: Hudson CI
10 years agotmf: internalize the trace import wizards
Bernd Hufmann [Thu, 15 May 2014 14:47:32 +0000 (10:47 -0400)] 
tmf: internalize the trace import wizards

Change-Id: I8f0fdf0c47da543f2545b81a77ee7f66cfe33e56
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26673
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agotmf: Move ImportTraceWizard messages in correct package
Bernd Hufmann [Thu, 15 May 2014 14:17:49 +0000 (10:17 -0400)] 
tmf: Move ImportTraceWizard messages in correct package

Change-Id: I90434653da549e94f5ea10940822930a41f7d20d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26672
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10 years agoDowngrade to Tycho 0.20.0 to fix build
Marc-Andre Laperle [Fri, 23 May 2014 17:43:42 +0000 (13:43 -0400)] 
Downgrade to Tycho 0.20.0 to fix build

Tycho 0.21.0-SNAPSHOT seems to fragile right now for us
to use for the Luna release. We needed 0.21 to work around
a bug in IcedTea but we can work around this issue by setting
the SWT_GTK3=0 environment variable when executing the build
instead of having it in the pom.xml. This is less convenient
but more prudent in order to stabilize the build.

Change-Id: I33fc64552c73a0cd8f2eac12fa27afab6af92557
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27213
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
10 years agoTMF: Remove XML header classes, they are not useful anymore
Geneviève Bastien [Mon, 10 Mar 2014 21:39:31 +0000 (17:39 -0400)] 
TMF: Remove XML header classes, they are not useful anymore

With the XmlUtils utility methods, there is no added value to wrap them in
a class and they are accessible from everywhere.

Change-Id: I66d15423ef4dadc18a77caef6af2d63faa426173
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/25584
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
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>
This page took 0.045425 seconds and 5 git commands to generate.