find_process corrected to match how processes are stored in trace state context
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / eventhooks.c
index 2b7efbc927c9797cb945c9740f0bab855b49dc6c..662090105665f681173f946d79e576da3a5b106b 100644 (file)
@@ -224,9 +224,9 @@ void request_background_data(ControlFlowData *control_flow_data)
  * @return The widget created.
  */
 GtkWidget *
-h_guicontrolflow(Tab *tab, LttvTracesetSelector * s, char * key)
+h_guicontrolflow(Tab *tab)
 {
-  g_info("h_guicontrolflow, %p, %p, %s", tab, s, key);
+  g_info("h_guicontrolflow, %p", tab);
   ControlFlowData *control_flow_data = guicontrolflow() ;
   
   control_flow_data->tab = tab;
@@ -2163,14 +2163,7 @@ typedef struct _ClosureData {
  * 
  * - For each CPU of the trace
  *   - Search in trace states by PID and CPU key
- *     - For each ProcessState found
- *       - If state is not LTTV_STATE_WAIT
- *        - Then this process state is the current one for this PID.
- *        - Stop search.
  * - If no ProcessState found, return NULL.
- * - If all ProcessState were in LTTV_STATE_WAIT state, return one of
- *   them arbitrarily.
- *   Than means state is LTTV_STATE_WAIT, CPU unknown.
  */
 static LttvProcessState *find_process(LttvTraceState *tstate, guint pid)
 {
@@ -2185,11 +2178,9 @@ static LttvProcessState *find_process(LttvTraceState *tstate, guint pid)
     LttvProcessState *state = lttv_state_find_process_from_trace(tstate,
                                                                  cpu_name,
                                                                  pid);
-    
     if(state != NULL) {
       real_state = state;
-      if(state->state->s != LTTV_STATE_WAIT)
-        break;
+      break;
     }
   }
   return real_state;
This page took 0.02302 seconds and 4 git commands to generate.