+LttvProcessState *lttv_state_find_process_from_trace(LttvTraceState *ts,
+ guint pid)
+{
+ LttvProcessState *process = g_hash_table_lookup(ts->processes,
+ GUINT_TO_POINTER(pid));
+ //We do not create a process at this level, because we can be called
+ //from outside of state.c, and therefore cannot assume a tracefile
+ //exists.
+ //if(process == NULL) process = create_process_from_trace(ts, NULL, pid);
+ return process;
+}
+
+