+ guint width = control_flow_data->drawing->width;
+
+ if(strcmp(ltt_eventtype_name(ltt_event_eventtype(e)),"process") == 0) {
+
+ guint sub_id;
+ guint child_pid;
+ {
+ LttField *f = ltt_event_field(e);
+ LttField *element;
+ element = ltt_field_member(f,0);
+ sub_id = ltt_event_get_long_unsigned(e,element);
+ element = ltt_field_member(f,1);
+ child_pid = ltt_event_get_long_unsigned(e,element);
+ }
+
+ if(sub_id == 2) { /* fork */
+
+ /* Add process to process list (if not present) */
+ LttvProcessState *process_child;
+ LttTime birth;
+ guint y_child = 0, height = 0, pl_height = 0;
+ HashedProcessData *hashed_process_data_child = NULL;
+
+ ProcessList *process_list =
+ guicontrolflow_get_process_list(control_flow_data);
+
+
+ /* Find child in the list... */
+ process_child = lttv_state_find_process(tfs, child_pid);
+ /* It should exist, because we are after the state update. */
+ g_assert(process_child != NULL);
+
+ birth = process_child->creation_time;
+ const gchar *name = g_quark_to_string(process_child->name);
+
+ if(processlist_get_process_pixels(process_list,
+ child_pid,
+ &birth,
+ tfc->t_context->index,
+ &y_child,
+ &height,
+ &hashed_process_data_child) == 1)
+ {
+ g_assert(child_pid == 0 || child_pid != process_child->ppid);
+ /* Process not present */
+ processlist_add(process_list,
+ child_pid,
+ process_child->ppid,
+ &birth,
+ tfc->t_context->index,
+ name,
+ &pl_height,
+ &hashed_process_data_child);
+ processlist_get_process_pixels(process_list,
+ child_pid,
+ &birth,
+ tfc->t_context->index,
+ &y_child,
+ &height,
+ &hashed_process_data_child);
+ drawing_insert_square( control_flow_data->drawing, y_child, height);
+ }
+
+ convert_time_to_pixels(
+ time_window.start_time,
+ end_time,
+ evtime,
+ width,
+ &hashed_process_data_child->x);
+ }
+ }
+ return 0;
+
+}