ctf/tmf: allow multiple traces to be open with name clashing events

This is a problem not yet encountered but that will be a showstopper.
If you have two traces with event definitions that have the same name
but different payloads the second one will override the first.

This means that if I have two traces with events that are named "bob"
and we have a state provider for each that looks up different fields
in "bob", one will no longer return the correct values and exceptions
will be thrown everywhere.

Change-Id: I05f9bc0fbbd67374fcf3680d75fcb769c4f32a3a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23285
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf: Fix drag and drop to experiment unnecessarily prompts for rename

When dropping a trace to an experiment in the same project, name
collision occured and the user was prompted for rename.

Change-Id: I0db0d81610a7afbb1df762838bf2129db510c962
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/24884
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf: allow intervals with variable size

Remove the fix data size of a HTInterval in HTNode.

Change-Id: I116053884328318379a72643e7c4bf64b3b912c0
Signed-off-by: Florian Wininger <florian.wininger@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/24795
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
systemtap: Remove dead code all around.

And fix small inconsitencies as spotted.

Change-Id: I7c4a63e9dbaa7651630b26068bb1df30cf3e0bcd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/24992
oprofile/perf: Remove dead code.

And other small changes wherever spotted.

Change-Id: I19616bd1a052d8ec2cf873553bb36a7c45057beb
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/24996
Tested-by: Hudson CI
valgrind: Merge the 3 Expand/Collapse action implementation.

There is no need to have that code copied all around. Make it a single
copy and expor as API.
As this is new API tighten the rules for javadoc so warnings are shown
for all public field/methods that don't have proper one.

Change-Id: I5916d2b5ce6b05968696ae1d8d4ebd79dd2f4dcc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25022
Tested-by: Hudson CI
rpm: Sonar warning fixes.

Change-Id: Iea6c3e579225da9e0582a3ff005ebc3c80ac0df2
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25026
Tested-by: Hudson CI
valgrind: Another round of cleanups.

Thanks to Sonar spotting them.

Change-Id: Ica63ed978266d480baa416a56342aad7a3175fef
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25030
Tested-by: Hudson CI
gcov: Fix warnings.

Thanks to Sonar for identifying them.

Change-Id: I1a20b2a0e752860e1d558fab82ab3b3689153ac2
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25033
Tested-by: Hudson CI
oprofile: Fix warnings.

As identified by Sonar.

Change-Id: I1b68ee593df699d19372edf1a28e8ec913dab1ae
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25048
Tested-by: Hudson CI
gprof: All kind of warning fixes.

Identified by Sonar.

Change-Id: Ibdf80281657598fd30604b5044f7940f6af0547f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25047
Tested-by: Hudson CI
Fix problems reported by API analysis.

- SystemTap @since tags should be 3.0
- API removals in profiling/valgrind require major version bump
- Remove left over classes in o.e.l.dataviewers.annotatedsourceeditor

Change-Id: I068deaf75c495b8332f2db36a494311d70ef12a5
Reviewed-on: https://git.eclipse.org/r/24989
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
TMF: Remove dependency on CTF for analysis unit tests

A new trace stub is added to allow running the test analysis
with a second trace type.

Change-Id: I64298d41c08254031eccf4637369233a5c3ce7bf
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/25018
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
TMF: Add an API to query analyses to obtain their requirements

Change-Id: I764291e0ca5281550a16d61a9aa8dbf5ca05d390
Signed-off-by: Mathieu Rail <contact@mathieurail.com>
Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/22389
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Hudson CI
systemtap: Fix warnings.

Warnings from the last 30 days added report.

Change-Id: Ia1c867c04f42b3162483549ff23bf3be4a5b9dc4
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25097
Tested-by: Hudson CI
libhover: Fix warnings.

Warnings from the last 30 days added report.

Change-Id: I805266a5ff1af259932b5dd37c394659c84e958a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25098
Tested-by: Hudson CI
profiling: Fix warnings.

As identified in the last 30 days sonar report.

Change-Id: I8c6d41dda7ce7ce1208236117b598f8012b78369
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25099
Tested-by: Hudson CI
Fix warnings.

Remaining easy fixes from last 30 days issues report.

Change-Id: Ie098fc73e8a5c32d0d0ad59f658eaba745acde46
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25103
Tested-by: Hudson CI
Add Gcov annotation specification for lines covered "many times".

Use the formula for an outlier (relative to upper quartile) to determine
whether a set of hit counts is large relative to each file, ignoring
lines not covered. Also show lines thoroughly covered in the overview
ruler.

Change-Id: I949c3f330b644482421441548020e91d51dd2ab7
Reviewed-on: https://git.eclipse.org/r/24998
Tested-by: Hudson CI
Reviewed-by: Roland Grunberg <rgrunber@redhat.com>
Tested-by: Roland Grunberg <rgrunber@redhat.com>
LTTng: CPU usage analysis from the LTTng kernel trace

This analysis creates a new state system to save the total time spent on each
CPU by the different threads. It then uses it, along with the LTTng kernel
state system to compute CPU usage statistics in a time range.

Change-Id: Ia60e95c3bace646477aef06d58bdb7ed64c32bd4
Signed-off-by: François Rajotte <francois.rajotte@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/21633
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>