- 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));