Alexandre Montplaisir [Sat, 28 Apr 2012 09:11:57 +0000 (05:11 -0400)]
tmf: Fix wrong interval returns in the history backend
Since intervals are sorted (by end time) in their nodes,
the algorithm to pick the correct interval during a query
would first find the "starting point", where the intervals
can begin intersecting the target time.
Then, it would iterate over the remainder of the list, but only
comparing the *start* times, since we know that at this point,
the end times should all fit in.
Turns out this is not the case! It's possible for a node's end
time to be greater than its last intervals' end times. So if a
query was done in this "empty space", the node could wrongly
return an interval whose start time fits, but not its end time!
If every other condition is respected, now we additionally check
the end time too. This avoids a potential infinite loop during
range queries.
Also updated the tests accordingly.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Sat, 28 Apr 2012 08:15:01 +0000 (04:15 -0400)]
tmf: Be more lenient with GSS range queries
In the case where t2 (the end time of the range) is greater
than the end time of the trace/history, simply stop doing
queries once we reach the end, instead of throwing errors left
and right.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Sat, 28 Apr 2012 07:45:46 +0000 (03:45 -0400)]
lttng: Update history construction unit tests
Now that builder.run() returns immediately, we have to call
.close() to actually wait until the complete history is built
before we start the tests.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Sat, 28 Apr 2012 07:21:52 +0000 (03:21 -0400)]
lttng: Centralize all event and attribute names in dedicated classes
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Sat, 28 Apr 2012 06:15:29 +0000 (02:15 -0400)]
lttng: Move CTF dummy state provider to the test package
It's still kept around, since it's very useful for benchmarks.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 21:48:15 +0000 (17:48 -0400)]
tmf: Make HistoryBuilder build its index asynchronously
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 21:20:15 +0000 (17:20 -0400)]
tmf: Expose a method to retrieve an attribute's name
In the past, the only way to retrieve quarks was to pass its
exact name, so it implied we knew the name in the first place...
But with wildcard methods like getQuarks(), we won't necessarily
know the name of the quarks we receive. This new method will
allow the user to do a reverse lookup on the name.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 18:53:51 +0000 (14:53 -0400)]
lttng: Explicitely return a StateHistorySystem in kernel traces
We build it ourselves, so we'll know what the type is.
Also fixed a missing assignement to the class field.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:54:00 +0000 (13:54 -0400)]
lttng: Handle existing but invalid state index files
If a ".ht" file already exists we try to re-use it first. But if
this step fails, now we'll just scrap the existing file and build
a new one.
Other than the many possible error causes, this will be useful
for dealing with incompatible changes to the file format, for example.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:22:48 +0000 (13:22 -0400)]
lttng: Replace CTF- class prefix by Ctf-
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:22:36 +0000 (13:22 -0400)]
lttng: Disable statistics in the state provider for now
One state change per event makes the resulting history HUGE!
Statistics-coming-from-the-state aren't used yet, hopefully the
partial histories are ready by the time those statistics are
implemented, this will pretty much solve any space problems
we might have.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:22:29 +0000 (13:22 -0400)]
lttng: Rework the trace type extension points
Move the LTTng 2.0 kernel type to lttng2.kernel.ui.
Also add a "Generic CTF" trace type, which lives directly in tmf.ui,
since TMF contains the CtfAdaptor, so it can read any kind of CTF
trace (albeit with little specific information).
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:22:17 +0000 (13:22 -0400)]
lttng: First draft of CtfKernelTrace
This extension of CtfTmfTrace will connect the correct state provider
with the GSS in tmf.core, and will build a history if there is none
already present in the trace's directory.
Also added references to the trace's state system in CtfTmfTrace.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:11:54 +0000 (13:11 -0400)]
ctf: Actually close the filechannels to the streams
Once we get the option to unload a trace from an experiment,
we can call .finalize(), which will ensure the descriptors are
closed.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:11:35 +0000 (13:11 -0400)]
ctf: Refactor CTFTrace's constructor
Squash 4-5 private methods that were only used by the constructor
into the constructor itself. This allows us to use 'final' fields
more efficiently.
Also ran the formatter on the whole file.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:11:29 +0000 (13:11 -0400)]
ctf: Plug some resource leaks in the metadata parsing
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:11:21 +0000 (13:11 -0400)]
ctf: Fix some simple warnings in the code and tests
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:11:16 +0000 (13:11 -0400)]
lttng: Update kernel provider tests to the new trace location
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:11:02 +0000 (13:11 -0400)]
ctf: Update the script that downloads test traces
Centralize all the CTF traces under the CTF plugin. Also simplified
the script a bit, and updated the locations.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:10:55 +0000 (13:10 -0400)]
tmf: Remove unneeded annotations in the CTF adaptor
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:10:48 +0000 (13:10 -0400)]
tmf: Fix potential resource leaks in the GSS
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:10:42 +0000 (13:10 -0400)]
tmf: Add a proper toString() to history tree intervals
or else printing intervals for debug is not very informative...
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:10:35 +0000 (13:10 -0400)]
tmf: Fix indentation of a previous commit
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:10:27 +0000 (13:10 -0400)]
lttng: Use getEventName() in the kernel state provider
getSource() now does what it's supposed to do.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 17:09:49 +0000 (13:09 -0400)]
lttng: Update timestamp used in tests
CTF timestamps are now in UTC absolute time, and
not relative to the start time of the machine.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:45:57 +0000 (11:45 -0400)]
lttng: Small regression test for the new range queries
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:45:48 +0000 (11:45 -0400)]
tmf: Add option to specify a resolution to range queries
When we want to populate a view using intervals from the state system,
we don't usually care about the information we can't even show in the
view (for example, for states whose duration are smaller than the length
of one pixel at the current zoom level).
This new variant to queryHistoryRange() adds a 'resolution' parameter,
which is a minimum timestamp between query points. This is only a
minimum: if the current interval is longer than the pixel, we won't
do useless queries in between.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:45:36 +0000 (11:45 -0400)]
tmf: Make the basic query method multi-thread safe
Merge the functionality of queryState() into loadStateAtTime(). Now
loadStateAtTime() will return a List of ITmfStateInterval directly,
instead of keeping a single array internally and returning different
references of it.
If the caller wants to multi-thread its access to the returned list,
it's completely up to it now.
Also updated the Javadoc to reflect the new behavior.
Fixes bug #376426
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:45:27 +0000 (11:45 -0400)]
tmf: Fix statesystem-related FindBugs warnings in tmf.core
Fixes bug #376225
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:45:16 +0000 (11:45 -0400)]
lttng: Fix FindBugs warnings in lttng2.kernel.core.tests
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:45:08 +0000 (11:45 -0400)]
tmf: Enforce existing sv types when reusing attributes
Once we assign an Integer or String statevalue to an attribute, make
sure every subsequent modification keeps using statevalues of the
same type.
This is a new restriction that was not there before, but it makes
sense to add it to the design. It also helps to isolate problems
in the state provider.
Fixes Eclipse bug #375878
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:44:59 +0000 (11:44 -0400)]
lttng: Fix the last StateSystem unit test
It's a stack attribute, the top-level only returns
the depth of the stack...
Fixes bug #375459
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:44:44 +0000 (11:44 -0400)]
tmf: Make the statesystem push/pop logic a bit more robust
Replace the almost-useless assert() with proper exception throws.
Also refactored some of the nested if's, should be a tiny bit more
clear now.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 27 Apr 2012 15:44:00 +0000 (11:44 -0400)]
tmf: Allow attaching messages to GSS exceptions
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Bernd Hufmann [Fri, 27 Apr 2012 11:33:48 +0000 (07:33 -0400)]
Update JUnit tests
Francois Chouinard [Fri, 27 Apr 2012 02:27:19 +0000 (22:27 -0400)]
Update TmfTrace javadoc
Francois Chouinard [Thu, 26 Apr 2012 01:16:27 +0000 (21:16 -0400)]
Simplify TmfEvent constructors and update javadoc
Francois Chouinard [Thu, 26 Apr 2012 23:30:33 +0000 (19:30 -0400)]
Minor API improvements
Francois Chouinard [Wed, 25 Apr 2012 20:39:05 +0000 (16:39 -0400)]
Fix Sonar findings in TmfEvent
Francois Chouinard [Wed, 25 Apr 2012 14:06:04 +0000 (10:06 -0400)]
Fix Sonar findings for TmfEvent and TmfTrace
Bernd Hufmann [Thu, 26 Apr 2012 19:48:23 +0000 (15:48 -0400)]
Minor String and Java-doc updates
Bernd Hufmann [Thu, 26 Apr 2012 18:23:38 +0000 (14:23 -0400)]
Update icons, component display name and tooltip (LTTng 2.0 control)
Bernd Hufmann [Wed, 25 Apr 2012 19:46:10 +0000 (15:46 -0400)]
Update DeleteHandler (LTTng 2.0 tracer control) and JUnit tests
Bernd Hufmann [Wed, 25 Apr 2012 15:44:52 +0000 (11:44 -0400)]
Handle bookmark removal and change in TmfEventsView (Bug 377651)
Francois Chouinard [Tue, 24 Apr 2012 20:59:20 +0000 (16:59 -0400)]
Implement TmfTrace changes - introduce TmfTraceException
Francois Chouinard [Tue, 24 Apr 2012 18:54:16 +0000 (14:54 -0400)]
Merge branch 'master' into TmfTraceModel-new
Conflicts:
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/trace/TmfTrace.java
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/project/handlers/OpenExperimentHandler.java
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/EventsViewEditor.java
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/editors/TmfEventsEditor.java
lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/viewers/events/TmfEventsTable.java
Francois Chouinard [Tue, 24 Apr 2012 18:07:13 +0000 (14:07 -0400)]
Refactor TmfTrace and dependencies - minor changes
Bernd Hufmann [Tue, 24 Apr 2012 17:38:19 +0000 (13:38 -0400)]
Fix searching and filtering in TMF events table (bug 377558)
Bernd Hufmann [Tue, 24 Apr 2012 17:02:48 +0000 (13:02 -0400)]
Fix performance issues (Bug 377544)
Francois Chouinard [Tue, 24 Apr 2012 15:12:18 +0000 (11:12 -0400)]
Refactor TmfTrace and dependencies - minor changes
Francois Chouinard [Tue, 24 Apr 2012 11:40:31 +0000 (07:40 -0400)]
Refactor TmfTrace and dependencies - move parseEvent to ITmfEventParser
Bernd Hufmann [Mon, 23 Apr 2012 19:37:18 +0000 (15:37 -0400)]
Update User Guide for LTTng 2.0 Tracer Control
Bernd Hufmann [Mon, 23 Apr 2012 19:21:19 +0000 (15:21 -0400)]
Update enable channel and event dialogs and handlers
Bernd Hufmann [Mon, 23 Apr 2012 12:45:20 +0000 (08:45 -0400)]
Add cancel button to dialogs for LTTng 2.0 tracer control
Francois Chouinard [Fri, 20 Apr 2012 23:05:53 +0000 (19:05 -0400)]
Refactor TmfTrace and dependencies - finalize ITmfTraceIndexer
Francois Chouinard [Fri, 20 Apr 2012 17:10:57 +0000 (13:10 -0400)]
Refactor TmfTrace and dependencies - finalize ITmfTraceIndexer
Francois Chouinard [Thu, 19 Apr 2012 22:14:00 +0000 (18:14 -0400)]
Refactor TmfTrace and dependencies - introduce ITmfTraceIndexer
Francois Chouinard [Wed, 18 Apr 2012 21:52:54 +0000 (17:52 -0400)]
Refactor TmfTrace and dependencies - remove indexTrace()
Francois Chouinard [Wed, 18 Apr 2012 14:21:40 +0000 (10:21 -0400)]
Refactor TmfTrace and dependencies - remove getTrace()
Bernd Hufmann [Wed, 18 Apr 2012 13:52:24 +0000 (09:52 -0400)]
Add discard option to create channel dialog + updated command logging
Bernd Hufmann [Tue, 17 Apr 2012 19:29:19 +0000 (15:29 -0400)]
Add groundwork for multiple version support of LTTng 2.0 tracer control
Francois Chouinard [Tue, 17 Apr 2012 19:17:32 +0000 (15:17 -0400)]
Refactor TmfTrace and dependencies - fix parent class, remove clone()
Francois Chouinard [Tue, 17 Apr 2012 18:17:18 +0000 (14:17 -0400)]
Refactor TmfCheckpoint and dependencies (+JUnits)
Francois Chouinard [Tue, 17 Apr 2012 17:12:11 +0000 (13:12 -0400)]
Merge branch 'master' into TmfTraceModel-new
Conflicts:
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfIterator.java
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/experiment/TmfExperiment.java
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/experiment/TmfExperimentContext.java
Bernd Hufmann [Tue, 17 Apr 2012 13:07:34 +0000 (09:07 -0400)]
Add preferences for LTTng 2.0 tracer control
Francois Chouinard [Mon, 16 Apr 2012 19:41:56 +0000 (15:41 -0400)]
Merge master in TmfTraceModel
Francois Chouinard [Mon, 16 Apr 2012 18:25:51 +0000 (14:25 -0400)]
Fix a test setup
Matthew Khouzam [Mon, 16 Apr 2012 15:40:11 +0000 (11:40 -0400)]
Change Icon from a giant mole to a reasonable penguin.
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Matthew Khouzam [Thu, 12 Apr 2012 21:57:16 +0000 (17:57 -0400)]
improve test coverage and fix go to last event bug
Matthew Khouzam [Thu, 12 Apr 2012 19:29:13 +0000 (15:29 -0400)]
Define CTF API
Matthew Khouzam [Thu, 12 Apr 2012 15:45:12 +0000 (11:45 -0400)]
Add environment variables view widget
Matthew Khouzam [Thu, 12 Apr 2012 15:43:24 +0000 (11:43 -0400)]
add Environment variables to ctf interface
Matthew Khouzam [Thu, 12 Apr 2012 15:39:36 +0000 (11:39 -0400)]
add LTTng icon to LTTng Traces
Matthew Khouzam [Wed, 11 Apr 2012 19:04:58 +0000 (15:04 -0400)]
internalize some CTF API
Matthew Khouzam [Tue, 10 Apr 2012 22:04:29 +0000 (18:04 -0400)]
Add support for offsets in event creation
Matthew Khouzam [Tue, 10 Apr 2012 21:23:59 +0000 (17:23 -0400)]
Fix warnings
Matthew Khouzam [Tue, 10 Apr 2012 20:44:53 +0000 (16:44 -0400)]
fix post-merge to get it to compile.
Matthew Khouzam [Tue, 3 Apr 2012 21:41:06 +0000 (17:41 -0400)]
Add support in the UI for LTTng 2.0.
signed-off by: YEAH BABY
Matthew Khouzam [Tue, 3 Apr 2012 14:23:05 +0000 (10:23 -0400)]
Change certain classes to use ITmfEvent instead of TmfEvent.
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Matthew Khouzam [Thu, 29 Mar 2012 17:11:14 +0000 (13:11 -0400)]
Add a headless test
Conflicts:
lttng/org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/headless/Benchmark.java
Matthew Khouzam [Thu, 29 Mar 2012 15:25:18 +0000 (11:25 -0400)]
changed TmfEvent to ITmfEvent
Matthew Khouzam [Thu, 29 Mar 2012 15:26:24 +0000 (11:26 -0400)]
Add Lttng 2.0 trace to Lttng View
Matthew Khouzam [Thu, 29 Mar 2012 14:38:52 +0000 (10:38 -0400)]
add fallback for seeking by unindexed traces
Matthew Khouzam [Wed, 28 Mar 2012 22:16:51 +0000 (18:16 -0400)]
Add support for seeks by index.
Matthew Khouzam [Fri, 23 Mar 2012 18:36:41 +0000 (14:36 -0400)]
Fix seek bug.
Adds indexing.
Conflicts:
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java
Matthew Khouzam [Tue, 10 Apr 2012 14:26:35 +0000 (10:26 -0400)]
fix seek with offsetted timestamps.
Matthew Khouzam [Tue, 10 Apr 2012 14:27:14 +0000 (10:27 -0400)]
add benchmarks
Conflicts:
lttng/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/headless/ReadTrace.java
Matthew Khouzam [Tue, 10 Apr 2012 19:54:44 +0000 (15:54 -0400)]
Change output of ctf toStrings to be more human readable.
Matthew Khouzam [Thu, 29 Mar 2012 17:11:14 +0000 (13:11 -0400)]
Added a headless test
Matthew Khouzam [Tue, 3 Apr 2012 14:47:39 +0000 (10:47 -0400)]
update events table in lttng.ui to have an ITmfEvent.
Matthew Khouzam [Thu, 22 Mar 2012 22:19:18 +0000 (18:19 -0400)]
Added faster indexed seeks.
Matthew Khouzam [Tue, 20 Mar 2012 18:04:33 +0000 (14:04 -0400)]
Added getOffset to a trace and updated benchmark.
Matthew Khouzam [Tue, 20 Mar 2012 18:04:33 +0000 (14:04 -0400)]
Added getOffset to a trace and updated benchmark.
Matthew Khouzam [Mon, 19 Mar 2012 15:42:58 +0000 (11:42 -0400)]
Added an interesting headless test. It is more there to show how someone
can use the trace.
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Matthew Khouzam [Fri, 16 Mar 2012 21:43:56 +0000 (17:43 -0400)]
Generalized trace test added. Can be useful for profiling.
Francois Chouinard [Mon, 16 Apr 2012 14:20:58 +0000 (10:20 -0400)]
Work on TmfCheckpoint
Francois Chouinard [Mon, 16 Apr 2012 13:54:55 +0000 (09:54 -0400)]
Merge branch 'master' into TmfTraceModel-new
Francois Chouinard [Fri, 13 Apr 2012 20:13:19 +0000 (16:13 -0400)]
Refactor TmfCheckpoint and dependencies
Francois Chouinard [Fri, 13 Apr 2012 18:48:11 +0000 (14:48 -0400)]
Fix tabs/spaces for ITmfEvent
Francois Chouinard [Fri, 13 Apr 2012 18:05:21 +0000 (14:05 -0400)]
Refactor ITmfContext and fix dependencies
This page took 0.039899 seconds and 5 git commands to generate.