Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356216

Summary: [LTTng] Kernel State System not initialized
Product: z_Archived Reporter: Bernd Hufmann <bernd.hufmann>
Component: LinuxToolsAssignee: Bernd Hufmann <bernd.hufmann>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3 CC: jjohnstn
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix for state initialization bug jjohnstn: iplog+

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