- return 0;
-}
-//int processlist_add( ProcessList *process_list,
-// Drawing_t *drawing,
-// guint pid,
-// guint tgid,
-// guint cpu,
-// guint ppid,
-// LttTime *birth,
-// guint trace_num,
-// GQuark name,
-// GQuark brand,
-// guint *height,
-// ProcessInfo **pm_process_info,
-// HashedProcessData **pm_hashed_process_data)
-//{
-// ProcessInfo *Process_Info = g_new(ProcessInfo, 1);
-// HashedProcessData *hashed_process_data = g_new(HashedProcessData, 1);
-// *pm_hashed_process_data = hashed_process_data;
-// *pm_process_info = Process_Info;
-//
-// Process_Info->pid = pid;
-// Process_Info->tgid = tgid;
-// if(pid == 0)
-// Process_Info->cpu = cpu;
-// else
-// Process_Info->cpu = 0;
-// Process_Info->ppid = ppid;
-// Process_Info->birth = *birth;
-// Process_Info->trace_num = trace_num;
-//
-// /* When we create it from before state update, we are sure that the
-// * last event occured before the beginning of the global area.
-// *
-// * If it is created after state update, this value (0) will be
-// * overriden by the new state before anything is drawn.
-// */
-// hashed_process_data->x.over = 0;
-// hashed_process_data->x.over_used = FALSE;
-// hashed_process_data->x.over_marked = FALSE;
-// hashed_process_data->x.middle = 0;
-// hashed_process_data->x.middle_used = FALSE;
-// hashed_process_data->x.middle_marked = FALSE;
-// hashed_process_data->x.under = 0;
-// hashed_process_data->x.under_used = FALSE;
-// hashed_process_data->x.under_marked = FALSE;
-// hashed_process_data->next_good_time = ltt_time_zero;
-//
-// /* Add a new row to the model */
-// gtk_list_store_append ( process_list->list_store,
-// &hashed_process_data->y_iter);
-//
-// gtk_list_store_set ( process_list->list_store, &hashed_process_data->y_iter,
-// PROCESS_COLUMN, g_quark_to_string(name),
-// BRAND_COLUMN, g_quark_to_string(brand),
-// PID_COLUMN, pid,
-// TGID_COLUMN, tgid,
-// PPID_COLUMN, ppid,
-// CPU_COLUMN, cpu,
-// BIRTH_S_COLUMN, birth->tv_sec,
-// BIRTH_NS_COLUMN, birth->tv_nsec,
-// TRACE_COLUMN, trace_num,
-// -1);
-// //gtk_tree_view_set_model(GTK_TREE_VIEW(process_list->process_list_widget),
-// // GTK_TREE_MODEL(process_list->list_store));
-// //gtk_container_resize_children(GTK_CONTAINER(process_list->process_list_widget));
-//
-// g_hash_table_insert(process_list->process_hash,
-// (gpointer)Process_Info,
-// (gpointer)hashed_process_data);
-//
-// process_list->number_of_process++;
-//
-// hashed_process_data->height = process_list->cell_height;
-//
-// g_assert(hashed_process_data->height != 0);
-//
-// *height = hashed_process_data->height * process_list->number_of_process;
-//
-// hashed_process_data->pixmap =
-// gdk_pixmap_new(drawing->drawing_area->window,
-// drawing->alloc_width,
-// hashed_process_data->height,
-// -1);
-//
-// // Clear the image
-// gdk_draw_rectangle (hashed_process_data->pixmap,
-// drawing->drawing_area->style->black_gc,
-// TRUE,
-// 0, 0,
-// drawing->alloc_width,
-// hashed_process_data->height);
-//
-// update_index_to_pixmap(process_list);
-//
-//
-// return 0;
-//}
-
-int processlist_remove( ProcessList *process_list,
- guint pid,
- guint cpu,
- LttTime *birth,
- guint trace_num)
-{
- ProcessInfo process_info;
- HashedProcessData *hashed_process_data;
- GtkTreeIter iter;
-
- process_info.pid = pid;
- if(pid == 0)
- process_info.cpu = cpu;
- else
- process_info.cpu = 0;
- process_info.birth = *birth;
- process_info.trace_num = trace_num;
-
-
- hashed_process_data =
- (HashedProcessData*)g_hash_table_lookup(
- process_list->process_hash,
- &process_info);
- if(likely(hashed_process_data != NULL))