[TMF] Handle custom traces in TmfTraceType in a more consistent way

Instead of storing the custom trace types by human readable name, store them by traceId like the other trace types.
The trace Id is the canonical name + the definition name. This makes it consistent with TmfTraceElement.getTraceType.
Also, consolidate code that can reuse TmfTraceType.setTraceType.

Change-Id: Iac81c8d4fdf18eb83a84052c4c47d70d94cd64d5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/16977
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
[TMF] Remove TmfStringLocation

TmfStringLocation is not used except in tests and since we expect all checkpoints
to be of the same fixed size, it doesn't really make sense to keep this class around anymore.

Change-Id: I870c72fe6a26dd15cec7249393221cc9907bc340
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17047
Tested-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
tmf: Don't use .deleteOnExit() in unit tests

deleteOnExit() guarantees the file will be deleted *when the JVM exits*.
However, in most cases with unit tests, you want to clean up at the end
of the test, and not wait until the whole test run is over. This gives
more consistent behavior when running different tests in a different order.

So instead use a simple .delete() in @AfterClass methods.

Change-Id: I07f277dbe85b66659ca66c996b232cd64bb6868f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17136
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Dipose traces in CtfTmfTestTrace

Automatically dispose existing traces in CtfTmfTestTrace. This ensures
much more consistent behavior between tests. This required fixing some
tests that did bad assumptions.

Change-Id: I962044e741bd1e12505761d3d4257c0d76cfc5e4
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17137
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
RPM: Add menu for building RPMs

New menu items have been added, as well as reorganized,
to accomodate 3 new RPM options: Build SRPM, Build RPMS,
and Build All.

The purpose is to remove it from the export page and make
it similar to eclipse-fedorapackager building functions.

Bug: 279648

Change-Id: I5ede34422e570e2bc87ddd5c54985f086113cdfb
Signed-off-by: Neil Guzman <nguzman@redhat.com>
Reviewed-on: https://git.eclipse.org/r/16380
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
rpm: Bump versions and fix api annotations.

New api require newer version. 
Also since tags are only major.minor.

Change-Id: I96c897cdae6f0a7f31b823bd2235fa7e0a10a177
Reviewed-on: https://git.eclipse.org/r/17202
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
RPM: remove export wizard and properties

Remove unused export pages after transfer to RPM menus.

Bug: 279648
Related to: I5ede34422e570e2bc87ddd5c54985f086113cdfb

Change-Id: If8c638fe5e59a27f4639951563b20fa2b11e86db
Signed-off-by: Neil Guzman <nguzman@redhat.com>
Reviewed-on: https://git.eclipse.org/r/16381
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
RPM: add toolbar menu icons for RPM Build

Simple new feature to allow users to simply click a button
to build their RPMs. Build All (binary & source) is the default
function.

Icons will be improved on in the near future.

Bug: 418439

Change-Id: Ie42d5163614b493193e82de79f34339ed25858c3
Signed-off-by: Neil Guzman <nguzman@redhat.com>
Reviewed-on: https://git.eclipse.org/r/16971
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
tmf: Add unit tests for lost event statistics

Dropped the core.statistics messages file, use the string defined
in the CTF plugin for lost event names (it shouldn't really be
externalized).

Change-Id: I7f6a3ecb7b3be5c7a665a44a8c2882d3bb42419f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/16664
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
Generate timestamp for data files being displayed.

Change-Id: Iafcae2b855fd715c61e384e4e0ad2454b1cafa53
Reviewed-on: https://git.eclipse.org/r/16943
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
Specify target runtime environments in build

This gets rid of the warnings "No explicit target runtime environment
configuration. Build is platform dependent".
This also allows cross-compiling. The Linux tools p2 repo can now be
built on Windows and Mac.

Change-Id: Ifa1257b5ae67123d51947536de180e611a3d8ed2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/16866
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Tested-by: Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
IP-Clean: Alexander Kurtakov <akurtako@redhat.com>
Tested-by: Alexander Kurtakov <akurtako@redhat.com>
Generate timestamp for data files being displayed in gcov/gprof.

Change-Id: Iecf2de4ae7d986805abce30363fb4565fb8b6409
Reviewed-on: https://git.eclipse.org/r/17316
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
IP-Clean: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
ctf: Clamp float and integer declaration alignments to 1

Alignments < 1 don't make much sense, so make sure the stored value is
always at least 1. StructDeclaration was doing this check, but Integer
and FloatDeclaration were not.

Change-Id: Iedb42a6fdda8706b7e8f522df10f67f2145bbba2
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17434
Tested-by: Hudson CI
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Fix Float reading in CTF traces

Ensure that the BitBuffer's potision is aligned properly with respect
to the FloatDeclaration's alignment constraints before reading the
value.

Reference bug #419536

Change-Id: Ia0e5aadb7baa7899cbddaded1bfe593ea734e89c
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Reviewed-on: https://git.eclipse.org/r/17432
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>
ctf: Log errors when events cannot be read

This lets the user have a way of knowing something when wrong when
reading the trace, instead of silently gobbling the exception.

Change-Id: I8aef2cddde147a95075e9935aafc62e993a9cdcd
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17437
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
ctf: Take alignment into consideration for Strings too

The alignment was not taken into consideration at all when reading
strings. It seemed to work so far for standardly-aligned fields, but
it stopped being the case with funky alignments.

This seems to fix bug #419536.

Change-Id: I4bbcb4dff2e8b68f0d86557d84b158131a9945d7
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17438
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tracing rcp: Press F1 to get help

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Change-Id: Ie5a150637e3e20e614fe31f8e4ecf8913afb7abf
Reviewed-on: https://git.eclipse.org/r/17473
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf: Split the statistics in two separate providers

Use separate state providers and backends (and so, two separate .ht files)
to store the statistics information. This will make it easier to eventually
swtich the event-types provider to a partial history backend - two one-liners
basically (or do we say one two-liner?)

Change-Id: If11956af12795a406f42c05b2cd67f82867850da
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/11458
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng-rcp: create separate RCP branding feature

Having a separated branding feature makes it easier to build
other RCP products based on the LTTng tracing RCP using own
product definition and branding.

Also update the LTTng releng to provide the RCP feature on the
LTTng update site.

Change-Id: Id265e3f2e71247c55ed1590aedecca6d312b3bbb
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/16647
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Add ... to Configure min max because it's a dialog

Change-Id: I789ab46612905c6ddbd52196cc87b6095c640094
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17320
Tested-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
IP-Clean: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@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>