deliverable/tracecompass.git
8 years agoctf: Add lost events to synthetic LTTng kernel trace generator
Patrick Tasse [Mon, 30 Nov 2015 21:51:44 +0000 (16:51 -0500)] 
ctf: Add lost events to synthetic LTTng kernel trace generator

The trace generator now creates packets with lost events pseudo-randomly
approximately once out of 10 times the number of channels.

The trace generator also now sets the content size of the last packet of
each channel so that the total number of events (including lost events)
is exactly the number of requested trace events.

Change-Id: Ie804e5650d5a4186225b5dfcc75526b0fe9c2704
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61599
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoctf: Fix lost events timestamp in CTFPacketReader
Patrick Tasse [Mon, 30 Nov 2015 20:56:19 +0000 (15:56 -0500)] 
ctf: Fix lost events timestamp in CTFPacketReader

The lost events should be inserted after the last event in the packet,
not before the first event in the packet.

This was a regression where the changes to CTFStreamInputPacketReader
from https://git.eclipse.org/r/50683 were not ported to CTFPacketReader.

Change-Id: I055887b02212bd43052d36fbbd0dde3ca36edb6e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61598
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
8 years agotmf : use of StringBuilder.append() instead of String operator +
Jean-Christian Kouame [Fri, 4 Dec 2015 18:03:55 +0000 (13:03 -0500)] 
tmf : use of StringBuilder.append() instead of String operator +

Change-Id: I062c411af568289f5c17a279953703d720109119
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/62015
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf : remove occurrences of literals in FilterTreeLabelProvider.java
Jean-Christian Kouame [Mon, 16 Nov 2015 20:45:37 +0000 (15:45 -0500)] 
tmf : remove occurrences of literals in FilterTreeLabelProvider.java

Change-Id: Ic30315e1bed6f360ec4760341ddee873891e43ee
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60555
Reviewed-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>
8 years agocommon: Annotate String.split
Marc-Andre Laperle [Sun, 6 Dec 2015 21:59:35 +0000 (16:59 -0500)] 
common: Annotate String.split

This can't return null or null elements. Also cannot accept null
parameter. Fixes a warning in LTTngControlService.

Change-Id: Idb605e95fd20abfe8ecf73037bcc2a7b2e17dd70
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/62075
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agocommon: Annotate Element.getAttribute
Marc-Andre Laperle [Sun, 6 Dec 2015 22:34:36 +0000 (17:34 -0500)] 
common: Annotate Element.getAttribute

It cannot return null. It returns an empty String when the attribute is
not present. Fixes a warning in XmlViewInfo

Change-Id: Ia4b3ee9ccc2990597cbba16c2d0d1e3349a78bec
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/62078
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agocommon: Annotate some Class.get*Name methods
Marc-Andre Laperle [Sun, 6 Dec 2015 22:23:48 +0000 (17:23 -0500)] 
common: Annotate some Class.get*Name methods

This fixes a warning in AlgorithmManager. getName and getSimpleName
cannot return null whereas getCanonicalName can (anonymous, local
classes).

Change-Id: I2ee6ff668a93b47617389d2a3a25157af7184349
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/62077
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agocommon: Annotate RandomAccessFile.readUTF
Marc-Andre Laperle [Sun, 6 Dec 2015 22:09:18 +0000 (17:09 -0500)] 
common: Annotate RandomAccessFile.readUTF

It can't return null. Fixes a warning in TmfUml2SDTestTrace

Change-Id: I7698d58639dc2099bed60c5f37c28a249d5fb22c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/62076
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agotmf: Use prioritized List instead of Set in XmlStateProvider
Jean-Christian Kouame [Mon, 30 Nov 2015 23:14:18 +0000 (18:14 -0500)] 
tmf: Use prioritized List instead of Set in XmlStateProvider

This allows to have a kind of priority between the event handlers. It
helps to improve dependency between the event handlers. Now, when
receiving an event E, it is possible that the result of a handler X
depends of the change made by a handler Y on the same event.

Change-Id: I33592e907d4c2f024a46cc365f0bbe796e940049
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61672
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoss: Avoid concatenating nonliterals in TmfStateInterval#toString()
Alexandre Montplaisir [Fri, 27 Nov 2015 22:36:24 +0000 (17:36 -0500)] 
ss: Avoid concatenating nonliterals in TmfStateInterval#toString()

Change-Id: Ia5a18114a73418ad677b7d8b3a606c2f67af36b2
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/60557
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoremote: provide output listener for command execution
Bernd Hufmann [Thu, 26 Nov 2015 12:20:45 +0000 (07:20 -0500)] 
remote: provide output listener for command execution

This listener interface will allow users of the ICommandShell to provide
2 callback methods to get intermediate results for the standard and
error output. Useful for long lasting command executions.

Change-Id: Ibc90bfd679226eee7ef34f170b63abd819bb75e5
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61586
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agoFix new errors due to automatic annotation of Class<T> types
Alexandre Montplaisir [Sun, 29 Nov 2015 03:36:40 +0000 (22:36 -0500)] 
Fix new errors due to automatic annotation of Class<T> types

The null analysis now automatically assumes that generic class types
(the "T" in Class<T>) are always @NonNull. See bug 477719.
This clears a bunch of warnings we had due to using Something.class
as parameters. Great!

However, this introduces a new problem. When a generic type parameter
is used both as parameter and as return value, and the client specifies
an annotation on the parameter during a call, the default behaviour is
to assume this annotation on the return type too.

In some cases this assumption is correct:

    List<@NonNull String>.get() returns a @NonNull String

But in some others it is not:

    Map<@NonNull K, @NonNull V>.get() should *NOT* return a @NonNull V.

Now some methods of the form:

    V something(Class<V> type);

also follow this pattern, and the "automatic" @NonNull applied to V
also gets applies to the return value. In some (most?) cases this is
incorrect, and we have to supply external annotations to change the
return value to @Nullable. Just like we did for Map.get().

See bug 483143 for more information.

The return values of the following methods are now annotated as
@Nullable:

Class.getAnnotation()
DsfServicesTracker.getService()
IRemoteConnection.getService()
IRemoteConnectionType.getService()

and related null-checks were added.

Change-Id: I2c60835160a46e88ff293a5fd68774021c2b00a9
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/61521
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoctf: preserve byte order if explicitly set in a typedef
Matthew Khouzam [Tue, 1 Dec 2015 17:06:33 +0000 (12:06 -0500)] 
ctf: preserve byte order if explicitly set in a typedef

Change-Id: I904cd931da955f17b7cafa285f48d60c0c0358a1
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61684
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
8 years agoctf: do not assume endianness of integers for singletons
Matthew Khouzam [Tue, 1 Dec 2015 22:44:08 +0000 (17:44 -0500)] 
ctf: do not assume endianness of integers for singletons

Change-Id: I59ff6253564a05122da5b702e04b1f291f1b54fb
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61709
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agocommon: Annotate ByteOrder#getNativeOrder
Matthew Khouzam [Tue, 1 Dec 2015 16:23:33 +0000 (11:23 -0500)] 
common: Annotate ByteOrder#getNativeOrder

Change-Id: I6c64addc87111f2974bc0b97a527ebd8fd3f6b1f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61683
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agoctf: remove some null warnings in TmfTraceManagerTest
Matthew Khouzam [Tue, 1 Dec 2015 16:22:53 +0000 (11:22 -0500)] 
ctf: remove some null warnings in TmfTraceManagerTest

Change-Id: I403f87cfbaa018831f497d2374675ba224cc027d
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61682
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agoust: Add initial SwtBot test for memory usage view
Bernd Hufmann [Fri, 27 Nov 2015 20:36:28 +0000 (15:36 -0500)] 
ust: Add initial SwtBot test for memory usage view

Change-Id: Ied9bb9b8539e3a15cc8facc6678f486c2e092558
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61504
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agocommon: Annotate some methods in ByteBuffer
Marc-Andre Laperle [Tue, 24 Nov 2015 23:42:19 +0000 (18:42 -0500)] 
common: Annotate some methods in ByteBuffer

Change-Id: Ib27143f9129b5be40a3bf996397c250509c24f40
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61206
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agopcap: Fix unused caching field
Marc-Andre Laperle [Mon, 30 Nov 2015 23:41:35 +0000 (18:41 -0500)] 
pcap: Fix unused caching field

A field was meant to cache a map but was never set.

Change-Id: I9a7ff2c234a5af6d106ce8ade12936ff6a5bf1dd
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61602
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf: Fix FontEventEditorTest on Mac
Marc-Andre Laperle [Thu, 19 Nov 2015 22:24:04 +0000 (17:24 -0500)] 
tmf: Fix FontEventEditorTest on Mac

On Mac, the Preferences menu item is under the application name.
For some reason, we can't access the application menu so we use the
keyboard shortcut. This commits create a helper method in SWTBotUtils so
that this problem doesn't occur again when a new test wants to open the
preference window.

Change-Id: Ib4a76cd6d0f1b70965f83eaf4920aa55cf81835a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60857
Reviewed-by: Hudson CI
8 years agotmf: Skip TestTraceOffsetting on Mac OS X 10.11.1 because of bug 481611
Marc-Andre Laperle [Tue, 24 Nov 2015 22:51:53 +0000 (17:51 -0500)] 
tmf: Skip TestTraceOffsetting on Mac OS X 10.11.1 because of bug 481611

This is a work around for now, until 481611 is fixed.

Change-Id: Ifb95491107d20941a554f37f20728186a18c6760
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61201
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
8 years agocontrol: add test for correct command line for adding context for UST
Bernd Hufmann [Fri, 27 Nov 2015 18:43:13 +0000 (13:43 -0500)] 
control: add test for correct command line for adding context for UST

Change-Id: Idbd428f88dda62730a29d088c7852770ebe54c11
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61492
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agocontrol: partly revert commit 0e7ea8ac and use clone in handlers
Bernd Hufmann [Fri, 27 Nov 2015 18:41:48 +0000 (13:41 -0500)] 
control: partly revert commit 0e7ea8ac and use clone in handlers

The patch that will be reverted here used copy constructors instead
of clone. However, using copy constructors the class type gets lost
in certain cases and this will cause different errors to happen.

For example, add context on a UST channel will send the command with
-k instead of -u. This is because a instanceof check for
ChannelCommandParameter fails since the object to check is a
CommandParameter instance and not ChannelCommandParameter.

I'll add a subsequent patch with a unit test for the add context case.

Change-Id: I01177bc1fad7eb100b204997b4572bf14cb5be61
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61491
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agoRemove overloads of NonNullUtils#checkNotNull()
Alexandre Montplaisir [Tue, 24 Nov 2015 23:51:18 +0000 (18:51 -0500)] 
Remove overloads of NonNullUtils#checkNotNull()

New errors have cropped up with the latest integration build. It seems
JDT is now stricter with regards to annotated generic types vs.
un-annotated ones (where before un-annotated was similar to @Nullable,
now we don't we away with it that easily).

Variants of checkNotNull() method that used to help the compiler now
seem to do more harm than good. Just deferring to the basic "T" one
fixes the new errors. Perhaps this should have been the ideal approach
all along?

Change-Id: If998d5554b5d85ac785d21365dfeeae5d6a48bb8
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/60650
Reviewed-by: Hudson CI
8 years agotmf: Replace usage of SubProgressMonitor with SubMonitor
Alexandre Montplaisir [Tue, 24 Nov 2015 23:51:13 +0000 (18:51 -0500)] 
tmf: Replace usage of SubProgressMonitor with SubMonitor

SubProgressMonitor is now deprecated, replace its usage with the
recommended SubMonitor instead. This fixes the staging target.

Change-Id: I9ae99c1e8da2da5a98c90ea2f45fbd0207d3b734
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/60823
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: Fix for time-alignment bug
Marc-Andre Laperle [Thu, 26 Nov 2015 16:19:55 +0000 (11:19 -0500)] 
tmf: Fix for time-alignment bug

SashForm.setWeights() fails and throws runtime exceptions if
the sum of the passed values is 0 or if one of the values is
negative.

In some cases that include switching to a not-yet-initialized
Resource View, this situation could happen. Simply ignore sash
resize for invalid arguments. No need to time-sync an uninitialized
view anyway.

Change-Id: I3b7724795529ee91ae903ba3551491b5e0a7a645
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/59881
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agoss: Implement ISegment#getLength() as a default method
Alexandre Montplaisir [Tue, 24 Nov 2015 23:51:00 +0000 (18:51 -0500)] 
ss: Implement ISegment#getLength() as a default method

Change-Id: I0ab887f8bcecdebc1e66773ef50b63af3125090b
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/59880
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agocommon: Add a checkNotNullContents() for arrays
Alexandre Montplaisir [Tue, 24 Nov 2015 23:50:31 +0000 (18:50 -0500)] 
common: Add a checkNotNullContents() for arrays

For Collections we can easily go through a Stream and back
to call checkNotNullContents(Stream<T>), for arrays it's slightly
more complicated, so we might as well define a new method
specifically for arrays.

Also add some "tests" (not actual runnable tests, but just snippets
of code that should compile) to make sure the annotations are working
correctly.

Change-Id: I2d18ba912076ea98cfca3628e7c8d6077209f74b
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/59427
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agocommon: Introduce a generic Stream flattener utility
Alexandre Montplaisir [Tue, 24 Nov 2015 23:50:06 +0000 (18:50 -0500)] 
common: Introduce a generic Stream flattener utility

This can be used to flatten data structures like trees, without
having to mess with recursive functions or visitor objects.

Change-Id: I3a30484a26f9112c624705c03e49529f5abac26e
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/59293
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoust: fix NPE in memory usage view caused by misplaced closing bracket
Bernd Hufmann [Fri, 27 Nov 2015 12:19:46 +0000 (07:19 -0500)] 
ust: fix NPE in memory usage view caused by misplaced closing bracket

Change-Id: I64f1f1f9a087b1da2e44db3f0615b57a771b70ce
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61447
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf : Remove of unused import
Jean-Christian Kouame [Wed, 18 Nov 2015 21:24:01 +0000 (16:24 -0500)] 
tmf : Remove of unused import

This commit removes the import of TmfXmlReadAndWriteModelFactory in
TmfXmlReadOnlyModelFactory.

Change-Id: Id4dafff6df5dc4c7fdc74dfcf84dc74de5ddd8f7
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60752
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf : Use of Activator.logError() instead of System.out.println()
Jean-Christian Kouame [Mon, 23 Nov 2015 22:22:40 +0000 (17:22 -0500)] 
tmf : Use of Activator.logError() instead of System.out.println()

Change-Id: Ibe562bc26d1fbd150ff40134a1b900e3750dd7ed
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61080
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf : Remove inefficient new String(String) constructor
Jean-Christian Kouame [Mon, 23 Nov 2015 22:38:25 +0000 (17:38 -0500)] 
tmf : Remove inefficient new String(String) constructor

Change-Id: I1b55c12a6345f6198beafd750ec666611b6fd54b
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61084
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agolttng : Remove inefficient new String(String) constructor
Jean-Christian Kouame [Mon, 23 Nov 2015 22:54:42 +0000 (17:54 -0500)] 
lttng : Remove inefficient new String(String) constructor

Change-Id: I924a7b75f1fa22b1b45c3bb93b5bafa5b177f7b0
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61088
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: log error before displaying message
Jonathan Rajotte [Thu, 26 Nov 2015 22:50:01 +0000 (17:50 -0500)] 
tmf: log error before displaying message

Otherwise the error is logged only after the dialog is closed.
This is not a problem for normal use but for automated tests it can be
tricky since we can stop the test before closing the dialog and still look for
errors.

Change-Id: I1579fa166af2fbe5cd55fdb82b92d976171deaf6
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Reviewed-on: https://git.eclipse.org/r/61066
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: Fix missing dispose of traces in TmfTraceTest and TmfExperimentTest
Patrick Tasse [Thu, 26 Nov 2015 16:08:02 +0000 (11:08 -0500)] 
tmf: Fix missing dispose of traces in TmfTraceTest and TmfExperimentTest

Change-Id: Iaae97ccb2b953327c35a651dc86b654a87a5de7e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61351
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: Bug 477508: Fix wrong event count and ranks in TmfXmlTraceStub
Patrick Tasse [Tue, 24 Nov 2015 23:27:50 +0000 (18:27 -0500)] 
tmf: Bug 477508: Fix wrong event count and ranks in TmfXmlTraceStub

The stub implementation of getNext() was increasing the context rank
twice per event. This would cause a wrong event count in the trace.

The processing of the 'set_aspects' dummy event was also causing the
context rank to be incremented twice. The XML Schema Definition is
changed to extract 'set_aspects' into its own element. The trace stub
now first parses the trace with a custom XML trace definition that only
processes the single 'set_aspects' event, then reinitializes the trace
with a custom XML trace definition that processes 'event' events.

Change-Id: Id1cf2251e364f892ab37511f0a5d99f2bcc2b5c6
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61205
Reviewed-by: Hudson CI
8 years agotmf: Fix unprocessed custom event content
Patrick Tasse [Tue, 24 Nov 2015 23:13:14 +0000 (18:13 -0500)] 
tmf: Fix unprocessed custom event content

If the custom event content is read before the event timestamp, it could
be undefined as the event data hasn't be processed yet. This can happen
in test code.

Change-Id: Idab415eb8015f1a7035bee11582d0baad89cad5b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61204
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: Try to make the shell fully visible in SWTBot at start
Marc-Andre Laperle [Tue, 24 Nov 2015 04:27:46 +0000 (23:27 -0500)] 
tmf: Try to make the shell fully visible in SWTBot at start

In certain environments, the workbench shell can be positioned at random
locations. Depending on the size of the display, it is possible that the
shell is not fully visible. This patch adds logic to the start of SWTBot
tests so that if the top shell is not fully visible, it will try to move
it in within the display bounds. If the shell cannot fit the display, it
will be positioned at the top-left corner of the display.

To be able to apply this to all test, a new utility method was
introduced, SWTBotUtils.initialize. More common code that is applicable
to all SWTBot tests could be moved there in the future.

This fix is important to some tests that can depend on whether of not
some controls get painted. For example, a drag listener is only added on
a sash when it gets first painted. If it is never painted,
TmfAlignTimeAxisTest fails when trying to drag this sash to verify the
proper behavior of time alignment.

Change-Id: Ic67739e204fcb0a4b567914e8b6078c286d56bd3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61094
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agolttng: Add a Binary Callsite aspect to the debug-info analysis
Alexandre Montplaisir [Tue, 24 Nov 2015 23:51:24 +0000 (18:51 -0500)] 
lttng: Add a Binary Callsite aspect to the debug-info analysis

If the binary is not available at analysis time, we can still display
the binary file and offset information, which comes from the trace.

This information is also re-used by the source callsite.

Change-Id: I40993abedf7057fe6b27cb5c9e787f23e2331f13
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/60843
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoExclude Sonar rules that are not working with jdt.annotation
Marc-Andre Laperle [Mon, 23 Nov 2015 23:23:02 +0000 (18:23 -0500)] 
Exclude Sonar rules that are not working with jdt.annotation

Since we have moved to jdt.annotation 2.0, a few Sonar rules (FindBugs)
do not work properly and report false positives. This resulted in
around 460 false issues in Sonar. We can disable those rules for now
until the problem is resolved. A bug report was filled at the FindBugs
project:
http://sourceforge.net/p/findbugs/bugs/1425/

The exclusions are done in the pom.xml so that any Sonar server can
benefit from this fix.

Change-Id: I31db810bc8a38d96870d94d5192139e6d74527b6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61292
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in a StringBuilder
Jean-Christian Kouame [Mon, 23 Nov 2015 21:46:55 +0000 (16:46 -0500)] 
tmf : Avoid concatenating nonliterals in a StringBuilder

Replace the use of StringBuilder with new String()

Change-Id: I64f00a6ef52c3348b361079f0507910b5525f621
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61075
Reviewed-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>
8 years agolttng : Remove inefficient new String(String) constructor
Jean-Christian Kouame [Mon, 23 Nov 2015 22:52:34 +0000 (17:52 -0500)] 
lttng : Remove inefficient new String(String) constructor

Change-Id: I964e7798a852e43674ee4eb1d7ad21574dc7bd0f
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61087
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in a StringBuilder
Jean-Christian Kouame [Mon, 23 Nov 2015 21:35:09 +0000 (16:35 -0500)] 
tmf : Avoid concatenating nonliterals in a StringBuilder

Change-Id: I0e55afcbb0bc7d8b22dcbc68185971dd043c5249
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61073
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in a StringBuilder
Jean-Christian Kouame [Mon, 23 Nov 2015 21:40:54 +0000 (16:40 -0500)] 
tmf : Avoid concatenating nonliterals in a StringBuilder

Change-Id: I78d9c69e192aab744b110909f050b556baa929d9
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61074
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf : Use of Activator.logError() instead of System.err.println()
Jean-Christian Kouame [Mon, 23 Nov 2015 22:18:30 +0000 (17:18 -0500)] 
tmf : Use of Activator.logError() instead of System.err.println()

Change-Id: Ifbb0cd06f6fb33653a3b9892fb623d1e74c2a387
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61079
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in a StringBuffer
Jean-Christian Kouame [Mon, 23 Nov 2015 21:19:55 +0000 (16:19 -0500)] 
tmf : Avoid concatenating nonliterals in a StringBuffer

Change-Id: Idc6a9804bc5f2b101a8ada406d7bbd362c1161c5
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61072
Reviewed-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>
8 years agolttng: additional definitions for lttng 2.7 and 2.8
Francis Giraldeau [Thu, 29 Oct 2015 14:13:39 +0000 (10:13 -0400)] 
lttng: additional definitions for lttng 2.7 and 2.8

* New event sched_waking (for upcomming lttng 2.8 and linux > 4.3)
* Modified event names in lttng 2.7 for softirqs
  (softirq_entry renamed to irq_softirq_entry)

Change-Id: I0c5acd0e201e41ad7f2cf6749cc2105d41523f3f
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Reviewed-on: https://git.eclipse.org/r/59230
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agoanalysis: support sched_waking event
Francis Giraldeau [Thu, 29 Oct 2015 14:15:23 +0000 (10:15 -0400)] 
analysis: support sched_waking event

Use sched_waking event if available. This change is backward compatible
with previous instrumentation.

Change-Id: I28b07dc5cdfe988db8a1e11656eceac9856b1ae2
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Reviewed-on: https://git.eclipse.org/r/59231
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
8 years agoanalysis: Clean up AlgorithmManager a bit
Matthew Khouzam [Fri, 16 Oct 2015 01:34:38 +0000 (21:34 -0400)] 
analysis: Clean up AlgorithmManager a bit

Change-Id: I092a78d5899bd742acdd002290f67fab06c3126d
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/58290
Reviewed-by: Hudson CI
Reviewed-by: Francis Giraldeau <francis.giraldeau@gmail.com>
8 years agotmf: add missing jdt.annotation on tmf.remote.ui.swtbot classpath
Marc-Andre Laperle [Tue, 24 Nov 2015 04:30:26 +0000 (23:30 -0500)] 
tmf: add missing jdt.annotation on tmf.remote.ui.swtbot classpath

Change-Id: I313261c38f39a03f6e4980190e5df17c7c4476a7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61095
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
8 years agoctf: support event-header-less traces
Matthew Khouzam [Mon, 23 Nov 2015 23:40:40 +0000 (18:40 -0500)] 
ctf: support event-header-less traces

This fixes a regression caused by overly zealous @NonNull annotations
coupled with many warnings hiding a problem. The trace reader can now
read traces without an event header again.

Change-Id: Ida701b45cd0438cfd2000443a7a725e31d96669b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61090
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agoctf: Support Streamless packet readers
Matthew Khouzam [Mon, 23 Nov 2015 23:39:05 +0000 (18:39 -0500)] 
ctf: Support Streamless packet readers

If a stream isn't set, the default one is null. This ensures that streamless
traces work.

Change-Id: Iad06dd965e3ca1173008cec5b8e68ac3bc910cbe
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61089
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agotmf : Remove inefficient new String(String) constructor
Jean-Christian Kouame [Mon, 23 Nov 2015 22:44:45 +0000 (17:44 -0500)] 
tmf : Remove inefficient new String(String) constructor

Change-Id: I1ee9e4c969042e27219a756daeb9d43c210d23c1
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61085
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf : Use StringBuilder in TmfRawEventViewer
Jean-Christian Kouame [Mon, 16 Nov 2015 21:30:14 +0000 (16:30 -0500)] 
tmf : Use StringBuilder in TmfRawEventViewer

Change-Id: Id144526bf60ed9cf56ea357638b1d28a9b10639b
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60558
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf : Add constant modifier to fields in TimeGraphViewer
Jean-Christian Kouame [Mon, 23 Nov 2015 21:55:34 +0000 (16:55 -0500)] 
tmf : Add constant modifier to fields in TimeGraphViewer

Change-Id: I8ca8df586ccfeaf075cd4b1582f1b1d737764756
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61076
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agolttng : Remove inefficient new String(String) constructor
Jean-Christian Kouame [Mon, 23 Nov 2015 22:50:18 +0000 (17:50 -0500)] 
lttng : Remove  inefficient new String(String) constructor

Change-Id: I369520ee58dacb15e40ca9b0262f63e864ba2abd
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61086
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoanalysis : Add constant modifier to a field
Jean-Christian Kouame [Mon, 23 Nov 2015 22:01:00 +0000 (17:01 -0500)] 
analysis : Add constant modifier to a field

Change-Id: Iea36b92dd2357915c4b1fc11ed544396f2e6ecc7
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61078
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in StringBuilder
Jean-Christian Kouame [Mon, 23 Nov 2015 21:12:27 +0000 (16:12 -0500)] 
tmf : Avoid concatenating nonliterals in StringBuilder

Change-Id: I18b4d61d765f77522cb27cac7bba022d0b6035ad
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61071
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agolttng : Add constant modifier to a field
Jean-Christian Kouame [Mon, 23 Nov 2015 21:57:35 +0000 (16:57 -0500)] 
lttng : Add constant modifier to a field

Change-Id: Ica3bc9006b575aa7a08256a00cfa24da07196e22
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61077
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in a StringBuilder
Jean-Christian Kouame [Mon, 23 Nov 2015 20:54:21 +0000 (15:54 -0500)] 
tmf : Avoid concatenating nonliterals in a StringBuilder

Split the append() call in two separates calls

Change-Id: Ib86731f916d76002570aad71f4976f6bfdf163a0
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61070
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf : Avoid concatenating nonliterals in a StringBuilder
Jean-Christian Kouame [Mon, 23 Nov 2015 20:50:21 +0000 (15:50 -0500)] 
tmf : Avoid concatenating nonliterals in a StringBuilder

Split the append() call in two lines

Change-Id: Icd7b69f793bf8a19b44b89d8506981cfbad38ddb
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/61069
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoAdd annotations for Map.keySet() and .values()
Alexandre Montplaisir [Fri, 30 Oct 2015 22:55:57 +0000 (18:55 -0400)] 
Add annotations for Map.keySet() and .values()

The returned Set and Collection always exist (would be empty
if there are no entries in the map), so can be marked @NonNull.

The generic types K or V keep the same modifiers as the map definition.

Change-Id: If826108fbbd9abb19c7f87f9ef6e27c047425461
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59423
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoAnnotate Collections.toArray() methods
Alexandre Montplaisir [Fri, 30 Oct 2015 20:33:56 +0000 (16:33 -0400)] 
Annotate Collections.toArray() methods

Both variants return @NonNull array references. The one with the
(T[]) parameter can also e annotated to require a @NonNull array
reference (or else it would just throw an NPE).

Note this covers only the array references themselves. The
contained element types will depend on what is passed in parameter

Change-Id: I31bed98a0b7d1df3486179a9e60cb8c73eb0038d
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59421
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoFix SWTBot keyboard failure on headless Mac
Marc-Andre Laperle [Thu, 3 Sep 2015 05:16:38 +0000 (01:16 -0400)] 
Fix SWTBot keyboard failure on headless Mac

Running tests that use the keyboard (AWT) on headless Mac fails with
java.awt.AWTException: headless environment
Setting java.awt.headless=false fixes this.

Change-Id: Ia693d1900a2bd8cfdeaf6816366800a872a45bad
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/55160
Reviewed-by: Hudson CI
8 years agoAnnotate Arrays.stream() methods
Alexandre Montplaisir [Sat, 31 Oct 2015 19:07:19 +0000 (15:07 -0400)] 
Annotate Arrays.stream() methods

They all return a real, possibly empty, Stream which
is effectively @NonNull.

Change-Id: I3602bc1b879dd88e9ab05ff1d734fcc88ff45ae5
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59426
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
8 years agoAnnotate StringBuilder.toString()
Alexandre Montplaisir [Fri, 30 Oct 2015 23:39:37 +0000 (19:39 -0400)] 
Annotate StringBuilder.toString()

Always returns a new String, so is effectively @NonNull.

Again, this applies to this class only and not all Object#toString()
implementations!

Change-Id: I748fd7cc6cc627266733632b9e251f87569369db
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59425
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoAugment annotation to Map.entrySet()
Alexandre Montplaisir [Fri, 30 Oct 2015 20:48:15 +0000 (16:48 -0400)] 
Augment annotation to Map.entrySet()

We already annotated Map.entrySet() to return a

  @NonNull Set<Map.Entry<K, V>>

But actually, the returned Set should not contain any null elements,
since then entry objects will always exist, even if the key and/or
value is null. So we could augment the annotation to:

  @NonNull Set<@NonNull Map.Entry<K, V>>

K and V in this case need to remain unannotated, their type should
match the Map's declaration.

Change-Id: Id436fd3cfc4f679198070e5efdbb9d2d3ce478ae
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59422
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoAnnotate some static Collections methods
Alexandre Montplaisir [Fri, 30 Oct 2015 11:50:17 +0000 (07:50 -0400)] 
Annotate some static Collections methods

Annotate all the following methods to return @NonNull collections:

.singleton*()
.synchronized*()
.unmodifiable*()

Change-Id: Iffa8743784c68611dcd4262c526afce0509ef155
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59328
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoctf: reduce cyclomatic complexity of StreamInputPacketIndexEntry
Marc-Andre Laperle [Thu, 19 Nov 2015 05:14:48 +0000 (00:14 -0500)] 
ctf: reduce cyclomatic complexity of StreamInputPacketIndexEntry

Change-Id: I8b717fca910b67e1a3150dba5010ca8d062fa5e9
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/44609
Reviewed-by: Hudson CI
8 years agotmf: Fix remote test failing on Windows
Marc-Andre Laperle [Wed, 18 Nov 2015 21:28:19 +0000 (16:28 -0500)] 
tmf: Fix remote test failing on Windows

IFileInfo.getSize() returns 0 for directories on Windows. "For
directories, the return value is unspecified" so the right thing to do
is to add an isDirectory check.

Change-Id: I6112287adc6cef8fcd7c609edab5bbdfbd933ba3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60756
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agotmf : Replace String() by an empty string "" in getHelpText
Jean-Christian Kouame [Fri, 20 Nov 2015 20:02:03 +0000 (15:02 -0500)] 
tmf : Replace String() by an empty string "" in getHelpText

Replace the creation of an empty string using new String() with ""
instead.

Change-Id: Iebbe8dfc48eb5f963dda8d196eaa57e5f32258d3
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60949
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
8 years agotmf : Remove literals duplication in TmfXmlReadWriteStateValue
Jean-Christian Kouame [Thu, 19 Nov 2015 21:29:21 +0000 (16:29 -0500)] 
tmf : Remove literals duplication in TmfXmlReadWriteStateValue

Change-Id: I4b1a8f7323d6f47344565a0cb3a1f8d9854b4d41
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60831
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoctf: Introduce IPacketReader
Matthew Khouzam [Thu, 27 Aug 2015 02:32:24 +0000 (22:32 -0400)] 
ctf: Introduce IPacketReader

Introduce the IPacketReader api to allow better decoupling between the
streaminputreader and the packet reader. This allows for more packet
reader types in the future, such as an InMemoryPacketReader for streamed
in RAM traces.

The IPacketReader is currently implemented by 2 classes:
    * a NullPacketReader, if there is no data to read
    * a CTFPacketReader, the typical packet reader

The CTFPacketReader is quite different from the CTFStreamPacketReader. The
SPR holds on to a FileChannel and maps segments as it needs. This results in
a fast but complex sliding window like reader. On the other hand, the
CTFPacketReader will only read one packet of a stream, a new one needs to
be created for each packet. This makes it wrap a single BitBuffer. As
FileChannels are resources but Bit(Byte)Buffers are not, this means a
CTFPacketReader is NOT autoclosable.

It should be noted that ByteBuffers can hold onto a system file handle. They
are released on GC. Also, ByteBuffers as they have their handle, will not
require the fileChannel to be opened all the time, so resources can be
dynamically closed when running low on file handles.

This patch also fixes some bugs in the tests relating to uninitialized traces
and lost event locations that were hidden due to "event.equals" not working as
well as it should.

The reason this patch does two things at the same time is that the interface
required a major re-write of the packet reader. This resulted in several bugs
being highlighted and fixed. To fix them in a separate patch before would
be very time consuming, and fixing them after would mean deliberately writing
a buggy packet reader to fix it in a subsequent patch.

This change will allow the following changes down the road:
    * In memory ctf reading (network streams)
    * Encrypted ctf stream reading
    * Compressed ctf stream reading
    * Multi-threaded stream reading
    * A power set of the previous elements

Change-Id: Id45b69bb0dac7a1f74f50cd732cd92064595f737
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/53284
Reviewed-by: Hudson CI
8 years agotmf : Remove duplicate literals in TmfRawEventViewer
Jean-Christian Kouame [Thu, 19 Nov 2015 22:11:15 +0000 (17:11 -0500)] 
tmf : Remove duplicate literals in TmfRawEventViewer

Change-Id: I342db238daa4d6ed7579042279548f543b6149d6
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60835
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf : Refactoring the comments in TmfRawEventViewer
Jean-Christian Kouame [Thu, 19 Nov 2015 22:02:57 +0000 (17:02 -0500)] 
tmf : Refactoring the comments in TmfRawEventViewer

Removing dead code and moving some comments

Change-Id: Ieecd757fca6839019265f03e146d52f36184e4cd
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60834
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: log when an error message is displayed in a MessageBox
Jonathan Rajotte [Fri, 20 Nov 2015 01:21:56 +0000 (20:21 -0500)] 
tmf: log when an error message is displayed in a MessageBox

Provide vital information to external tools such as [1] for testing
purpose. Also allow sharing of error messages a lot more easily.

[1] https://www.eclipse.org/rcptt/

Change-Id: I2dfa6da59c566b0f6a5d55a1d092699c9afcbb26
Signed-off-by: Jonathan Rajotte <jonathan.r.julien@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60860
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf : Use Arrays.asList() instead of a loop
Jean-Christian Kouame [Wed, 18 Nov 2015 20:45:30 +0000 (15:45 -0500)] 
tmf : Use Arrays.asList() instead of a loop

Use Arrays.asList() instead of a loop in TraceValidateAndImportOperation

Change-Id: If2ccf771fe6701164c2ee6f402da780fff9875e4
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60750
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agolttng: make FileOffsetMapper try-with-resources in #getOutputFromCommand
Matthew Khouzam [Tue, 27 Oct 2015 19:55:13 +0000 (15:55 -0400)] 
lttng: make FileOffsetMapper try-with-resources in #getOutputFromCommand

Change-Id: I8c1dc1e1f81ddd4c4f442af11f91450d73142741
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/59055
Reviewed-by: Hudson CI
8 years agotmf: Add check for ineffective setters in AbstractTimeGraphView
Patrick Tasse [Fri, 20 Nov 2015 16:06:52 +0000 (11:06 -0500)] 
tmf: Add check for ineffective setters in AbstractTimeGraphView

If these setters are called after the part control has been created,
they have no effect.

Change-Id: I34bab27624a98df122efd08546d1740d5d672fd8
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60940
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agotmf: Make call stack view extend AbstractTimeGraphView
Patrick Tasse [Tue, 17 Nov 2015 22:35:36 +0000 (17:35 -0500)] 
tmf: Make call stack view extend AbstractTimeGraphView

Change-Id: I43c472c0512486e806bc1aa1db034d6268face5e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60667
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoAnnotate often-used Collectors method
Alexandre Montplaisir [Fri, 30 Oct 2015 11:31:18 +0000 (07:31 -0400)] 
Annotate often-used Collectors method

We commonly end a Stream with

  .collect(Collectors.toList());

However the returned List is not null-annotated, which means it gives a
warning if we want to save it to a @NonNull List<> reference.

It could be tempting to annotate Stream.collect() directly, however that
would be wrong: there is no guarantee that some shoddy Collector does
not return a null value.

Instead, annotate Collectors.toList(), toSet() and toCollection(), which
should cover for most common use cases.

Change-Id: I8adaf55579bf5b1cc66c5fbb122acc416a4870dc
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59327
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agocommon: Add a checkNotNull method to check contents of a Stream
Alexandre Montplaisir [Fri, 30 Oct 2015 10:56:15 +0000 (06:56 -0400)] 
common: Add a checkNotNull method to check contents of a Stream

Change-Id: I7473a5df08a20396d7716bd986a1e1f4e1e0ef27
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59325
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: Call synchingToTime in AbstractTimeGraphView when switching traces
Patrick Tasse [Wed, 18 Nov 2015 16:18:26 +0000 (11:18 -0500)] 
tmf: Call synchingToTime in AbstractTimeGraphView when switching traces

When switching traces (or opening a trace for the first time) the method
synchingToTime should be called with the selection begin time, to
perform view-specific handling for the new selected time.

Change-Id: Ia1eaa248b7e6d9616bfc20375276dcc83527fb28
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60736
Reviewed-by: Hudson CI
8 years agotmf: Allow AbstractTimeGraphView subclass to set filter content provider
Patrick Tasse [Tue, 17 Nov 2015 22:10:55 +0000 (17:10 -0500)] 
tmf: Allow AbstractTimeGraphView subclass to set filter content provider

Change-Id: I4127bff23d3a76bb0f23758568d1211eaaa1f60f
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60666
Reviewed-by: Hudson CI
8 years agotmf: Make entry comparator apply recursively in AbstractTimeGraphView
Patrick Tasse [Tue, 17 Nov 2015 16:02:33 +0000 (11:02 -0500)] 
tmf: Make entry comparator apply recursively in AbstractTimeGraphView

Also update ControlFlowView's comparator so that it applies correctly to
non-root child process entries.

Change-Id: If02011789f53c12ef14e128651fdcaf0daedcc8b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60665
Reviewed-by: Hudson CI
8 years agolttng: make the field names compliant with the code style.
Matthew Khouzam [Tue, 27 Oct 2015 20:10:47 +0000 (16:10 -0400)] 
lttng: make the field names compliant with the code style.

Change-Id: I15705a4eb0b4291fd86d09170d1a7aa58215e47a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/59056
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoanalysis: clean up KernelStateProvider
Matthew Khouzam [Fri, 20 Nov 2015 15:05:59 +0000 (10:05 -0500)] 
analysis: clean up KernelStateProvider

Change-Id: I39273c94aad9454fccbd4b353780863ca431b4ac
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60924
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoctf: simplify search
Matthew Khouzam [Fri, 21 Aug 2015 20:26:18 +0000 (16:26 -0400)] 
ctf: simplify search

The search now uses a java binary search instead of a house binary
search. This simplifies code a bit.

Change-Id: I9d9da2fff303f2492df502eeb856936ad94d5206
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/46286
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: Fix wrong time for synchingToTime in AbstractTimeGraphView
Patrick Tasse [Mon, 16 Nov 2015 20:20:02 +0000 (15:20 -0500)] 
tmf: Fix wrong time for synchingToTime in AbstractTimeGraphView

It was incorrectly changed to the window start time instead of the
selection begin time in patch https://git.eclipse.org/r/55670.

Change-Id: I083a2e0d7cdc9843e0c2a0e65119a566b5a0ab1b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60664
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
8 years agotmf: Increase visibility of startZoomThread in AbstractTimeGraphView
Patrick Tasse [Mon, 16 Nov 2015 20:14:01 +0000 (15:14 -0500)] 
tmf: Increase visibility of startZoomThread in AbstractTimeGraphView

This will allow subclasses to trigger the zoom thread when implementing
their own actions, for example.

Change-Id: I798327e044e786064ae2170ded415c2a2ea2e756
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/60663
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-by: Hudson CI
8 years agolttng: add NON-NLS to string
Matthew Khouzam [Fri, 20 Nov 2015 15:06:47 +0000 (10:06 -0500)] 
lttng: add NON-NLS to string

Change-Id: I698429469932fd1412c8a56840a75d0fd77a685c
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60925
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Hudson CI
8 years agoanalysis: Split up KernelStateProvider
Matthew Khouzam [Tue, 5 May 2015 11:18:09 +0000 (07:18 -0400)] 
analysis: Split up KernelStateProvider

Right now, the cpu number and threadid is looked up for each
event, this new architecture will only read the information
as need be. This should accelerate trace reading by about 5%,
also it is more intuitive, as each event has one file
describing what it does.

Change-Id: I0a2c4480b1532536727783e5470acb545f0a705b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/47150
Reviewed-by: Hudson CI
8 years agotmf: Introduce resolveIntEventAspectOfClassForEvent
Marc-Andre Laperle [Tue, 17 Nov 2015 22:24:33 +0000 (17:24 -0500)] 
tmf: Introduce resolveIntEventAspectOfClassForEvent

This pattern of getting an integer aspect is used a lot,
it could be moved to one place.

Change-Id: I8ca1cf09c70457ec116f0b46bfba3654f91a013f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60662
Reviewed-by: Hudson CI
8 years agoUpdate 4.5 target with Mars.1 update sites
Marc-Andre Laperle [Thu, 5 Nov 2015 21:28:03 +0000 (16:28 -0500)] 
Update 4.5 target with Mars.1 update sites

Change-Id: If6208c04c826c8f562eef8eaa0e617f1fa6ae99e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/59786
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
8 years agotmf: move custom parser tests from tmf.ui.tests to tmf.core.tests
Bernd Hufmann [Wed, 18 Nov 2015 18:29:07 +0000 (13:29 -0500)] 
tmf: move custom parser tests from tmf.ui.tests to tmf.core.tests

Change-Id: Ib1d54ad5ad91fe315a68d77ab41d68802fe98178
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60737
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agotmf: enable and fix o.e.tc.tmf.ui.tests.trace test cases
Bernd Hufmann [Wed, 18 Nov 2015 18:14:39 +0000 (13:14 -0500)] 
tmf: enable and fix o.e.tc.tmf.ui.tests.trace test cases

Change-Id: I19aa42577be1d1c7056299d8d29d7e9fa768257f
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60733
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
8 years agoFix some null warnings
Alexandre Montplaisir [Fri, 30 Oct 2015 09:47:55 +0000 (05:47 -0400)] 
Fix some null warnings

Change-Id: Ibb291421d2625ab80151e4f193cc09eb8febe747
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59129
Reviewed-by: Hudson CI
8 years agotmf: Make CustomText/Xml test wait until wizard shell is active
Marc-Andre Laperle [Tue, 17 Nov 2015 23:24:49 +0000 (18:24 -0500)] 
tmf: Make CustomText/Xml test wait until wizard shell is active

Change-Id: I097f47d121613f282d60d057fe1b3a30abd62840
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/60671
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
8 years agoctf: Restore the downloading of the ctf-testsuite
Alexandre Montplaisir [Sun, 1 Nov 2015 04:15:17 +0000 (00:15 -0400)] 
ctf: Restore the downloading of the ctf-testsuite

When we migrated to using the tracecompass-test-traces, we also stopped
downloading the ctf-testsuite using git. However those are not part of
tracecompass-test-traces. Oops!

Somehow the tests didn't complain so far, but it'd be better if they
actually ran.

Change-Id: Id6b81698bf8e85d840819db8505a95f57a51685c
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/59438
Reviewed-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.048978 seconds and 5 git commands to generate.