deliverable/tracecompass.git
9 years agotmf: lttngControl: mi: basic listing support
Jonathan Rajotte Julien [Thu, 31 Jul 2014 17:13:30 +0000 (13:13 -0400)] 
tmf: lttngControl: mi: basic listing support

Change-Id: I8ca572f88d5fff69c27c4f1f345187b3d71b5d0b
Signed-off-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30822
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agopcap: fix bug with importing from control view in windows
Matthew Khouzam [Mon, 25 Aug 2014 14:21:43 +0000 (10:21 -0400)] 
pcap: fix bug with importing from control view in windows

The path to import in windows was /c:/bla/blabla which causes a crash
in PcapTrace that uses java.nio.file.Path. This patch ensures that
the remote import passes a valid path string.

Change-Id: I3d51bb9e3229e08f327c0d385452acb8c169f6ba
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32240
Tested-by: Hudson CI
9 years agotmf: allow for list of validation patterns for text trace
Bernd Hufmann [Fri, 22 Aug 2014 15:03:04 +0000 (11:03 -0400)] 
tmf: allow for list of validation patterns for text trace

Change-Id: I34846b45e6b7e64edd7f1c18958089b508405278
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32166
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agolttng: Fix lttng.control upgrade from 3.0.0 to 3.x.0
Marc-Andre Laperle [Mon, 25 Aug 2014 19:51:49 +0000 (15:51 -0400)] 
lttng: Fix lttng.control upgrade from 3.0.0 to 3.x.0

Change-Id: Ie2f419e7bb461c4dfb73f5ea01d68ced261b765f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32269
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
9 years agopcap: remove stream list analysis for experiments
Bernd Hufmann [Fri, 22 Aug 2014 12:21:05 +0000 (08:21 -0400)] 
pcap: remove stream list analysis for experiments

The Stream List View doesn't support experiments right now. Also, the
analysis is per trace and not per experiment. The Stream List View
needs to be updated to fill the view with stream lists coming from
each child pcap trace.

Change-Id: Id0cb112ba64ba2d7aa5385ee2f9d2821d301b5cb
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32144
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agoctf: improve unit tests
Matthew Khouzam [Wed, 20 Aug 2014 03:08:08 +0000 (23:08 -0400)] 
ctf: improve unit tests

There were several recent changes introduced
to the ctf parser without fixing the test suite.
This patch brings the tests up to date and coverage up to 78%

Change-Id: I38b0f09d4005934d7a05d8cc3384ee7767bbd321
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31936
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoctf: replace HashMaps with ArrayLists for EventDeclaration storage
Matthew Khouzam [Wed, 9 Jul 2014 19:29:04 +0000 (15:29 -0400)] 
ctf: replace HashMaps with ArrayLists for EventDeclaration storage

Parser no longer supports events with IDs larger than Integer.MAX_VALUE

Change-Id: I088943c5a041f16638cb89b832ab79f8ef9c1d76
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25924
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: Introduce ITmfEventTableColumns and its extension point
Alexandre Montplaisir [Fri, 8 Aug 2014 18:04:55 +0000 (14:04 -0400)] 
tmf: Introduce ITmfEventTableColumns and its extension point

Instead of accidentally specifying the whole event table, trace types
can now only define the columns they want. This allows more (most)
trace types to use the default TmfEventsTable, which in turn allows more
trace types to be "aggregated" together in one table when put together
in the same experiment.

The previous "eventsTableType" extension remains there,
 1) for compatibility purposes, but also
 2) for trace types that do very specific things with their event
    table and need to override the default one (ie, GdbTrace).

If a trace type provides both extension points, we'll first try to give
it its event table (ignoring the ITmfEventTableColumns info), and if we
can't because we're within an experiment for instance, then we'll fallback
to just use the columns.

Change-Id: Ie0c7fc9af62dc79aa3add8a605e02455e0df30c4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31407
Tested-by: Hudson CI
9 years agotmf: Sort items in Select Trace Type menu
Patrick Tasse [Fri, 15 Aug 2014 19:55:22 +0000 (15:55 -0400)] 
tmf: Sort items in Select Trace Type menu

Categories sub-menus appear first, sorted alphabetically.
Uncategorized trace types appear last, sorted alphabetically.
Trace types in category sub-menus are not sorted and appear in the order
they are defined in their respective plug-in extension.

Change-Id: I87fe46b3c3a1e1d8ee490ef902d8244dde7801d2
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31778
Tested-by: Hudson CI
9 years agopcap: Cleanup protocol enums
Alexandre Montplaisir [Thu, 14 Aug 2014 21:21:24 +0000 (17:21 -0400)] 
pcap: Cleanup protocol enums

- Convert the Layer interface to an enum, merge with PcapProtocol
- Rework TmfPcapProtocol to not use .name() and .valueOf().

Change-Id: I3f61acf97ccdfbd9469a1f40fc3e9d74857e7afd
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31915
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agopcap: Rename Protocol to PcapProtocol
Alexandre Montplaisir [Mon, 18 Aug 2014 18:13:27 +0000 (14:13 -0400)] 
pcap: Rename Protocol to PcapProtocol

"Protocol" is a bit generic and can clash with many other types
of "protocols". Similarly, rename TmfProtocol to TmfPcapProtocol.

Change-Id: Id97624ccd37375065cf8df0e61aee98172872466
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31914
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agotmf: display name of custom parser in properties view
Bernd Hufmann [Mon, 18 Aug 2014 17:30:57 +0000 (13:30 -0400)] 
tmf: display name of custom parser in properties view

Change-Id: I8e2f9baf01fc9570d7d200d19ee299a3d14f709a
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31850
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agoctf: make id conversions in event headers safer
Matthew Khouzam [Wed, 13 Aug 2014 19:52:27 +0000 (15:52 -0400)] 
ctf: make id conversions in event headers safer

Change-Id: I4fcfb986f5e1ff0010fcd4b6692075c3dbfd175e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31569
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agopcap: Make all the packages internal
Alexandre Montplaisir [Fri, 15 Aug 2014 18:49:13 +0000 (14:49 -0400)] 
pcap: Make all the packages internal

The Pcap plugins are quite new and experimental, it's a bit early
to commit to a final API right now. Keep them internal for the
moment.

Change-Id: I4d01e2a9e493e20d1cc8d5b3065f5021f2632ddf
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31775
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: Support + and - keys for histogram zoom
Patrick Tasse [Fri, 15 Aug 2014 18:05:19 +0000 (14:05 -0400)] 
tmf: Support + and - keys for histogram zoom

Change-Id: I9b4edffb70743a7421fd6040d8b1525da59cebe1
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31773
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
9 years agotmf: enable swtbot pcap tests
Matthew Khouzam [Wed, 13 Aug 2014 03:21:51 +0000 (23:21 -0400)] 
tmf: enable swtbot pcap tests

Change-Id: I21ee396f3edd2e24a6610751ee47df982acdfacc
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31492
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
9 years agotmf: initial pcap smoke test
Matthew Khouzam [Wed, 13 Aug 2014 03:18:39 +0000 (23:18 -0400)] 
tmf: initial pcap smoke test

Change-Id: I9ec28d72d98620ccc7b16d94f4ad9798b744aa89
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31491
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
9 years agopcap: make test export packages
Matthew Khouzam [Wed, 13 Aug 2014 03:18:06 +0000 (23:18 -0400)] 
pcap: make test export packages

Change-Id: I084ed468ab6d6d5cfcae75e53a65dd88f2c08bf5
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31490
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
9 years agolttng: user guide for new behaviour of opening of unrecognized traces
Bernd Hufmann [Thu, 14 Aug 2014 18:49:30 +0000 (14:49 -0400)] 
lttng: user guide for new behaviour of opening of unrecognized traces

Change-Id: I8a79348950b034dfeb21a36b20a3d2ba5f30d7a7
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31729
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoTMF: Move timestamp transform to internal to avoid API breakage later
Geneviève Bastien [Fri, 15 Aug 2014 13:33:30 +0000 (09:33 -0400)] 
TMF: Move timestamp transform to internal to avoid API breakage later

The original timestamp transforms have been deprecated. The factory makes them
obsolete anyway.

Change-Id: I83d7fe9d2d78c93850e281d56d8201ea0f0b9177
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/31760
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
9 years agotmf: initial pcap swtbot test
Matthew Khouzam [Wed, 13 Aug 2014 02:18:17 +0000 (22:18 -0400)] 
tmf: initial pcap swtbot test

This test will verify that all the views are correctly spawned.

Change-Id: I30717970c4b1d453aef872bb34d5a2eb541f42ac
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31488
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agopcap: initial swtbot project
Matthew Khouzam [Wed, 13 Aug 2014 01:45:54 +0000 (21:45 -0400)] 
pcap: initial swtbot project

copy pasted from kernel ui swtbot. Will contain pcap specific tests.

Change-Id: Ic5bb371e99d156c6e6c509a5ee15c9020dc0f5ac
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31487
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agotmf: Use custom parser constants of TmfTraceType evereywhere
Bernd Hufmann [Fri, 15 Aug 2014 11:54:03 +0000 (07:54 -0400)] 
tmf: Use custom parser constants of TmfTraceType evereywhere

Change-Id: I165c289d5fa3394deee47b631dec45a202987bdc
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31748
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>
9 years agopcap: Convert filePath to java.nio.file.Path
Alexandre Montplaisir [Wed, 13 Aug 2014 23:11:54 +0000 (19:11 -0400)] 
pcap: Convert filePath to java.nio.file.Path

The new Java 7 API for handling file paths is quite versatile,
and much more robust (cross-platform, etc.) than dealing with
simple Strings.

One note: I removed the check to verify that the files end in
".cap" or ".pcap". While it would still have been possible to
do with Path.toString(), on Unix typically the file contents
indicates the type, not the extension.

Change-Id: I327272dd99b298ccd61c1e53d4ded4ed79885d1c
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31596
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agopcap: Fix null warning in ProtocolConversion
Matthew Khouzam [Wed, 13 Aug 2014 21:20:34 +0000 (17:20 -0400)] 
pcap: Fix null warning in ProtocolConversion

Rework the ProtocolConversion utility class to switch/case
through the existing values, instead of relying on
non-null-annotated methods.

Also updated the documentation.

Change-Id: I9de733029de08e976acca313a8ad4601d3db0a8b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/31588
Tested-by: Hudson CI
9 years agoLttng: Attempt to resolve SWTBot test failure.
Andrew Ferrazzutti [Thu, 14 Aug 2014 15:32:05 +0000 (11:32 -0400)] 
Lttng: Attempt to resolve SWTBot test failure.

ImportAndReadKernelSmokeTest.test() sometimes fails
on openTrace() due to not being able to find the editor
view for the trace. Attempt to suppress this error by
having the workbench bot wait for the editor.

Change-Id: I60e6fc90efa49913d4b90b13c9445fcbc44c2277
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/31681
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
9 years agotmf: open files without trace type with eclipse default editors
Bernd Hufmann [Wed, 6 Aug 2014 18:24:03 +0000 (14:24 -0400)] 
tmf: open files without trace type with eclipse default editors

Also, the navigator content label was changed to delegate the
icon selection for files without trace types to the platform.

This allows users to double-click on any file and it will open with
either as a trace type or as a file in the default editor.

Change-Id: I362dd31c4394bb00fea8ff33bc4843f799ffb3de
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31134
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agorcp: add pcap feature to tracing rcp
Bernd Hufmann [Thu, 14 Aug 2014 15:24:17 +0000 (11:24 -0400)] 
rcp: add pcap feature to tracing rcp

Change-Id: I4518f97372c4f8481684f3673d090577611aede5
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31679
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
9 years agopcap: Add feature plug-in
Matthew Khouzam [Wed, 13 Aug 2014 19:28:28 +0000 (15:28 -0400)] 
pcap: Add feature plug-in

This patch includes
* Integrated in lttng/pom.xml
* Updates for the releng on Linux Tools level and LTTng level.
* Updated version numbers for PCAP to 1.0.0 (not starting at 3.1.0)
* Exported icons in tmf.pcap.ui
* Updated plug-in dependencies

Change-Id: Ie6319a453350193a99050edc4a7b396b771d0b9d
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31563
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>
9 years agopcap: update groupId to org.eclipse.linuxtools.tmf.pcap
Vincent Perot [Thu, 14 Aug 2014 17:36:47 +0000 (13:36 -0400)] 
pcap: update groupId to org.eclipse.linuxtools.tmf.pcap

Change-Id: Ia2ba9363ffa4cc0df867b097e711d8aa26f86217
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31695
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agopcap: add pcap to the user guide
Vincent Perot [Wed, 13 Aug 2014 19:41:18 +0000 (15:41 -0400)] 
pcap: add pcap to the user guide

Change-Id: Ic043f2dd68e8f4893ba82a81f83d42128b7859b9
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31474
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>
9 years agopcap: update the developer guide
Vincent Perot [Tue, 12 Aug 2014 20:14:45 +0000 (16:14 -0400)] 
pcap: update the developer guide

Change-Id: I8322e19a4f54e903ef603f6b265e7c2341f244d8
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31473
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>
9 years agotmf: Fix and simplify State System Explorer viewer
Patrick Tasse [Thu, 24 Jul 2014 13:58:32 +0000 (09:58 -0400)] 
tmf: Fix and simplify State System Explorer viewer

- Simplify code and reduce the number of private methods
- Wait for initialization of state systems
- Make the viewer always detect new attributes on update
- Indicate refresh needed on visible range update only if new attributes
found
- Keep root, trace and state system entries on update in filter mode
- Avoid recomputing list of traces, analysis modules and state systems
at every update
- Highlight changed attributes in filter mode
- Implement toString() for tree viewer entries
- Expand tree to auto-expand level after refresh to show changed items
in filter mode

Change-Id: I4c7b9c6c6313733ee94ae9b4e800f78fe085ff64
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30538
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agolttng-control: Workaround for stderr problem in with SSH shell
Bernd Hufmann [Wed, 13 Aug 2014 19:32:48 +0000 (15:32 -0400)] 
lttng-control: Workaround for stderr problem in with SSH shell

The RSE ssh shell service uses JCraft's ChannelShell class which
doesn't provide the error stream. This causes problems when parsing
the error output for a special behaviour. For example, when a
the kernel provider is not available the command lttng list -k returns
an error message in the error stream "Kernel provider not available"
and has a non-zero return value. However, this error is ingored in the
Control view, since some users only use UST.

For MI integration, it's important that stdout and stderr is provided
separately.  This patch works for the MI integration, unless there
is mixture of stdout and stderr output for the case that a subset
of the command is successful and some fail (e.g. enable multiple
events). In that case the output has to treated in a special way.

Change-Id: I22f6aa98f36c80602d0f73c0d9a25ae5131ef16b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31570
Tested-by: Hudson CI
Reviewed-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoctf: add Event header data types
Matthew Khouzam [Sun, 4 May 2014 20:18:20 +0000 (16:18 -0400)] 
ctf: add Event header data types

This is a composite datatype described in the examples of the CTF spec,
section 6.1.1 . Right now, chances are that many people will re-use this pattern
so why not enhance its performance.

Change-Id: I2042be35fee38e42680691af879357ebb1aff95b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25937
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
9 years agoTMF: Do not keep event matches by default when no processing unit is set
Geneviève Bastien [Mon, 4 Aug 2014 21:22:07 +0000 (17:22 -0400)] 
TMF: Do not keep event matches by default when no processing unit is set

This reduces the memory footprint of even matching. Just counting the matches
is enough.

Change-Id: I7650fe55afc878b5afabf9b6cc0c9ec116026448
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/31003
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: collapse exceptions into easier to read multi-line
Matthew Khouzam [Mon, 11 Aug 2014 21:56:02 +0000 (17:56 -0400)] 
tmf: collapse exceptions into easier to read multi-line

Change-Id: Ib6302e976405383068ccc92eab69067ae97f96b0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31405
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agotmf: Do not expose TmfEventTableColumn in TmfVirtualTable
Alexandre Montplaisir [Thu, 7 Aug 2014 20:30:45 +0000 (16:30 -0400)] 
tmf: Do not expose TmfEventTableColumn in TmfVirtualTable

Change-Id: Iabfc690c5c09be1a58d63514ad0d22d7f0033db6
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31239
Tested-by: Hudson CI
9 years agoTMF: Remove the @Ignore from some performance tests
Geneviève Bastien [Mon, 11 Aug 2014 19:17:02 +0000 (15:17 -0400)] 
TMF: Remove the @Ignore from some performance tests

Change-Id: I6b2124d5d13b6e80feb5d97757e796c3e2a98552
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/31399
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agotmf: Add TmfEventTableColumn class
Alexandre Montplaisir [Tue, 29 Jul 2014 22:07:17 +0000 (18:07 -0400)] 
tmf: Add TmfEventTableColumn class

Introduce the concept of "event table column" objects. This
object will contain:
- The initial column configuration (previously in "ColumnData")
- The getItemString() "functor" defining how to populate the cell
  in this column for a given event.
- The "field ID" to allow searching/filtering to keep working as
  before. Eventually, the filtering mechanism could be reworked
  to just use getItemString() directly.

The base framework now defines 5 columns, that are available for
all trace types (whose getter methods are currently in ITmfEvent):
- Timestamp
- Source*
- Event Type
- Reference*
- Contents (fields)

(* = could eventually be removed, subject to future discussion)

Every trace type can now specify which columns it wants to display,
which may or may not include the default-provided ones.

This is the first step towards decoupling the trace type, event table,
and column order and number. This will eventually allow displaying all
the possible trace type columns in an experiment of heterogeneous traces.

Change-Id: I4ffdb0564114a92a58a271a7a99d3ca43fa57e31
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/30468
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agopcap: add tmf.pcap.core.tests to main pom.xml
Vincent Perot [Mon, 11 Aug 2014 20:12:59 +0000 (16:12 -0400)] 
pcap: add tmf.pcap.core.tests to main pom.xml

Change-Id: I0cc8e72e197b61b4c14b5be064c380d7981ffe55
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31401
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: make TmfConstantTransform serializable
Matthew Khouzam [Thu, 7 Aug 2014 13:31:23 +0000 (09:31 -0400)] 
tmf: make TmfConstantTransform serializable

Change-Id: I64c2748c747b94701e0de753d0140093c850fa5c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31190
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: Update the refresh handler
Patrick Tasse [Wed, 23 Jul 2014 14:58:08 +0000 (10:58 -0400)] 
tmf: Update the refresh handler

- Remove delay when the handler is not busy
- Allow any Object as source to allow a component to queue different
  types of update that don't cancel each other
- Only execute one update at a time to allow other (non-coalesced) UI
  runnables to execute between updates and to allow updates from other
  sources to be replaced while the handler is busy

Change-Id: I9af49d6a11e8e224bc7ff527ba592c238715c7d7
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30341
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Hudson CI
9 years agotmf: Fix Call Stack view empty for experiments
Patrick Tasse [Mon, 11 Aug 2014 14:32:32 +0000 (10:32 -0400)] 
tmf: Fix Call Stack view empty for experiments

Change-Id: I2c31486c8203616110e2d1fca54c8b077d4eec9e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31396
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agopcap: add unit tests to tmf.pcap
Vincent Perot [Wed, 23 Jul 2014 15:47:33 +0000 (11:47 -0400)] 
pcap: add unit tests to tmf.pcap

Change-Id: I81c12a8d75f99a61931a330e9d80896a77659002
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30533
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: Integration of the pcap parser within TMF
Vincent Perot [Tue, 5 Aug 2014 21:02:10 +0000 (17:02 -0400)] 
tmf: Integration of the pcap parser within TMF

Change-Id: I1f5cdac29ceaa8e513467965b889bf152d2f4edb
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28450
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agotmf: lttngControl: Separate STDERR from output and create errorOutput
Jonathan Rajotte Julien [Thu, 7 Aug 2014 18:16:04 +0000 (14:16 -0400)] 
tmf: lttngControl: Separate STDERR from output and create errorOutput

Refactoring of current function to adjust to change.
Modifications to test scenarios to support new error output

Change-Id: I457aeed7ae6aba1ce880339c5a9b7f55c6a0e232
Signed-off-by: Jonathan Rajotte Julien <jonathan.rajotte-julien@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31228
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoctf: reduce sonar warnings in IOStructGen
Matthew Khouzam [Thu, 7 Aug 2014 19:42:32 +0000 (15:42 -0400)] 
ctf: reduce sonar warnings in IOStructGen

Change-Id: I71e173ff92558930ff013e3969fd8e8cff0bfb0a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31234
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agotmf: Use validated time range in time graph range update event
Patrick Tasse [Tue, 5 Aug 2014 21:19:35 +0000 (17:19 -0400)] 
tmf: Use validated time range in time graph range update event

Could be out-of-range when using the zoom out tool bar button.

Change-Id: Ice6d57841283b070cdcad7f5e90d5aa331764df8
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31064
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoTMF: Fix trace synchronization memory performance test, to reduce variability
Geneviève Bastien [Mon, 4 Aug 2014 21:06:10 +0000 (17:06 -0400)] 
TMF: Fix trace synchronization memory performance test, to reduce variability

And document a bit more how to use the USED_JAVA_HEAP metric, so that it gives
accurate results.

Change-Id: Id776ab4cbd70f1f22bcfa9fc5efe95b97b6c4b77
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/30999
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoTmf: Get traces with the experiment when initializing state system viewer
Geneviève Bastien [Thu, 7 Aug 2014 01:32:41 +0000 (21:32 -0400)] 
Tmf: Get traces with the experiment when initializing state system viewer

It was already so for the update, but not in the initial build method

Change-Id: Iba38832b8e5acc6ab445491df7318bb166685297
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/31149
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agoTMF: bug 440998: Set active task to null in TmfRequestExecutor when completed
Geneviève Bastien [Fri, 1 Aug 2014 19:12:40 +0000 (15:12 -0400)] 
TMF: bug 440998: Set active task to null in TmfRequestExecutor when completed

This avoids keeping references to the request, which itself may contain
references to rather big objects.

Change-Id: Ib82fbea5cdc6b73a0a76d51bc2e960d0d223927a
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/30903
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>
9 years agopcap: remove some sonar critical issues for pcap.core
Vincent Perot [Wed, 30 Jul 2014 18:45:05 +0000 (14:45 -0400)] 
pcap: remove some sonar critical issues for pcap.core

Change-Id: Ifd96292525f9707a47fd4dd795880460a49ab67a
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30756
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9 years agotmf: Add SWTBot test for import from archive
Marc-Andre Laperle [Mon, 28 Jul 2014 05:09:08 +0000 (01:09 -0400)] 
tmf: Add SWTBot test for import from archive

Also delete projects at the end of tests to stabilize
a bit more the tests.

Change-Id: I151a7b78d75306ee71e74ae70e161e3af6ef78b8
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30626
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agopcap: make PacketStream compute useful information
Vincent Perot [Mon, 4 Aug 2014 20:53:05 +0000 (16:53 -0400)] 
pcap: make PacketStream compute useful information

The PacketStream now computes Nb of packets/bytes, duration of
the conversation, Bytes per seconds, etc. Also, it now does not
store indexes to packet, since it makes the size of PacketStream
proportional to the size of the trace. This is unwanted since we
have to be able to open traces that are bigger than memory.

Change-Id: I8f6bde99ceabc20c4a66786a2dbd25d49251cc9e
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30998
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: add addFilter method to FilterView
Vincent Perot [Tue, 5 Aug 2014 20:55:59 +0000 (16:55 -0400)] 
tmf: add addFilter method to FilterView

This is used by tmf.pcap when extracting a filter from a stream.

Change-Id: I4f44924a769b79cef8bf68b80a11cde407628b50
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31063
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: extract common elements in custom txt/xml trace definitions
Matthew Khouzam [Tue, 5 Aug 2014 18:54:15 +0000 (14:54 -0400)] 
tmf: extract common elements in custom txt/xml trace definitions

Change-Id: Ia381638636ea27f4b295537044f933ce2dcc8068
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31055
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agotmf: implement hashcode and equals on filter classes
Vincent Perot [Tue, 5 Aug 2014 20:55:13 +0000 (16:55 -0400)] 
tmf: implement hashcode and equals on filter classes

Change-Id: Ic72c475995aaf63f3cb2cff83c4a7de395543f30
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31062
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agobtf: throw an exception when the trace is deleted.
Matthew Khouzam [Tue, 5 Aug 2014 19:58:50 +0000 (15:58 -0400)] 
btf: throw an exception when the trace is deleted.

Change-Id: Ide85e535d1022e9d8a2d894b81bcd07f2b2886fb
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31057
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agotmf: Import from archive in the standard import wizard
Marc-Andre Laperle [Thu, 17 Jul 2014 18:53:03 +0000 (14:53 -0400)] 
tmf: Import from archive in the standard import wizard

Change-Id: I80caf396b8bf8cff2a7bc3824da83800097e1130
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30556
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: add constant offset synchronization algorithm and algorithm factory
Matthew Khouzam [Tue, 29 Jul 2014 17:26:37 +0000 (13:26 -0400)] 
tmf: add constant offset synchronization algorithm and algorithm factory

Change-Id: Ia5b2b49c0e49275b6fa78a16655325a57ab04725
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30687
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: Use the refresh handler for XML charts
Alexandre Montplaisir [Mon, 21 Jul 2014 21:32:11 +0000 (17:32 -0400)] 
tmf: Use the refresh handler for XML charts

Change-Id: Ibc4d455858d2fac4d2e70fc2d255dc505a9f8b58
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/30205
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoRevert "tmf: Make TmfTimePreferences completely static"
Alexandre Montplaisir [Mon, 4 Aug 2014 21:09:59 +0000 (17:09 -0400)] 
Revert "tmf: Make TmfTimePreferences completely static"

This reverts commit 8a7a5415a85e321e0cf7709e774a11fe8309f711.

API break, shouldn't go in yet.

Change-Id: I46bed2bf5c95f208ed4356299bd79013c7c9a253
Reviewed-on: https://git.eclipse.org/r/31000
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agotmf: Make TmfTimePreferences completely static
Alexandre Montplaisir [Tue, 15 Apr 2014 22:41:39 +0000 (18:41 -0400)] 
tmf: Make TmfTimePreferences completely static

Marking the class final shows us that all the methods can be marked
as static, since they do not use any internal fields. This means
the getInstance() itself is unneeded.

Change-Id: I9fedc2804e30769f5f0b91650b0bc670df7181cc
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/25087
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoCTF: Do not recalculate the single clock each time in CTFTrace#getClock()
Geneviève Bastien [Mon, 4 Aug 2014 17:31:12 +0000 (13:31 -0400)] 
CTF: Do not recalculate the single clock each time in CTFTrace#getClock()

Change-Id: Ia42daadc9606335073da59a547e93867f445ed91
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/30990
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agoctf: remove duplicate code in array/sequence declarations
Matthew Khouzam [Mon, 28 Jul 2014 19:56:43 +0000 (15:56 -0400)] 
ctf: remove duplicate code in array/sequence declarations

Change-Id: I6fcb6325ae24de3984412a151137f8a5dca83deb
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30837
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: add trace property to properties view when selecting an event
Bernd Hufmann [Wed, 30 Jul 2014 18:51:22 +0000 (14:51 -0400)] 
tmf: add trace property to properties view when selecting an event

Change-Id: I5cc4b3ea16a706f313581ce8fb83ec9a43197d3d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30755
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agolttng: Do not use the jacoco agent when running benchmarks
Marc-Andre Laperle [Fri, 1 Aug 2014 19:47:50 +0000 (15:47 -0400)] 
lttng: Do not use the jacoco agent when running benchmarks

Change-Id: I120437b178471e104464f014228b720c55fa82f5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30904
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
9 years agoctf: remove redundant code in util
Matthew Khouzam [Mon, 28 Jul 2014 19:01:27 +0000 (15:01 -0400)] 
ctf: remove redundant code in util

Change-Id: I4db24325762b054a031925e6fb0bc861a6511429
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30835
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: remove redundant code in structDeclaration
Matthew Khouzam [Mon, 28 Jul 2014 19:18:15 +0000 (15:18 -0400)] 
ctf: remove redundant code in structDeclaration

Change-Id: I0945d838d214cea852f5929c5c4ffbf4de6d50b6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30836
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: add btf synchronization support
Matthew Khouzam [Wed, 30 Jul 2014 19:19:17 +0000 (15:19 -0400)] 
tmf: add btf synchronization support

Change-Id: Ie79b5b989e16daf6263331a8e3c7d7fe96863046
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30760
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agotmf: make ITmfTimestampTransform Serializable
Matthew Khouzam [Tue, 29 Jul 2014 17:25:43 +0000 (13:25 -0400)] 
tmf: make ITmfTimestampTransform Serializable

Change-Id: I840ca6ac1fd7a3ba6cad4ed9bb529989b60e3c56
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30686
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
9 years agotmf: make TmfTimeRange static ranges NonNull
Vincent Perot [Wed, 30 Jul 2014 18:49:41 +0000 (14:49 -0400)] 
tmf: make TmfTimeRange static ranges NonNull

This avoids useless null checks in tmf.pcap

Change-Id: Ice73d87d4119469f297d434ca6aca10233807160
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30758
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
9 years agotmf: make EMPTY_STRING_ARRAY NonNull
Vincent Perot [Wed, 30 Jul 2014 18:51:06 +0000 (14:51 -0400)] 
tmf: make EMPTY_STRING_ARRAY NonNull

This avoids useless null checks in tmf.pcap

Change-Id: I489b4c469d3f07c054e82944c78a8027910aded7
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30759
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agotmf: make ID of views NonNull annotated
Vincent Perot [Mon, 28 Jul 2014 13:58:28 +0000 (09:58 -0400)] 
tmf: make ID of views NonNull annotated

Change-Id: If685363c0d43c0d1468c30f9f59cedd09b794d8d
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30757
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agolttng: Convert performance results from Derby to JSON
Marc-Andre Laperle [Tue, 8 Jul 2014 23:38:20 +0000 (19:38 -0400)] 
lttng: Convert performance results from Derby to JSON

The performance tests and conversion can be executed from the command line:
mvn clean install -Pperformance

To connect to the database, additional properties have to be set.
See perf.database.loc and perf.config in
org.eclipse.linuxtools.lttng.alltests/pom.xml

A destination can also be specified with -DperfFilesDestination

Change-Id: I70b83b151d739eee7964cceef3f2b3d8078561b9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29644
Tested-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
9 years agotmf: make copy return the trace if it is not a folder
Matthew Khouzam [Tue, 29 Jul 2014 14:55:16 +0000 (10:55 -0400)] 
tmf: make copy return the trace if it is not a folder

Change-Id: Ib0abfb8d3922e7dd3d9be32cf529d3f9ccbf1c16
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30678
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agotmf: use TmfWorkspaceModifyOperation in delete suppl. files handler
Bernd Hufmann [Wed, 23 Jul 2014 19:21:47 +0000 (15:21 -0400)] 
tmf: use TmfWorkspaceModifyOperation in delete suppl. files handler

Change-Id: Iaf0f0d2f3d2cc4ae5ba6acbe287d0622615212a4
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30377
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agotmf: Introduce workspace modify operation
Bernd Hufmann [Wed, 23 Jul 2014 19:21:13 +0000 (15:21 -0400)] 
tmf: Introduce workspace modify operation

and use it in the DeleteTraceFolderElementHandler. This operation will
refresh the workspace only once as oposed to the Eclipse's
WorkspaceModifyOperation. This Operation will be re-used at multiple
locations in TMF.

Change-Id: Ide217442019093977ce417d9b219c46393b2a954
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30376
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agotmf: Restrict GdbTraceEvent's content to GdbTraceEventContent
Alexandre Montplaisir [Fri, 18 Jul 2014 18:46:14 +0000 (14:46 -0400)] 
tmf: Restrict GdbTraceEvent's content to GdbTraceEventContent

This way we can avoid having to cast the ITmfEventContent every time
we want to use it.

Change-Id: I4d44bb61628456b59da3f52a857e7f577cf774ac
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/30147
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: Make IOStructGen catch (Exception e) more specific
Matthew Khouzam [Fri, 25 Jul 2014 22:13:29 +0000 (18:13 -0400)] 
ctf: Make IOStructGen catch (Exception e)  more specific

One does not mess with exception

Change-Id: I7fba89de7e93a090f8afbd4e5f493cde89df431d
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30541
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
9 years agoctf: Make LabelAndRange static in EnumDeclaration
Matthew Khouzam [Fri, 18 Jul 2014 22:15:34 +0000 (18:15 -0400)] 
ctf: Make LabelAndRange static in EnumDeclaration

Change-Id: I9bab7c058fec93879f9ec5b6eef5ef55fb7405c6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30155
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: remove redundant null check in StructDeclaration
Matthew Khouzam [Fri, 18 Jul 2014 22:14:47 +0000 (18:14 -0400)] 
ctf: remove redundant null check in StructDeclaration

Should speed things up too!

Change-Id: I011c3ddcbb3750e15a8a19c6e328c22a637b0661
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30154
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: clean up IOStructGen.
Matthew Khouzam [Fri, 18 Jul 2014 21:57:52 +0000 (17:57 -0400)] 
ctf: clean up IOStructGen.

yay.

Change-Id: I094248d488d71e1dad42804b98526c5990b8f10b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30153
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: fix call to equals of two different types (CTFStreamIn...)
Matthew Khouzam [Fri, 18 Jul 2014 21:28:21 +0000 (17:28 -0400)] 
ctf: fix call to equals of two different types (CTFStreamIn...)

CTFStreamInputPacketReader's lookup definition compares the lookup path
to lexical scopes, and not their strings. It should be comparing the
strings.

Change-Id: I35aafb3462ca4e03906d3d8d7636bf49581f459a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30151
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: add hashcode and equals to CTFCallsite
Matthew Khouzam [Fri, 18 Jul 2014 21:18:27 +0000 (17:18 -0400)] 
ctf: add hashcode and equals to CTFCallsite

Change-Id: Ia63701468c591a78a37ae245964d80993e39fb5b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30150
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agoctf: remove redundant null check in lexical scope
Matthew Khouzam [Fri, 18 Jul 2014 21:15:59 +0000 (17:15 -0400)] 
ctf: remove redundant null check in lexical scope

Change-Id: Id00df1f7a43e69d770790c63e7d91fdb871129e3
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30149
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agopcap: use a larger trace for parser benchmarking
Vincent Perot [Thu, 24 Jul 2014 22:58:53 +0000 (18:58 -0400)] 
pcap: use a larger trace for parser benchmarking

The previous trace contained only 640 events, so the parser finished parsing the whole file in a couple of microseconds. Thus, the variation of the results was a large percentage of the total CPU time, which is bad.

This new trace contains 100k events (and is totally anonymized), so the benchmark gives more precise results. This allows to really see the influence of future commits on the parsing speed.

Change-Id: I45900d5a25160d37ceb4dc6a06175d6a6b74f475
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30472
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agolttng: Step version of UST call stack state system provider
Patrick Tasse [Fri, 18 Jul 2014 14:22:44 +0000 (10:22 -0400)] 
lttng: Step version of UST call stack state system provider

Incremented due to changes for thread id.

Change-Id: I45cb63a2bc84f5ffd49495464697babac76b66bf
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30126
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agoctf: Increase the timeout for download test traces
Marc-Andre Laperle [Fri, 25 Jul 2014 19:28:01 +0000 (15:28 -0400)] 
ctf: Increase the timeout for download test traces

Change-Id: I01ca111adcd02c81bb1dcf6122ff8d5665e47e87
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30535
Reviewed-by: Vincent Perot <vincent.perot@ericsson.com>
9 years agotmf: Support for selecting both traces and folders when deleting
Marc-Andre Laperle [Wed, 23 Jul 2014 13:50:15 +0000 (09:50 -0400)] 
tmf: Support for selecting both traces and folders when deleting

Change-Id: Iace8f35b4e85749244291a575040fc82a901ff23
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30392
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
9 years agopcap: fix blockers for sonar
Vincent Perot [Thu, 24 Jul 2014 17:06:19 +0000 (13:06 -0400)] 
pcap: fix blockers for sonar

Change-Id: I793c038b7bfcb7c002233132115d3a9b01a6fef9
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30453
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
9 years agoctf: fix ctf.core gitignore
Vincent Perot [Tue, 22 Jul 2014 21:28:05 +0000 (17:28 -0400)] 
ctf: fix ctf.core gitignore

Change-Id: I9b6725840af6386f9f48736b37bd7e8ff35c77ea
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30448
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
9 years agolttng: Open a live trace and update the events table
Marc-Andre Laperle [Tue, 1 Apr 2014 22:38:05 +0000 (18:38 -0400)] 
lttng: Open a live trace and update the events table

With this patch, it becomes possible to import a live
trace session in progress from the Control view. Once it's opened,
the events table updates as more data is available when indicated
by Relayd.

Change-Id: I2470f4c3d4dd2570f4595455d2824806f0dacf09
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29646
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
9 years agoTMF: Support for drag selection listeners in TimeGraphControl
Generoso Pagano [Fri, 18 Jul 2014 12:34:33 +0000 (14:34 +0200)] 
TMF: Support for drag selection listeners in TimeGraphControl

The TimeGraphControl can send a TimeGraphTimeEvent to the attached
ITimeGraphTimeListener(s) to notify the time interval currently
being selected while the user is moving the mouse (drag selection).

Change-Id: I340e4749861123febd268fb3e1969bcf809470b4
Signed-off-by: Generoso Pagano <generoso.pagano@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30124
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agopcap: update pcap.core preferences
Vincent Perot [Thu, 24 Jul 2014 14:03:09 +0000 (10:03 -0400)] 
pcap: update pcap.core preferences

Change-Id: I58d8b0df23ec8d767086788974307e2ab63bcf14
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30432
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
9 years agotmf: add subfield filtering
Vincent Perot [Fri, 18 Jul 2014 21:44:31 +0000 (17:44 -0400)] 
tmf: add subfield filtering

Change-Id: I4e7b8ba2ffaf99d95639129ac8b33f673d0673e9
Signed-off-by: Vincent Perot <vincent.perot@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30152
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
9 years agolttng: Add support for creating a live session in Control view
Marc-Andre Laperle [Wed, 19 Mar 2014 07:11:17 +0000 (03:11 -0400)] 
lttng: Add support for creating a live session in Control view

Change-Id: Ifb31933f8a93437cf976cef71b53cfa5d1f4ec8f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23593
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: Callstack: Import name mapping from a binary with debug symbols
Marc-Andre Laperle [Wed, 18 Dec 2013 18:53:54 +0000 (13:53 -0500)] 
tmf: Callstack: Import name mapping from a binary with debug symbols

Using CDT's core binary parsers, we can read the binaries and
extract function name mapping without the need of an external
command-line program. This patch adds an action to the callstack
view so that the user can browse for a binary file and import the mapping.

Change-Id: I000b48a5057d9137f57f43cb8f0372c9e2af58fb
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20005
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
9 years agotmf: Add clear command on the Traces folder
Marc-Andre Laperle [Wed, 16 Jul 2014 17:15:13 +0000 (13:15 -0400)] 
tmf: Add clear command on the Traces folder

This will delete all the trace folders and traces under
the Traces folder but not the folder itself.

Change-Id: I82aaa5fd8f5d1ecca7c4da212abd0fecd8e113d6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30290
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
This page took 0.044663 seconds and 5 git commands to generate.