deliverable/tracecompass.git
12 years agotmf: Also assign the end time when opening a CTF trace
Alexandre Montplaisir [Mon, 14 May 2012 19:19:45 +0000 (15:19 -0400)] 
tmf: Also assign the end time when opening a CTF trace

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agoMerge branch 'master'
Francois Chouinard [Mon, 14 May 2012 20:28:41 +0000 (16:28 -0400)] 
Merge branch 'master'

12 years agoAdd a TmfLegacyExperiment for the LTTng 0.x
Francois Chouinard [Mon, 14 May 2012 20:22:07 +0000 (16:22 -0400)] 
Add a TmfLegacyExperiment for the LTTng 0.x

12 years agoFixed lost event bug.
Mathieu Denis [Mon, 14 May 2012 20:03:28 +0000 (16:03 -0400)] 
Fixed lost event bug.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoUse supplementary directory for state history tree
Bernd Hufmann [Mon, 14 May 2012 16:07:20 +0000 (12:07 -0400)] 
Use supplementary directory for state history tree

12 years agoAdd handling of supplementary files of traces
Bernd Hufmann [Thu, 10 May 2012 18:05:08 +0000 (14:05 -0400)] 
Add handling of supplementary files of traces

12 years agolttng: Use a different CtfTmfTrace object for every test
Alexandre Montplaisir [Mon, 14 May 2012 14:33:05 +0000 (10:33 -0400)] 
lttng: Use a different CtfTmfTrace object for every test

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agoClean up code.
Matthew Khouzam [Fri, 11 May 2012 21:49:09 +0000 (17:49 -0400)] 
Clean up code.

12 years agolttng: Make sure we assign a value to all created quarks
Alexandre Montplaisir [Fri, 11 May 2012 22:41:40 +0000 (18:41 -0400)] 
lttng: Make sure we assign a value to all created quarks

Rework the fix in f3013ba. If a quark gets created but is never
ever used over the span of the whole history, it ends up not
having any value whatsover, not even null. At query time, it
would query the empty space in the HT nodes for its value,
returning 0 most of the time.

Now we manually assign a value to all Thread sub-attributes,
depending on the event type.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Use static final's for the StateValue types
Alexandre Montplaisir [Fri, 11 May 2012 22:51:24 +0000 (18:51 -0400)] 
tmf: Use static final's for the StateValue types

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Make HistoryBuilder use a TMF request for its events
Alexandre Montplaisir [Thu, 10 May 2012 20:54:25 +0000 (16:54 -0400)] 
tmf: Make HistoryBuilder use a TMF request for its events

Initially, the IStateChangeInput object would have to open
the trace itself, and merely send state changes. Rework this
interface so that we now have to pass it the events. This
allows HistoryBuilder to hook into TMF's event requests, and
benefit from the coalescing.

This will be tweaked a bit more soon, when we put all indexing
requests together.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Clarify why CtfTmfEvent's constructor is public
Alexandre Montplaisir [Thu, 10 May 2012 19:41:54 +0000 (15:41 -0400)] 
tmf: Clarify why CtfTmfEvent's constructor is public

The default constructor for null event should be accessed
via the static singleton constructor in normal cases. I tried
to change it back to private, but it breaks some OSGI stuff
because this is used in extension points.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agoIntroduce TmfLegacyExperiment
Francois Chouinard [Fri, 11 May 2012 21:34:27 +0000 (17:34 -0400)] 
Introduce TmfLegacyExperiment

12 years agoChange tabs for commas to separate fields.
Matthew Khouzam [Fri, 11 May 2012 21:04:31 +0000 (17:04 -0400)] 
Change tabs for commas to separate fields.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoClean up Parser and Lexer. Some fixes are more for findbugs than actual
Matthew Khouzam [Fri, 11 May 2012 20:56:13 +0000 (16:56 -0400)] 
Clean up Parser and Lexer. Some fixes are more for findbugs than actual
bugs.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoFix experiment checkpoint issue with CTF traces
Francois Chouinard [Fri, 11 May 2012 18:27:13 +0000 (14:27 -0400)] 
Fix experiment checkpoint issue with CTF traces

12 years agomake Resolution enum public, since it is used in public API
Xavier Raynaud [Thu, 10 May 2012 07:53:07 +0000 (09:53 +0200)] 
make Resolution enum public, since it is used in public API

12 years agolttng: Split process status in user and kernel modes
Alexandre Montplaisir [Wed, 9 May 2012 21:48:29 +0000 (17:48 -0400)] 
lttng: Split process status in user and kernel modes

The attribute Thread/Status will now also track if the
thread is in kernel mode (in a system call) or in user mode.
This will match more closely what is wanted in the Control
Flow View.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Ensure we don't return null on GSS queries
Alexandre Montplaisir [Wed, 9 May 2012 20:15:50 +0000 (16:15 -0400)] 
tmf: Ensure we don't return null on GSS queries

This would indicate a problem with the backend anyway, since
by design there should be no "holes" in a state history.

But since this can still happen, if there's a problem with the
backend or if the file is corrupted for example, then we should
catch (and log) the error here, and guarantee what is sent up
is non-null.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Synchronize accesses to the history files
Alexandre Montplaisir [Tue, 8 May 2012 20:00:32 +0000 (16:00 -0400)] 
tmf: Synchronize accesses to the history files

It seems the file channel positions are saved in each thread's
context on Linux, but not on Windows. This makes concurrent
queries to the state history very prone to breakage. This
small change makes sure a complete node is read before a
thread can be preempted.

In pratice the performance impact shouldn't be too big, since
both threads would be blocked by the same disk even if we
allowed concurrent access.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Change syscalls to a flat attribute instead of a stack
Alexandre Montplaisir [Mon, 7 May 2012 21:58:01 +0000 (17:58 -0400)] 
lttng: Change syscalls to a flat attribute instead of a stack

This will not show nested syscalls correctly, but those were
very rare in the first place, and have been completely removed
in recent kernel versions.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Provide a way to get the number of attributes in a system
Alexandre Montplaisir [Mon, 7 May 2012 18:54:18 +0000 (14:54 -0400)] 
tmf: Provide a way to get the number of attributes in a system

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agoimprove test coverage in CtfLocation
Matthew Khouzam [Wed, 9 May 2012 21:00:48 +0000 (17:00 -0400)] 
improve test coverage in CtfLocation

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoMerge branch 'master' into API
Francois Chouinard [Wed, 9 May 2012 20:26:20 +0000 (16:26 -0400)] 
Merge branch 'master' into API

12 years agoFix seek behaviour in CtfAdaptor
Patrick Tasse [Wed, 9 May 2012 20:15:31 +0000 (16:15 -0400)] 
Fix seek behaviour in CtfAdaptor

12 years agoImprove test coverage.
Matthew Khouzam [Wed, 9 May 2012 19:02:27 +0000 (15:02 -0400)] 
Improve test coverage.
Fix EventDeclaration.equals()

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd toString to CtfLocation to allow easier debugging.
Matthew Khouzam [Wed, 9 May 2012 19:00:55 +0000 (15:00 -0400)] 
Add toString to CtfLocation to allow easier debugging.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoImprove API.
Matthew Khouzam [Wed, 9 May 2012 15:19:35 +0000 (11:19 -0400)] 
Improve API.
Update test cases.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoRefactor TmfTrace and TmfExperiment
Francois Chouinard [Tue, 8 May 2012 21:40:57 +0000 (17:40 -0400)] 
Refactor TmfTrace and TmfExperiment

12 years agoFix test case. It really is supposed to return true.
Matthew Khouzam [Fri, 4 May 2012 19:48:09 +0000 (15:48 -0400)] 
Fix test case. It really is supposed to return true.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoRefactor TmfExperiment (2)
Francois Chouinard [Fri, 4 May 2012 22:06:02 +0000 (18:06 -0400)] 
Refactor TmfExperiment (2)

12 years agoRefactor TmfExperiment
Francois Chouinard [Fri, 4 May 2012 13:49:40 +0000 (09:49 -0400)] 
Refactor TmfExperiment

12 years agoFix for Linux tree item height bug.
Patrick Tasse [Fri, 4 May 2012 19:58:05 +0000 (15:58 -0400)] 
Fix for Linux tree item height bug.

12 years agoIncrease GUI delay value for GUI test case
Bernd Hufmann [Fri, 4 May 2012 19:46:47 +0000 (15:46 -0400)] 
Increase GUI delay value for GUI test case

12 years agoUpdate internal packages export in LTTng 2.0 control + update java doc
Bernd Hufmann [Fri, 4 May 2012 18:54:43 +0000 (14:54 -0400)] 
Update internal packages export in LTTng 2.0 control + update java doc

12 years agoImprove package tangle index for LTTng 2.0 control design
Bernd Hufmann [Fri, 4 May 2012 17:33:27 +0000 (13:33 -0400)] 
Improve package tangle index for LTTng 2.0 control design

12 years agoctf: Allow finalizing CTFTrace's if validation failed
Alexandre Montplaisir [Fri, 4 May 2012 17:58:27 +0000 (13:58 -0400)] 
ctf: Allow finalizing CTFTrace's if validation failed

A NPE could happen during finalize() if an exception was thrown
before the constructor could complete. Move the new-ification of
the FileChannel container to the beginning, and use a List instead
of a static array.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoMove raw event viewer widget to its own package.
Patrick Tasse [Fri, 4 May 2012 17:02:33 +0000 (13:02 -0400)] 
Move raw event viewer widget to its own package.

12 years agotmf: Don't close the input stream in the SHS constructor
Alexandre Montplaisir [Fri, 4 May 2012 15:55:07 +0000 (11:55 -0400)] 
tmf: Don't close the input stream in the SHS constructor

This stream belongs to the History Tree itself, so if we close
it here we could hit ClosedChannelExceptions later on, under
certain conditions.

Instead, don't keep a local reference to this stream, so static
analysis tools don't expect us to close it.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agoImprove test cases. Coverage of 85%+ and fix bugs.
Matthew Khouzam [Thu, 3 May 2012 22:55:57 +0000 (18:55 -0400)] 
Improve test cases. Coverage of 85%+ and fix bugs.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd javadoc and comments
Matthew Khouzam [Thu, 3 May 2012 18:28:32 +0000 (14:28 -0400)] 
Add javadoc and comments

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoMore fixes of static analysis warnings for UML2SD
Bernd Hufmann [Thu, 3 May 2012 20:07:59 +0000 (16:07 -0400)] 
More fixes of static analysis warnings for UML2SD

12 years agoFix for Linux display bugs in TimeGraphCombo.
Patrick Tasse [Thu, 3 May 2012 20:14:05 +0000 (16:14 -0400)] 
Fix for Linux display bugs in TimeGraphCombo.

12 years agoBug 378402: Implementation of ControlFlow view and Resources view for
Patrick Tasse [Thu, 3 May 2012 18:42:19 +0000 (14:42 -0400)] 
Bug 378402: Implementation of ControlFlow view and Resources view for
LTTng 2.0.

12 years agoBug 378401: Implementation of time graph widget.
Patrick Tasse [Thu, 3 May 2012 18:36:28 +0000 (14:36 -0400)] 
Bug 378401: Implementation of time graph widget.

12 years agoRemove bookmarks file on drag&drop trace copy.
Patrick Tasse [Thu, 3 May 2012 18:07:22 +0000 (14:07 -0400)] 
Remove bookmarks file on drag&drop trace copy.

12 years agoMove legacy time analysis widget to lttng.ui and create initial copy in
Patrick Tasse [Wed, 11 Apr 2012 22:17:53 +0000 (18:17 -0400)] 
Move legacy time analysis widget to lttng.ui and create initial copy in
tmf.ui.

12 years agoRemove warnings and fix a windows bug with CtfTmfTrace.getName()
Matthew Khouzam [Thu, 3 May 2012 17:42:20 +0000 (13:42 -0400)] 
Remove warnings and fix a windows bug with CtfTmfTrace.getName()

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoImprove CTF timestamp output, will now output in y/m/d, h:m:s.ns or ns or s (double)
Matthew Khouzam [Thu, 3 May 2012 17:03:31 +0000 (13:03 -0400)] 
Improve CTF timestamp output, will now output in y/m/d, h:m:s.ns or ns or s (double)

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoFix static analysis warnings for UML2SD
Bernd Hufmann [Thu, 3 May 2012 14:19:40 +0000 (10:19 -0400)] 
Fix static analysis warnings for UML2SD

12 years agoJava Doc and API clean up of TMF UML Sequence diagram framework
Bernd Hufmann [Wed, 2 May 2012 15:01:46 +0000 (11:01 -0400)] 
Java Doc and API clean up of TMF UML Sequence diagram framework

12 years agoImprove test cases, speed and accuracy.
Matthew Khouzam [Wed, 2 May 2012 19:58:20 +0000 (15:58 -0400)] 
Improve test cases, speed and accuracy.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agotmf: Provide a special interval end time return value for views
Alexandre Montplaisir [Tue, 1 May 2012 20:13:46 +0000 (16:13 -0400)] 
tmf: Provide a special interval end time return value for views

The complete state model in TMF is based on the fact that states
end *before* the next state is started. This ensures we cannot
have 2 active states for a given attribute at a given timestamp.

However, this is not ideal for the viewers, because it leaves
gaps between intervals if we use those timestamps as-is. After
much head-banging, the simplest solution that was found was to
add a method in the ITmfStateInterval interface that viewers can
use to get their own version of the interval's end time.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Correctly save the history backend's end time
Alexandre Montplaisir [Wed, 2 May 2012 03:30:28 +0000 (23:30 -0400)] 
tmf: Correctly save the history backend's end time

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Rework the IRQ event handler
Alexandre Montplaisir [Tue, 1 May 2012 22:05:50 +0000 (18:05 -0400)] 
lttng: Rework the IRQ event handler

Implement the softIrq handlers. Drop the IRQ_stack sub-tree,
put the IRQ stuff under Resources/IRQs and Resources/Soft_IRQs.

This matches more closely what is needed by the Resource view.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Use scope-limiting braces in the event handler
Alexandre Montplaisir [Tue, 1 May 2012 21:34:32 +0000 (17:34 -0400)] 
lttng: Use scope-limiting braces in the event handler

This will prevent event-specific variables from leaking
from one case to another.

I used to get weird compiler errors with OpenJDK 7 about one
year ago when trying to do this, but I just retested with a more
recent version and it seems to work fine now.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Cache all top-level attribute nodes
Alexandre Montplaisir [Tue, 1 May 2012 21:13:41 +0000 (17:13 -0400)] 
lttng: Cache all top-level attribute nodes

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Always create the sub-attributes of TID nodes
Alexandre Montplaisir [Tue, 1 May 2012 19:29:32 +0000 (15:29 -0400)] 
lttng: Always create the sub-attributes of TID nodes

This makes the history slightly bigger, but it avoids having
to catch all sort of exceptions in the views, for the cases
where the expected sub-attributes never get populated. Now
they will simply contain a "null" value for the whole duration.

Also relaxed the test cases a bit, changed it so we won't have
to update them every time we make a single change to the state
provider.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Don't update previous data wrt sched_switch trace event
Alexandre Montplaisir [Tue, 1 May 2012 18:52:58 +0000 (14:52 -0400)] 
lttng: Don't update previous data wrt sched_switch trace event

Some event types in the event handler update past data
(to correctly identify "unknown" threads for example),
but this should not be done in the case of sched_switch.

The problem is that sched_switch is always called after
a sched_exit, and since the sched_exit's handler deletes
all information related to this process, we do not want
the following sched_switch to restore the Exec_name for
example.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Add icons for CTF and LTTng trace types
Alexandre Montplaisir [Tue, 1 May 2012 18:48:05 +0000 (14:48 -0400)] 
tmf: Add icons for CTF and LTTng trace types

12 years agofix empty trace bug
Matthew Khouzam [Tue, 1 May 2012 20:35:56 +0000 (16:35 -0400)] 
fix empty trace bug

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agotmf: Internalize all the core state system implementation
Alexandre Montplaisir [Tue, 1 May 2012 05:12:02 +0000 (01:12 -0400)] 
tmf: Internalize all the core state system implementation

Also renamed the old .helpers package to simply tmf.core.statesystem,
which only consists of the exported API now.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Move all GSS exceptions to tmf.core.exceptions
Alexandre Montplaisir [Tue, 1 May 2012 05:06:12 +0000 (01:06 -0400)] 
tmf: Move all GSS exceptions to tmf.core.exceptions

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Rework unneeded throw in the GSS backend
Alexandre Montplaisir [Tue, 1 May 2012 04:59:19 +0000 (00:59 -0400)] 
tmf: Rework unneeded throw in the GSS backend

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Split StateHistorySystem into two interfaces
Alexandre Montplaisir [Mon, 30 Apr 2012 20:04:28 +0000 (16:04 -0400)] 
tmf: Split StateHistorySystem into two interfaces

This will offer a query-only interface, which has no method
to write to or modify the state history in any way. This is
much safer, now that the views are starting to use it.

As part of the process, the history-less StateSystem is no
longer easily available. It was never much used in practice,
but if it's ever needed in the future it should be relatively
easy to bring it back.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agoFix findbugs
Matthew Khouzam [Tue, 1 May 2012 14:19:25 +0000 (10:19 -0400)] 
Fix findbugs

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd test cases for float definitions.
Matthew Khouzam [Tue, 1 May 2012 13:43:39 +0000 (09:43 -0400)] 
Add test cases for float definitions.
Fix build error caused by rebase.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd support for lost events
Matthew Khouzam [Thu, 26 Apr 2012 17:36:44 +0000 (13:36 -0400)] 
Add support for lost events
Fix display of sequences and arrays

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoFix problem with multiple channels including empty channels and ones
Matthew Khouzam [Wed, 25 Apr 2012 20:58:15 +0000 (16:58 -0400)] 
Fix problem with multiple channels including empty channels and ones
created after start.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agofix empty stream bug.
Matthew Khouzam [Tue, 24 Apr 2012 21:39:00 +0000 (17:39 -0400)] 
fix empty stream bug.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd support for CTF in Sequence Diagram view
Matthew Khouzam [Fri, 20 Apr 2012 20:40:17 +0000 (16:40 -0400)] 
Add support for CTF in Sequence Diagram view

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoFix alignment issue. Now traces using more than one alignment can be
Matthew Khouzam [Mon, 23 Apr 2012 21:55:39 +0000 (17:55 -0400)] 
Fix alignment issue. Now traces using more than one alignment can be
read.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoFix bug when tracefile is not aligned. Now supports exotic architectures.
Matthew Khouzam [Thu, 19 Apr 2012 22:17:45 +0000 (18:17 -0400)] 
Fix bug when tracefile is not aligned. Now supports exotic architectures.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd support for float fields in a string output.
Matthew Khouzam [Fri, 20 Apr 2012 17:20:05 +0000 (13:20 -0400)] 
Add support for float fields in a string output.

Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
12 years agoAdd floating point support and Loglevel support
Matthew Khouzam [Tue, 17 Apr 2012 19:33:21 +0000 (15:33 -0400)] 
Add floating point support and Loglevel support

12 years agotmf: Refresh the project once we're done loading a trace
Alexandre Montplaisir [Mon, 30 Apr 2012 18:42:22 +0000 (14:42 -0400)] 
tmf: Refresh the project once we're done loading a trace

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Add the start time to the history file header
Alexandre Montplaisir [Tue, 1 May 2012 01:17:30 +0000 (21:17 -0400)] 
tmf: Add the start time to the history file header

The previous method for getting the start time was bugged
anyway, it's much simpler to just save it in the header.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Check for correct start/end times in the tests
Alexandre Montplaisir [Mon, 30 Apr 2012 20:19:32 +0000 (16:19 -0400)] 
lttng: Check for correct start/end times in the tests

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agolttng: Update queries' tests
Alexandre Montplaisir [Sat, 28 Apr 2012 09:41:12 +0000 (05:41 -0400)] 
lttng: Update queries' tests

Since we dropped statistics (in 2967f37), the quark numbers
changed, so the expected results of the getQuarks() tests
had to be updated.

While at it, updated the file to use the references in
Attributes.java, which was recently introduced.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
12 years agotmf: Fix wrong interval returns in the history backend
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>
12 years agotmf: Be more lenient with GSS range queries
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>
12 years agolttng: Update history construction unit tests
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>
12 years agolttng: Centralize all event and attribute names in dedicated classes
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>
12 years agolttng: Move CTF dummy state provider to the test package
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>
12 years agotmf: Make HistoryBuilder build its index asynchronously
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>
12 years agotmf: Expose a method to retrieve an attribute's name
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>
12 years agolttng: Explicitely return a StateHistorySystem in kernel traces
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>
12 years agolttng: Handle existing but invalid state index files
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>
12 years agolttng: Replace CTF- class prefix by Ctf-
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>
12 years agolttng: Disable statistics in the state provider for now
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>
12 years agolttng: Rework the trace type extension points
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>
12 years agolttng: First draft of CtfKernelTrace
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>
12 years agoctf: Actually close the filechannels to the streams
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>
12 years agoctf: Refactor CTFTrace's constructor
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>
12 years agoctf: Plug some resource leaks in the metadata parsing
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>
12 years agoctf: Fix some simple warnings in the code and tests
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>
12 years agolttng: Update kernel provider tests to the new trace location
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>
12 years agoctf: Update the script that downloads test traces
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>
12 years agotmf: Remove unneeded annotations in the CTF adaptor
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>
12 years agotmf: Fix potential resource leaks in the GSS
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>
This page took 0.041432 seconds and 5 git commands to generate.