lttng: Update plugins version to 3.0 for the Luna branch

Change-Id: I5b50cea6f0d0005a673e58b4cc8dba69c671dfe4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
ctf: Move integer pretty-printing to IntegerDefinition

Fixes bug 408046.

Change-Id: I4836f2026c70969a1d479cea2c66ef846cc95752
Signed-off-by: Jean-Christian Kouame
Reviewed-on: https://git.eclipse.org/r/14089
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Ctf: Callsite bug fix when position is negative (binarySearch)

Change-Id: Id1fdb06c717299f7b0fa8ad0576485d35003ce2b
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14109
Tested-by: Hudson CI
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Merge branch 'master' into lttng-luna

Conflicts:
	lttng/org.eclipse.linuxtools.ctf.core.tests/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java
	lttng/org.eclipse.linuxtools.ctf/feature.xml
	lttng/org.eclipse.linuxtools.gdbtrace/feature.xml
	lttng/org.eclipse.linuxtools.lttng2.kernel.core.tests/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.lttng2.kernel.core/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.lttng2.kernel.ui/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.lttng2.kernel/feature.xml
	lttng/org.eclipse.linuxtools.lttng2.ui/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.lttng2/feature.xml
	lttng/org.eclipse.linuxtools.tmf.core.tests/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.tmf.ui.tests/META-INF/MANIFEST.MF
	lttng/org.eclipse.linuxtools.tmf/feature.xml

Change-Id: Ia2f059338062068ca4d5b7cc25d6b2ac447ebba3
lttng: Temporarily update @since annotations for luna

As was done during the previous cycle (a55a176d, etc.), fake all current
@since 2.x annotations to 3.0. This will ensure that the lttng-luna branch
will keep compiling.

When we ultimately merge this branch back into a 3.0 master, we should get
API errors to indicate where the APIs are actualy 2.x.

Change-Id: I68242175132387783fc36755f8360fcff9665793
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
lttng: Fix more API annotations

Change-Id: I5fa467efa3a53456255bb91423649e8e99bdfbf8
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/14477
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Fix sonar violations for RPM and lttng

Violations such as duplicate literals, string to string,
anon inner length, collapsible if statements, etc..

    o Amend1: use NLS, fix if conditional

Change-Id: I47ac5320bfead822bc1ac470a1a80094ac063edc
Signed-off-by: Neil Guzman <nguzman@redhat.com>
Reviewed-on: https://git.eclipse.org/r/14446
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
tmf: Add getSubField() method to ITmfEventField

This function allows to directly get a subfield, recursively for struct and
variant fields with many levels of embedded fields.  Null is returned if
any level of field is not available.

Change-Id: I46691f62036f4e9826ee5f704efda74e71725acc
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/14281
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Introduce a scheduler for event requests

The request scheduler will increase the responsiveness of user actions.
It works with 5 slots with a specific time. It has 4 slots for
foreground
requests and 1 slot for background requests, and it passes through all
the
slots (foreground first and background after).

Example: if we have one foreground and one background request, the
foreground
request will be executed four times more often than the background
request.

Change-Id: I82dc1da60eaad92c47e015e052a69473119d7a43
Signed-off-by: Simon Delisle <simon.delisle@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/13882
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Bug 401545 - Add formatting to SystemTap Editor

- add indent strategy into SystemTap editor based on C/C++ indenter
- add support for overwriting auto-added characters such as
  end-bracket, quote, and right square-bracket
- simplify base SystemTap partitioner to ignore strings and probes
- add additional partitioner with old partitioner logic
- fix completion proposals to look for offsets that start a new
  partition after a default partition
- add formatter test
- fix completion tests to get proper partitioning

Change-Id: Icb1ae2aac9d25d24685204098cf24f11f11c749b
Reviewed-on: https://git.eclipse.org/r/14523
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
tmf : show environment variables of traces under Experiments

Fixes bug 407756

Change-Id: Ia3576e9ad95a397ce4725d1a72eec8f8310119d6
Signed-off-by: Jean-Christian Kouamé <kadjo.gwandy.jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14463
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
lttng: Add plugins and trace type for UST traces

These plugins add support for a new "CTF : LTTng UST" trace type, which
are generated by the LTTng-UST library (and not the kernel tracer).

For now this type will be pretty much identical to the Genric CTF Trace
type, but it will allow us to eventually add UST-specific features, like
specific Events view, Statistics view, state systems, and whatnot.

Change-Id: Ic9cfc57fce8122128916444022529bc66eb84ad5
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/12370
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Remove old event requests test

Remove an old test that was depandent on the previous scheduler
behavior (and currently fails). The new tests introduced in cac6bb9
cover the same use cases, so the old one is now obsolete.

Change-Id: Ie7bc879599ceb981406ddf9e33729e86138bf661
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/14598
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Systemtap: Make toggle comment command visible under 'Keys' preferences

Change-Id: Ie78e11997ea6de1a29df75002ba8d76eb83d61fb
Reviewed-on: https://git.eclipse.org/r/14636
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
IP-Clean: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
TMF: Add the concept of host id to a trace

This patch adds the concept of a host to a trace.  By default, the host is the
name of the trace itself (so 1 trace => 1 host).  For CTF traces, the clock
uuid is used to uniquely identify the host (boot session) the trace was taken
from.

Change-Id: Ie35725bc24be4ea5678c94d5ab5680e67892f4be
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/14052
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
lttng: Add workspace location handling

The workspace will be created in ${user.home}/.traceviewer
instead of the default directory of an RCP.

Change-Id: Ib5b038371ffa9aa599f0ff1ec02567894060e901
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14148
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Modify LTTng state provider to ignore scheduler wakeups on already-running processes

Change-Id: I537caf33c348833de65a2836138f694d80a0c4fe
Signed-off-by: François Rajotte <francois.rajotte@polymtl.ca>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/14518
Tested-by: Hudson CI
lttng rcp: Add Trace Viewer Help plug-in

Change-Id: I2e670902c63b022fc6dd6768273accc3f1c41a2d
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/14238
Add indent correction support to SystemTap editor.

- Add IndentHandler code to handle new indent command
- Add STP_STRING partition type to base partition scanner
- Fix SystemTap SimpleEditor to set key bindings to SystemTap context
- Fix SystemTap auto indent test to support STP_STRING partition
- Fix indenter to recognize assignments of strings that don't have
  optional semi-colon as being complete

Change-Id: I490d4d8a6ab153ca7eb6d3b790e1341916f6293a
Reviewed-on: https://git.eclipse.org/r/14671
Tested-by: Hudson CI
Reviewed-by: Camilo Bernal <cabernal@redhat.com>
IP-Clean: Camilo Bernal <cabernal@redhat.com>
Tested-by: Camilo Bernal <cabernal@redhat.com>
tmf: Add unit tests for CTF event contexts

This required adding a new trace "kernel_vm" to the set of
downloaded traces, since we didn't have a trace with event
contexts.

Change-Id: Iee56b26b29088c3d6d017a4adcdf6e9f53bb8688
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/13991
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>