Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332905 - [LTTng] Missing events in Control Flow view
Summary: [LTTng] Missing events in Control Flow view
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: Patrick Tasse CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 301630
  Show dependency tree
 
Reported: 2010-12-19 12:48 EST by Francois Chouinard CLA
Modified: 2022-01-13 14:53 EST (History)
3 users (show)

See Also:


Attachments
Trace file (56.58 KB, application/x-bzip)
2010-12-19 12:48 EST, Francois Chouinard CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chouinard CLA 2010-12-19 12:48:53 EST
Created attachment 185499 [details]
Trace file

For the attached trace file, LTTV reports a lot more state transitions than the ones displayed by the CFV for the process ./open-write (pid = 570).

It seems that the Eclipse kernel state system fails to associate quite a lot of events to this pid. This is also what the SV shows.

To reproduce:

- Load the attached trace in Eclipse
- Load the same trace in LTTV
- Compare CFVs for pid = 570
- Compare SVs
Comment 1 Francois Chouinard CLA 2010-12-19 12:50:56 EST
This is the original posting from the mailing list:

http://dev.eclipse.org/mhonarc/lists/linuxtools-dev/msg00681.html
Comment 2 Bernd Hufmann CLA 2010-12-22 10:32:57 EST
I investigated the problem and here are my findings:

Control Flow View (CFV):
------------------------
In the Control Flow View, the user can step through the currently displayed events using the next/previous event buttons. The CFV doesn't store all events in the displayed time range, to save heap memory. The number of events  displayed depends on the time range, window size and screen resolution. So, when stepping, only the currently in the CFV stored events are considered. In the CFV, the non-displayed events are marked with dotted line. 

To be able to step through all available events, the user needs to zoom until all events are displayed in the current time range (no dotted lines). 

Conclusion: The Eclipse kernel state system is considering all events and no events are missing. By zooming, all events can be accessed through the CFV. 

Statistics View (SV):
---------------------
There are two processes with the same PID, parent PID and "birth" time, but with different process name: bash and ./open-write (PID 570). Basically, these two refer to the same process. The name is changed from bash to ./open-write only when fs.exec is executed. The SV, counts statistics, amongst others, based on the process name. In LTTV, this distinction based on the process name is not done and that's why the statistics for the process ./open-write is different to the Eclipse based SV.
Comment 3 Bernd Hufmann CLA 2010-12-22 13:23:59 EST
I changed the importance of the bug to "normal" since all events can be accessed by zooming in the CFV. (see comment 2 below). A improvement is currently considered, that the user of the Eclipse CFV will be notified, when the user needs to zoom for more details.

For the statistics view part of this bug, a new bug with ID 333114 was created. Any follow-up related to the statistic view will be done under bug 333114.
Comment 4 Tony Jones CLA 2011-01-18 21:41:08 EST
(In reply to comment #3)
> I changed the importance of the bug to "normal" since all events can be
> accessed by zooming in the CFV. (see comment 2 below).

I tried doing this and it's not at all intuitive.    Normal behaviour would be that you click previous and next and it just works.  I understand that memory constraints dictate limiting the number of events, but there should be a way to make this work as expecting. 

After you have zoomed in to consume more events,  do you then need to zoom out,  move to a new time period and then zoom in again?
Comment 5 Francois Chouinard CLA 2011-01-19 13:10:30 EST
(In reply to comment #4)
> 
> After you have zoomed in to consume more events,  do you then need to zoom out,
>  move to a new time period and then zoom in again?

You would need to zoom out only if you want to visualize a larger time range.

If you want to keep the same resolution and visualize events out of the current time range, you can simply click and drag left/right the Gantt chart to slide the current time range window.

There was a problem when zooming in which has been recently fixed (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=333486). You get this fix you need to upgrade your eclipse to latest nightly build.
Comment 6 Patrick Tasse CLA 2013-05-22 11:00:14 EDT
Fixed with bug 378402 with implementation of new Control Flow view for LTTng 2.0.

Released in 1.0.
Comment 7 Patrick Tasse CLA 2013-05-22 11:02:15 EDT
Removed incorrect dependency from bug 310629.