Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356216 - [LTTng] Kernel State System not initialized
Summary: [LTTng] Kernel State System not initialized
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bernd Hufmann CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-30 11:22 EDT by Bernd Hufmann CLA
Modified: 2022-01-13 14:53 EST (History)
1 user (show)

See Also:


Attachments
Fix for state initialization bug (2.62 KB, patch)
2011-08-30 13:49 EDT, Bernd Hufmann CLA
jjohnstn: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Hufmann CLA 2011-08-30 11:22:03 EDT
The Kernel State System is not initialized when selecting a new trace/experiment. 

This is only visible when two views are open which rely on the kernel state system (e.g. Statistics View and Resource View).
 
This was originally noticed when opening a specific trace and the cumulative time and elapsed time were negative. 

To reproduce:
- Import attached trace to workspace 
- Open LTTng statistics view and resource view
- Open above trace

The Statistics view will show a negative cumulative and elapsed time.
Comment 1 Bernd Hufmann CLA 2011-08-30 13:49:38 EDT
Created attachment 202448 [details]
Fix for state initialization bug

When streaming was introduced, the experiment time range value TmfTimeRange.NULL was defined for special handlings. This range is not handled correctly, when a state checkpoint is restored or at startup when the state needs to be initialized.

This patch fixes the bug.
Comment 2 Bernd Hufmann CLA 2011-08-30 13:52:01 EDT
Patch was pushed to master. Bug is fixed with these changes.
Comment 3 Francois Chouinard CLA 2012-03-26 13:52:02 EDT
Delivered in 0.9.0