fix cfv for process names
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 8 Feb 2006 19:52:07 +0000 (19:52 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 8 Feb 2006 19:52:07 +0000 (19:52 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1533 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c
ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c
ltt/branches/poly/lttv/modules/gui/controlflow/processlist.h

index 8f6a284009c273ea5c709f9b8dede21ebb2c9254..c79b0a4bbb81529bd0142b7f57c3b0fc04635011 100644 (file)
@@ -1706,7 +1706,6 @@ int after_fs_exec_hook(void *hook_data, void *call_data)
 
 /* after_event_enum_process_hook
  * 
- * DOES EXACTLY THE SAME AS after_schedchange_hook, for the "in" process.
  * Create the processlist entry for the child process. Put the last
  * position in x at the current time value.
  *
@@ -1786,38 +1785,12 @@ int after_event_enum_process_hook(void *hook_data, void *call_data)
                                     -1,
                                     pl_height);
         gtk_widget_queue_draw(drawing->drawing_area);
-  }
-  /* Set the current process */
-  process_list->current_hash_data[process_in->cpu] =
-                                             hashed_process_data_in;
-
-  if(ltt_time_compare(hashed_process_data_in->next_good_time,
-                          evtime) <= 0)
-  {
-    TimeWindow time_window = 
-    lttvwindow_get_time_window(control_flow_data->tab);
-
-#ifdef EXTRA_CHECK
-    if(ltt_time_compare(evtime, time_window.start_time) == -1
-        || ltt_time_compare(evtime, time_window.end_time) == 1)
-            return;
-#endif //EXTRA_CHECK
-    Drawing_t *drawing = control_flow_data->drawing;
-    guint width = drawing->width;
-    guint new_x;
-    
-    convert_time_to_pixels(
-        time_window,
-        evtime,
-        width,
-        &new_x);
-
-    if(hashed_process_data_in->x.middle != new_x) {
-      hashed_process_data_in->x.middle = new_x;
-      hashed_process_data_in->x.middle_used = FALSE;
-      hashed_process_data_in->x.middle_marked = FALSE;
-    }
-  }
+  } else {
+         processlist_set_name(process_list, process_in->name,
+                                                                                                hashed_process_data_in);
+       processlist_set_ppid(process_list, process_in->ppid,
+                                                                                                hashed_process_data_in);
+       }
   return 0;
 }
 
index d231055d1e07e0c066c05a873a557ff7f10dd852..c1c9ad47c45edab3b8bf5887ec2889d8dff5ed5c 100644 (file)
@@ -530,6 +530,16 @@ void processlist_set_name(ProcessList *process_list,
         -1);
 }
 
+void processlist_set_ppid(ProcessList *process_list,
+    guint ppid,
+    HashedProcessData *hashed_process_data)
+{
+  gtk_list_store_set (  process_list->list_store, &hashed_process_data->y_iter,
+        PPID_COLUMN, ppid,
+        -1);
+}
+
+
 int processlist_add(  ProcessList *process_list,
       Drawing_t *drawing,
       guint pid,
index b2a6435a42e08e7f30c6f6d3a48857700d0c8ca9..a4465edc26b6706b1c898bbaab23fef8dc14ea38 100644 (file)
@@ -145,6 +145,11 @@ void processlist_set_name(ProcessList *process_list,
     GQuark name,
     HashedProcessData *hashed_process_data);
 
+/* Set the ppid of a process */
+void processlist_set_ppid(ProcessList *process_list,
+    guint ppid,
+    HashedProcessData *hashed_process_data);
+
 
 /* Synchronize the list at the left and the drawing */
 void update_index_to_pixmap(ProcessList *process_list);
This page took 0.027493 seconds and 4 git commands to generate.