A background computation request is asked via lttvwindow_events_request, with a
priority field set with a low priority.
A background computation request is asked via lttvwindow_events_request, with a
priority field set with a low priority.
-If a lttvwindow_events_request_remove_all is done on the viewer pointer, it will
+In the case of a background computation with viewer pointer field set to NULL,
+if a lttvwindow_events_request_remove_all is done on the viewer pointer, it will
not affect the state computation as no viewer pointer will have been passed in
the initial request. This is the expected result. For the background processings
that call viewer's hooks, they will be removed.
not affect the state computation as no viewer pointer will have been passed in
the initial request. This is the expected result. For the background processings
that call viewer's hooks, they will be removed.
pending and registers a pending request for the next g_idle if none is
registered. The viewer can access this structure during the read as its
hook_data. Only the stop_flag can be changed by the viewer through the
pending and registers a pending request for the next g_idle if none is
registered. The viewer can access this structure during the read as its
hook_data. Only the stop_flag can be changed by the viewer through the
LttvHooks *after_tracefile; /* Unset : NULL */
LttvHooks *after_trace; /* Unset : NULL */
LttvHooks *after_traceset; /* Unset : NULL */
LttvHooks *after_tracefile; /* Unset : NULL */
LttvHooks *after_trace; /* Unset : NULL */
LttvHooks *after_traceset; /* Unset : NULL */
It removes all the events requests from the pool that has their "viewer" field
maching the viewer pointer given in argument.
It removes all the events requests from the pool that has their "viewer" field
maching the viewer pointer given in argument.
The reads are splitted in chunks. After a chunk is over, we want to check if
there is a GTK Event pending and execute it. It can add or remove events
requests from the event requests list. If it happens, we want to start over
The reads are splitted in chunks. After a chunk is over, we want to check if
there is a GTK Event pending and execute it. It can add or remove events
requests from the event requests list. If it happens, we want to start over
-the algorithm from the beginning.
+the algorithm from the beginning. The after traceset/trace/tracefile hooks are
+called after each interrupted chunk, and before traceset/trace/tracefile are
+called when the request processing resumes. Before and after request hooks are
+called respectively before and after the request processing.
Two levels of priority exists. High priority and low priority. High prio
requests are serviced first, even if lower priority requests has lower start
Two levels of priority exists. High priority and low priority. High prio
requests are serviced first, even if lower priority requests has lower start
1. If list_in is empty (need a seek)
1.1 Add requests to list_in
1.1.1 Find all time requests with the highest priority and lowest start
1. If list_in is empty (need a seek)
1.1 Add requests to list_in
1.1.1 Find all time requests with the highest priority and lowest start
- If first req in list_in pos != current pos
- If the position is the same than the saved state, restore state
- Else, seek to that position
- If first req in list_in pos != current pos
- If the position is the same than the saved state, restore state
- Else, seek to that position
1.3.3 events hooks added
2. Else, list_in is not empty, we continue a read
2.1 For each req of list_out
- if req.start time == current context time
- Add to list_in, remove from list_out
- If !servicing
1.3.3 events hooks added
2. Else, list_in is not empty, we continue a read
2.1 For each req of list_out
- if req.start time == current context time
- Add to list_in, remove from list_out
- If !servicing
- events hooks added
- if req.start position == current position
- Add to list_in, remove from list_out
- If !servicing
- events hooks added
- if req.start position == current position
- Add to list_in, remove from list_out
- If !servicing
5. After process traceset middle
- if current context time > traceset.end time
- For each req in list_in
5. After process traceset middle
- if current context time > traceset.end time
- For each req in list_in
- remove req from list_in
- if exists one events requests in list_out that has
higher priority and time != current time
- Use current position as start position for req
- Remove start time from req
- remove req from list_in
- if exists one events requests in list_out that has
higher priority and time != current time
- Use current position as start position for req
- Remove start time from req
- Remove event hooks for req
- Put req back in list_out, remove from list_in
- Save current state into saved_state.
- Remove event hooks for req
- Put req back in list_out, remove from list_in
- Save current state into saved_state.